From 86fd0a416efd4015dc47494e723afd7f13771006 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 24 Dec 2018 16:03:52 -0800 Subject: API harmonization codegen --- python/fatcat_client/README.md | 80 +- python/fatcat_client/api/default_api.py | 1432 ++++++++++++++-------------- python/fatcat_client/models/editgroup.py | 44 +- python/fatcat_client/models/editor.py | 30 +- python/fatcat_client/models/file_entity.py | 30 +- 5 files changed, 808 insertions(+), 808 deletions(-) (limited to 'python/fatcat_client') diff --git a/python/fatcat_client/README.md b/python/fatcat_client/README.md index f97b815a..cf9a73cc 100644 --- a/python/fatcat_client/README.md +++ b/python/fatcat_client/README.md @@ -52,10 +52,10 @@ from fatcat_client.rest import ApiException from pprint import pprint # create an instance of the API class api_instance = fatcat_client.DefaultApi() -id = 'id_example' # str | base32-encoded unique identifier +editgroup_id = 'editgroup_id_example' # str | base32-encoded unique identifier try: - api_response = api_instance.accept_editgroup(id) + api_response = api_instance.accept_editgroup(editgroup_id) pprint(api_response) except ApiException as e: print("Exception when calling DefaultApi->accept_editgroup: %s\n" % e) @@ -68,7 +68,7 @@ All URIs are relative to *https://api.fatcat.wiki/v0* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*DefaultApi* | [**accept_editgroup**](docs/DefaultApi.md#accept_editgroup) | **POST** /editgroup/{id}/accept | +*DefaultApi* | [**accept_editgroup**](docs/DefaultApi.md#accept_editgroup) | **POST** /editgroup/{editgroup_id}/accept | *DefaultApi* | [**create_container**](docs/DefaultApi.md#create_container) | **POST** /container | *DefaultApi* | [**create_container_batch**](docs/DefaultApi.md#create_container_batch) | **POST** /container/batch | *DefaultApi* | [**create_creator**](docs/DefaultApi.md#create_creator) | **POST** /creator | @@ -80,59 +80,59 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_release_batch**](docs/DefaultApi.md#create_release_batch) | **POST** /release/batch | *DefaultApi* | [**create_work**](docs/DefaultApi.md#create_work) | **POST** /work | *DefaultApi* | [**create_work_batch**](docs/DefaultApi.md#create_work_batch) | **POST** /work/batch | -*DefaultApi* | [**delete_container**](docs/DefaultApi.md#delete_container) | **DELETE** /container/{id} | +*DefaultApi* | [**delete_container**](docs/DefaultApi.md#delete_container) | **DELETE** /container/{ident} | *DefaultApi* | [**delete_container_edit**](docs/DefaultApi.md#delete_container_edit) | **DELETE** /container/edit/{edit_id} | -*DefaultApi* | [**delete_creator**](docs/DefaultApi.md#delete_creator) | **DELETE** /creator/{id} | +*DefaultApi* | [**delete_creator**](docs/DefaultApi.md#delete_creator) | **DELETE** /creator/{ident} | *DefaultApi* | [**delete_creator_edit**](docs/DefaultApi.md#delete_creator_edit) | **DELETE** /creator/edit/{edit_id} | -*DefaultApi* | [**delete_file**](docs/DefaultApi.md#delete_file) | **DELETE** /file/{id} | +*DefaultApi* | [**delete_file**](docs/DefaultApi.md#delete_file) | **DELETE** /file/{ident} | *DefaultApi* | [**delete_file_edit**](docs/DefaultApi.md#delete_file_edit) | **DELETE** /file/edit/{edit_id} | -*DefaultApi* | [**delete_release**](docs/DefaultApi.md#delete_release) | **DELETE** /release/{id} | +*DefaultApi* | [**delete_release**](docs/DefaultApi.md#delete_release) | **DELETE** /release/{ident} | *DefaultApi* | [**delete_release_edit**](docs/DefaultApi.md#delete_release_edit) | **DELETE** /release/edit/{edit_id} | -*DefaultApi* | [**delete_work**](docs/DefaultApi.md#delete_work) | **DELETE** /work/{id} | +*DefaultApi* | [**delete_work**](docs/DefaultApi.md#delete_work) | **DELETE** /work/{ident} | *DefaultApi* | [**delete_work_edit**](docs/DefaultApi.md#delete_work_edit) | **DELETE** /work/edit/{edit_id} | *DefaultApi* | [**get_changelog**](docs/DefaultApi.md#get_changelog) | **GET** /changelog | -*DefaultApi* | [**get_changelog_entry**](docs/DefaultApi.md#get_changelog_entry) | **GET** /changelog/{id} | -*DefaultApi* | [**get_container**](docs/DefaultApi.md#get_container) | **GET** /container/{id} | +*DefaultApi* | [**get_changelog_entry**](docs/DefaultApi.md#get_changelog_entry) | **GET** /changelog/{index} | +*DefaultApi* | [**get_container**](docs/DefaultApi.md#get_container) | **GET** /container/{ident} | *DefaultApi* | [**get_container_edit**](docs/DefaultApi.md#get_container_edit) | **GET** /container/edit/{edit_id} | -*DefaultApi* | [**get_container_history**](docs/DefaultApi.md#get_container_history) | **GET** /container/{id}/history | -*DefaultApi* | [**get_container_redirects**](docs/DefaultApi.md#get_container_redirects) | **GET** /container/{id}/redirects | -*DefaultApi* | [**get_container_revision**](docs/DefaultApi.md#get_container_revision) | **GET** /container/rev/{id} | -*DefaultApi* | [**get_creator**](docs/DefaultApi.md#get_creator) | **GET** /creator/{id} | +*DefaultApi* | [**get_container_history**](docs/DefaultApi.md#get_container_history) | **GET** /container/{ident}/history | +*DefaultApi* | [**get_container_redirects**](docs/DefaultApi.md#get_container_redirects) | **GET** /container/{ident}/redirects | +*DefaultApi* | [**get_container_revision**](docs/DefaultApi.md#get_container_revision) | **GET** /container/rev/{rev_id} | +*DefaultApi* | [**get_creator**](docs/DefaultApi.md#get_creator) | **GET** /creator/{ident} | *DefaultApi* | [**get_creator_edit**](docs/DefaultApi.md#get_creator_edit) | **GET** /creator/edit/{edit_id} | -*DefaultApi* | [**get_creator_history**](docs/DefaultApi.md#get_creator_history) | **GET** /creator/{id}/history | -*DefaultApi* | [**get_creator_redirects**](docs/DefaultApi.md#get_creator_redirects) | **GET** /creator/{id}/redirects | -*DefaultApi* | [**get_creator_releases**](docs/DefaultApi.md#get_creator_releases) | **GET** /creator/{id}/releases | -*DefaultApi* | [**get_creator_revision**](docs/DefaultApi.md#get_creator_revision) | **GET** /creator/rev/{id} | -*DefaultApi* | [**get_editgroup**](docs/DefaultApi.md#get_editgroup) | **GET** /editgroup/{id} | -*DefaultApi* | [**get_editor**](docs/DefaultApi.md#get_editor) | **GET** /editor/{id} | -*DefaultApi* | [**get_editor_changelog**](docs/DefaultApi.md#get_editor_changelog) | **GET** /editor/{id}/changelog | -*DefaultApi* | [**get_file**](docs/DefaultApi.md#get_file) | **GET** /file/{id} | +*DefaultApi* | [**get_creator_history**](docs/DefaultApi.md#get_creator_history) | **GET** /creator/{ident}/history | +*DefaultApi* | [**get_creator_redirects**](docs/DefaultApi.md#get_creator_redirects) | **GET** /creator/{ident}/redirects | +*DefaultApi* | [**get_creator_releases**](docs/DefaultApi.md#get_creator_releases) | **GET** /creator/{ident}/releases | +*DefaultApi* | [**get_creator_revision**](docs/DefaultApi.md#get_creator_revision) | **GET** /creator/rev/{rev_id} | +*DefaultApi* | [**get_editgroup**](docs/DefaultApi.md#get_editgroup) | **GET** /editgroup/{editgroup_id} | +*DefaultApi* | [**get_editor**](docs/DefaultApi.md#get_editor) | **GET** /editor/{editor_id} | +*DefaultApi* | [**get_editor_changelog**](docs/DefaultApi.md#get_editor_changelog) | **GET** /editor/{editor_id}/changelog | +*DefaultApi* | [**get_file**](docs/DefaultApi.md#get_file) | **GET** /file/{ident} | *DefaultApi* | [**get_file_edit**](docs/DefaultApi.md#get_file_edit) | **GET** /file/edit/{edit_id} | -*DefaultApi* | [**get_file_history**](docs/DefaultApi.md#get_file_history) | **GET** /file/{id}/history | -*DefaultApi* | [**get_file_redirects**](docs/DefaultApi.md#get_file_redirects) | **GET** /file/{id}/redirects | -*DefaultApi* | [**get_file_revision**](docs/DefaultApi.md#get_file_revision) | **GET** /file/rev/{id} | -*DefaultApi* | [**get_release**](docs/DefaultApi.md#get_release) | **GET** /release/{id} | +*DefaultApi* | [**get_file_history**](docs/DefaultApi.md#get_file_history) | **GET** /file/{ident}/history | +*DefaultApi* | [**get_file_redirects**](docs/DefaultApi.md#get_file_redirects) | **GET** /file/{ident}/redirects | +*DefaultApi* | [**get_file_revision**](docs/DefaultApi.md#get_file_revision) | **GET** /file/rev/{rev_id} | +*DefaultApi* | [**get_release**](docs/DefaultApi.md#get_release) | **GET** /release/{ident} | *DefaultApi* | [**get_release_edit**](docs/DefaultApi.md#get_release_edit) | **GET** /release/edit/{edit_id} | -*DefaultApi* | [**get_release_files**](docs/DefaultApi.md#get_release_files) | **GET** /release/{id}/files | -*DefaultApi* | [**get_release_history**](docs/DefaultApi.md#get_release_history) | **GET** /release/{id}/history | -*DefaultApi* | [**get_release_redirects**](docs/DefaultApi.md#get_release_redirects) | **GET** /release/{id}/redirects | -*DefaultApi* | [**get_release_revision**](docs/DefaultApi.md#get_release_revision) | **GET** /release/rev/{id} | +*DefaultApi* | [**get_release_files**](docs/DefaultApi.md#get_release_files) | **GET** /release/{ident}/files | +*DefaultApi* | [**get_release_history**](docs/DefaultApi.md#get_release_history) | **GET** /release/{ident}/history | +*DefaultApi* | [**get_release_redirects**](docs/DefaultApi.md#get_release_redirects) | **GET** /release/{ident}/redirects | +*DefaultApi* | [**get_release_revision**](docs/DefaultApi.md#get_release_revision) | **GET** /release/rev/{rev_id} | *DefaultApi* | [**get_stats**](docs/DefaultApi.md#get_stats) | **GET** /stats | -*DefaultApi* | [**get_work**](docs/DefaultApi.md#get_work) | **GET** /work/{id} | +*DefaultApi* | [**get_work**](docs/DefaultApi.md#get_work) | **GET** /work/{ident} | *DefaultApi* | [**get_work_edit**](docs/DefaultApi.md#get_work_edit) | **GET** /work/edit/{edit_id} | -*DefaultApi* | [**get_work_history**](docs/DefaultApi.md#get_work_history) | **GET** /work/{id}/history | -*DefaultApi* | [**get_work_redirects**](docs/DefaultApi.md#get_work_redirects) | **GET** /work/{id}/redirects | -*DefaultApi* | [**get_work_releases**](docs/DefaultApi.md#get_work_releases) | **GET** /work/{id}/releases | -*DefaultApi* | [**get_work_revision**](docs/DefaultApi.md#get_work_revision) | **GET** /work/rev/{id} | +*DefaultApi* | [**get_work_history**](docs/DefaultApi.md#get_work_history) | **GET** /work/{ident}/history | +*DefaultApi* | [**get_work_redirects**](docs/DefaultApi.md#get_work_redirects) | **GET** /work/{ident}/redirects | +*DefaultApi* | [**get_work_releases**](docs/DefaultApi.md#get_work_releases) | **GET** /work/{ident}/releases | +*DefaultApi* | [**get_work_revision**](docs/DefaultApi.md#get_work_revision) | **GET** /work/rev/{rev_id} | *DefaultApi* | [**lookup_container**](docs/DefaultApi.md#lookup_container) | **GET** /container/lookup | *DefaultApi* | [**lookup_creator**](docs/DefaultApi.md#lookup_creator) | **GET** /creator/lookup | *DefaultApi* | [**lookup_file**](docs/DefaultApi.md#lookup_file) | **GET** /file/lookup | *DefaultApi* | [**lookup_release**](docs/DefaultApi.md#lookup_release) | **GET** /release/lookup | -*DefaultApi* | [**update_container**](docs/DefaultApi.md#update_container) | **PUT** /container/{id} | -*DefaultApi* | [**update_creator**](docs/DefaultApi.md#update_creator) | **PUT** /creator/{id} | -*DefaultApi* | [**update_file**](docs/DefaultApi.md#update_file) | **PUT** /file/{id} | -*DefaultApi* | [**update_release**](docs/DefaultApi.md#update_release) | **PUT** /release/{id} | -*DefaultApi* | [**update_work**](docs/DefaultApi.md#update_work) | **PUT** /work/{id} | +*DefaultApi* | [**update_container**](docs/DefaultApi.md#update_container) | **PUT** /container/{ident} | +*DefaultApi* | [**update_creator**](docs/DefaultApi.md#update_creator) | **PUT** /creator/{ident} | +*DefaultApi* | [**update_file**](docs/DefaultApi.md#update_file) | **PUT** /file/{ident} | +*DefaultApi* | [**update_release**](docs/DefaultApi.md#update_release) | **PUT** /release/{ident} | +*DefaultApi* | [**update_work**](docs/DefaultApi.md#update_work) | **PUT** /work/{ident} | ## Documentation For Models diff --git a/python/fatcat_client/api/default_api.py b/python/fatcat_client/api/default_api.py index e4d20b12..e2194ce9 100644 --- a/python/fatcat_client/api/default_api.py +++ b/python/fatcat_client/api/default_api.py @@ -33,43 +33,43 @@ class DefaultApi(object): api_client = ApiClient() self.api_client = api_client - def accept_editgroup(self, id, **kwargs): # noqa: E501 + def accept_editgroup(self, editgroup_id, **kwargs): # noqa: E501 """accept_editgroup # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.accept_editgroup(id, async=True) + >>> thread = api.accept_editgroup(editgroup_id, async=True) >>> result = thread.get() :param async bool - :param str id: base32-encoded unique identifier (required) + :param str editgroup_id: base32-encoded unique identifier (required) :return: Success If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.accept_editgroup_with_http_info(id, **kwargs) # noqa: E501 + return self.accept_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501 else: - (data) = self.accept_editgroup_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.accept_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501 return data - def accept_editgroup_with_http_info(self, id, **kwargs): # noqa: E501 + def accept_editgroup_with_http_info(self, editgroup_id, **kwargs): # noqa: E501 """accept_editgroup # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.accept_editgroup_with_http_info(id, async=True) + >>> thread = api.accept_editgroup_with_http_info(editgroup_id, async=True) >>> result = thread.get() :param async bool - :param str id: base32-encoded unique identifier (required) + :param str editgroup_id: base32-encoded unique identifier (required) :return: Success If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -84,24 +84,24 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `accept_editgroup`") # noqa: E501 - - if ('id' in params and - len(params['id']) > 26): - raise ValueError("Invalid value for parameter `id` when calling `accept_editgroup`, length must be less than or equal to `26`") # noqa: E501 - if ('id' in params and - len(params['id']) < 26): - raise ValueError("Invalid value for parameter `id` when calling `accept_editgroup`, length must be greater than or equal to `26`") # noqa: E501 - if 'id' in params and not re.search('[a-zA-Z2-7]{26}', params['id']): # noqa: E501 - raise ValueError("Invalid value for parameter `id` when calling `accept_editgroup`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501 + # verify the required parameter 'editgroup_id' is set + if ('editgroup_id' not in params or + params['editgroup_id'] is None): + raise ValueError("Missing the required parameter `editgroup_id` when calling `accept_editgroup`") # noqa: E501 + + if ('editgroup_id' in params and + len(params['editgroup_id']) > 26): + raise ValueError("Invalid value for parameter `editgroup_id` when calling `accept_editgroup`, length must be less than or equal to `26`") # noqa: E501 + if ('editgroup_id' in params and + len(params['editgroup_id']) < 26): + raise ValueError("Invalid value for parameter `editgroup_id` when calling `accept_editgroup`, length must be greater than or equal to `26`") # noqa: E501 + if 'editgroup_id' in params and not re.search('[a-zA-Z2-7]{26}', params['editgroup_id']): # noqa: E501 + raise ValueError("Invalid value for parameter `editgroup_id` when calling `accept_editgroup`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'editgroup_id' in params: + path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501 query_params = [] @@ -123,7 +123,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/editgroup/{id}/accept', 'POST', + '/editgroup/{editgroup_id}/accept', 'POST', path_params, query_params, header_params, @@ -148,7 +148,7 @@ class DefaultApi(object): :param async bool :param ContainerEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. @@ -170,13 +170,13 @@ class DefaultApi(object): :param async bool :param ContainerEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['entity', 'editgroup'] # noqa: E501 + all_params = ['entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -201,8 +201,8 @@ class DefaultApi(object): path_params = {} query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -250,7 +250,7 @@ class DefaultApi(object): :param async bool :param list[ContainerEntity] entity_list: (required) :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once - :param str editgroup: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) + :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) :return: list[EntityEdit] If the method is called asynchronously, returns the request thread. @@ -273,13 +273,13 @@ class DefaultApi(object): :param async bool :param list[ContainerEntity] entity_list: (required) :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once - :param str editgroup: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) + :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) :return: list[EntityEdit] If the method is called asynchronously, returns the request thread. """ - all_params = ['entity_list', 'autoaccept', 'editgroup'] # noqa: E501 + all_params = ['entity_list', 'autoaccept', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -306,8 +306,8 @@ class DefaultApi(object): query_params = [] if 'autoaccept' in params: query_params.append(('autoaccept', params['autoaccept'])) # noqa: E501 - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -354,7 +354,7 @@ class DefaultApi(object): :param async bool :param CreatorEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. @@ -376,13 +376,13 @@ class DefaultApi(object): :param async bool :param CreatorEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['entity', 'editgroup'] # noqa: E501 + all_params = ['entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -407,8 +407,8 @@ class DefaultApi(object): path_params = {} query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -456,7 +456,7 @@ class DefaultApi(object): :param async bool :param list[CreatorEntity] entity_list: (required) :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once - :param str editgroup: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) + :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) :return: list[EntityEdit] If the method is called asynchronously, returns the request thread. @@ -479,13 +479,13 @@ class DefaultApi(object): :param async bool :param list[CreatorEntity] entity_list: (required) :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once - :param str editgroup: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) + :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) :return: list[EntityEdit] If the method is called asynchronously, returns the request thread. """ - all_params = ['entity_list', 'autoaccept', 'editgroup'] # noqa: E501 + all_params = ['entity_list', 'autoaccept', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -512,8 +512,8 @@ class DefaultApi(object): query_params = [] if 'autoaccept' in params: query_params.append(('autoaccept', params['autoaccept'])) # noqa: E501 - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -657,7 +657,7 @@ class DefaultApi(object): :param async bool :param FileEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. @@ -679,13 +679,13 @@ class DefaultApi(object): :param async bool :param FileEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['entity', 'editgroup'] # noqa: E501 + all_params = ['entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -710,8 +710,8 @@ class DefaultApi(object): path_params = {} query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -759,7 +759,7 @@ class DefaultApi(object): :param async bool :param list[FileEntity] entity_list: (required) :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once - :param str editgroup: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) + :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) :return: list[EntityEdit] If the method is called asynchronously, returns the request thread. @@ -782,13 +782,13 @@ class DefaultApi(object): :param async bool :param list[FileEntity] entity_list: (required) :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once - :param str editgroup: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) + :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) :return: list[EntityEdit] If the method is called asynchronously, returns the request thread. """ - all_params = ['entity_list', 'autoaccept', 'editgroup'] # noqa: E501 + all_params = ['entity_list', 'autoaccept', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -815,8 +815,8 @@ class DefaultApi(object): query_params = [] if 'autoaccept' in params: query_params.append(('autoaccept', params['autoaccept'])) # noqa: E501 - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -863,7 +863,7 @@ class DefaultApi(object): :param async bool :param ReleaseEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. @@ -885,13 +885,13 @@ class DefaultApi(object): :param async bool :param ReleaseEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['entity', 'editgroup'] # noqa: E501 + all_params = ['entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -916,8 +916,8 @@ class DefaultApi(object): path_params = {} query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -965,7 +965,7 @@ class DefaultApi(object): :param async bool :param list[ReleaseEntity] entity_list: (required) :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once - :param str editgroup: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) + :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) :return: list[EntityEdit] If the method is called asynchronously, returns the request thread. @@ -988,13 +988,13 @@ class DefaultApi(object): :param async bool :param list[ReleaseEntity] entity_list: (required) :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once - :param str editgroup: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) + :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) :return: list[EntityEdit] If the method is called asynchronously, returns the request thread. """ - all_params = ['entity_list', 'autoaccept', 'editgroup'] # noqa: E501 + all_params = ['entity_list', 'autoaccept', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1021,8 +1021,8 @@ class DefaultApi(object): query_params = [] if 'autoaccept' in params: query_params.append(('autoaccept', params['autoaccept'])) # noqa: E501 - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -1069,7 +1069,7 @@ class DefaultApi(object): :param async bool :param WorkEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. @@ -1091,13 +1091,13 @@ class DefaultApi(object): :param async bool :param WorkEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['entity', 'editgroup'] # noqa: E501 + all_params = ['entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1122,8 +1122,8 @@ class DefaultApi(object): path_params = {} query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -1171,7 +1171,7 @@ class DefaultApi(object): :param async bool :param list[WorkEntity] entity_list: (required) :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once - :param str editgroup: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) + :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) :return: list[EntityEdit] If the method is called asynchronously, returns the request thread. @@ -1194,13 +1194,13 @@ class DefaultApi(object): :param async bool :param list[WorkEntity] entity_list: (required) :param bool autoaccept: If true, and editor is authorized, batch is accepted all at once - :param str editgroup: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) + :param str editgroup_id: Editgroup to auto-accept and apply to all entities (required if 'autoaccept' is True) :return: list[EntityEdit] If the method is called asynchronously, returns the request thread. """ - all_params = ['entity_list', 'autoaccept', 'editgroup'] # noqa: E501 + all_params = ['entity_list', 'autoaccept', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1227,8 +1227,8 @@ class DefaultApi(object): query_params = [] if 'autoaccept' in params: query_params.append(('autoaccept', params['autoaccept'])) # noqa: E501 - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -1265,45 +1265,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_container(self, id, **kwargs): # noqa: E501 + def delete_container(self, ident, **kwargs): # noqa: E501 """delete_container # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_container(id, async=True) + >>> thread = api.delete_container(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) - :param str editgroup: + :param str ident: (required) + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_container_with_http_info(id, **kwargs) # noqa: E501 + return self.delete_container_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.delete_container_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.delete_container_with_http_info(ident, **kwargs) # noqa: E501 return data - def delete_container_with_http_info(self, id, **kwargs): # noqa: E501 + def delete_container_with_http_info(self, ident, **kwargs): # noqa: E501 """delete_container # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_container_with_http_info(id, async=True) + >>> thread = api.delete_container_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) - :param str editgroup: + :param str ident: (required) + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'editgroup'] # noqa: E501 + all_params = ['ident', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1318,20 +1318,20 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete_container`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `delete_container`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -1351,7 +1351,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/{id}', 'DELETE', + '/container/{ident}', 'DELETE', path_params, query_params, header_params, @@ -1463,45 +1463,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_creator(self, id, **kwargs): # noqa: E501 + def delete_creator(self, ident, **kwargs): # noqa: E501 """delete_creator # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_creator(id, async=True) + >>> thread = api.delete_creator(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) - :param str editgroup: + :param str ident: (required) + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_creator_with_http_info(id, **kwargs) # noqa: E501 + return self.delete_creator_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.delete_creator_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.delete_creator_with_http_info(ident, **kwargs) # noqa: E501 return data - def delete_creator_with_http_info(self, id, **kwargs): # noqa: E501 + def delete_creator_with_http_info(self, ident, **kwargs): # noqa: E501 """delete_creator # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_creator_with_http_info(id, async=True) + >>> thread = api.delete_creator_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) - :param str editgroup: + :param str ident: (required) + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'editgroup'] # noqa: E501 + all_params = ['ident', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1516,20 +1516,20 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete_creator`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `delete_creator`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -1549,7 +1549,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{id}', 'DELETE', + '/creator/{ident}', 'DELETE', path_params, query_params, header_params, @@ -1661,45 +1661,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_file(self, id, **kwargs): # noqa: E501 + def delete_file(self, ident, **kwargs): # noqa: E501 """delete_file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_file(id, async=True) + >>> thread = api.delete_file(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) - :param str editgroup: + :param str ident: (required) + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_file_with_http_info(id, **kwargs) # noqa: E501 + return self.delete_file_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.delete_file_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.delete_file_with_http_info(ident, **kwargs) # noqa: E501 return data - def delete_file_with_http_info(self, id, **kwargs): # noqa: E501 + def delete_file_with_http_info(self, ident, **kwargs): # noqa: E501 """delete_file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_file_with_http_info(id, async=True) + >>> thread = api.delete_file_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) - :param str editgroup: + :param str ident: (required) + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'editgroup'] # noqa: E501 + all_params = ['ident', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1714,20 +1714,20 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete_file`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `delete_file`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -1747,7 +1747,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/{id}', 'DELETE', + '/file/{ident}', 'DELETE', path_params, query_params, header_params, @@ -1859,45 +1859,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_release(self, id, **kwargs): # noqa: E501 + def delete_release(self, ident, **kwargs): # noqa: E501 """delete_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_release(id, async=True) + >>> thread = api.delete_release(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) - :param str editgroup: + :param str ident: (required) + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_release_with_http_info(id, **kwargs) # noqa: E501 + return self.delete_release_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.delete_release_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.delete_release_with_http_info(ident, **kwargs) # noqa: E501 return data - def delete_release_with_http_info(self, id, **kwargs): # noqa: E501 + def delete_release_with_http_info(self, ident, **kwargs): # noqa: E501 """delete_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_release_with_http_info(id, async=True) + >>> thread = api.delete_release_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) - :param str editgroup: + :param str ident: (required) + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'editgroup'] # noqa: E501 + all_params = ['ident', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1912,20 +1912,20 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete_release`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `delete_release`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -1945,7 +1945,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{id}', 'DELETE', + '/release/{ident}', 'DELETE', path_params, query_params, header_params, @@ -2057,45 +2057,45 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_work(self, id, **kwargs): # noqa: E501 + def delete_work(self, ident, **kwargs): # noqa: E501 """delete_work # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_work(id, async=True) + >>> thread = api.delete_work(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) - :param str editgroup: + :param str ident: (required) + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_work_with_http_info(id, **kwargs) # noqa: E501 + return self.delete_work_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.delete_work_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.delete_work_with_http_info(ident, **kwargs) # noqa: E501 return data - def delete_work_with_http_info(self, id, **kwargs): # noqa: E501 + def delete_work_with_http_info(self, ident, **kwargs): # noqa: E501 """delete_work # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_work_with_http_info(id, async=True) + >>> thread = api.delete_work_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) - :param str editgroup: + :param str ident: (required) + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'editgroup'] # noqa: E501 + all_params = ['ident', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2110,20 +2110,20 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `delete_work`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `delete_work`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -2143,7 +2143,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work/{id}', 'DELETE', + '/work/{ident}', 'DELETE', path_params, query_params, header_params, @@ -2348,43 +2348,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_changelog_entry(self, id, **kwargs): # noqa: E501 + def get_changelog_entry(self, index, **kwargs): # noqa: E501 """get_changelog_entry # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_changelog_entry(id, async=True) + >>> thread = api.get_changelog_entry(index, async=True) >>> result = thread.get() :param async bool - :param int id: (required) + :param int index: (required) :return: ChangelogEntry If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_changelog_entry_with_http_info(id, **kwargs) # noqa: E501 + return self.get_changelog_entry_with_http_info(index, **kwargs) # noqa: E501 else: - (data) = self.get_changelog_entry_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_changelog_entry_with_http_info(index, **kwargs) # noqa: E501 return data - def get_changelog_entry_with_http_info(self, id, **kwargs): # noqa: E501 + def get_changelog_entry_with_http_info(self, index, **kwargs): # noqa: E501 """get_changelog_entry # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_changelog_entry_with_http_info(id, async=True) + >>> thread = api.get_changelog_entry_with_http_info(index, async=True) >>> result = thread.get() :param async bool - :param int id: (required) + :param int index: (required) :return: ChangelogEntry If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['index'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2399,16 +2399,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_changelog_entry`") # noqa: E501 + # verify the required parameter 'index' is set + if ('index' not in params or + params['index'] is None): + raise ValueError("Missing the required parameter `index` when calling `get_changelog_entry`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'index' in params: + path_params['index'] = params['index'] # noqa: E501 query_params = [] @@ -2430,7 +2430,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/changelog/{id}', 'GET', + '/changelog/{index}', 'GET', path_params, query_params, header_params, @@ -2445,16 +2445,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_container(self, id, **kwargs): # noqa: E501 + def get_container(self, ident, **kwargs): # noqa: E501 """get_container # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container(id, async=True) + >>> thread = api.get_container(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet). :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). :return: ContainerEntity @@ -2463,21 +2463,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_container_with_http_info(id, **kwargs) # noqa: E501 + return self.get_container_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_container_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_container_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_container_with_http_info(self, id, **kwargs): # noqa: E501 + def get_container_with_http_info(self, ident, **kwargs): # noqa: E501 """get_container # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_with_http_info(id, async=True) + >>> thread = api.get_container_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet). :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). :return: ContainerEntity @@ -2485,7 +2485,7 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['id', 'expand', 'hide'] # noqa: E501 + all_params = ['ident', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2500,16 +2500,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_container`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_container`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'expand' in params: @@ -2535,7 +2535,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/{id}', 'GET', + '/container/{ident}', 'GET', path_params, query_params, header_params, @@ -2647,16 +2647,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_container_history(self, id, **kwargs): # noqa: E501 + def get_container_history(self, ident, **kwargs): # noqa: E501 """get_container_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_history(id, async=True) + >>> thread = api.get_container_history(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param int limit: :return: list[EntityHistoryEntry] If the method is called asynchronously, @@ -2664,28 +2664,28 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_container_history_with_http_info(id, **kwargs) # noqa: E501 + return self.get_container_history_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_container_history_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_container_history_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_container_history_with_http_info(self, id, **kwargs): # noqa: E501 + def get_container_history_with_http_info(self, ident, **kwargs): # noqa: E501 """get_container_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_history_with_http_info(id, async=True) + >>> thread = api.get_container_history_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param int limit: :return: list[EntityHistoryEntry] If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'limit'] # noqa: E501 + all_params = ['ident', 'limit'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2700,16 +2700,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_container_history`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_container_history`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'limit' in params: @@ -2733,7 +2733,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/{id}/history', 'GET', + '/container/{ident}/history', 'GET', path_params, query_params, header_params, @@ -2748,43 +2748,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_container_redirects(self, id, **kwargs): # noqa: E501 + def get_container_redirects(self, ident, **kwargs): # noqa: E501 """get_container_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_redirects(id, async=True) + >>> thread = api.get_container_redirects(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_container_redirects_with_http_info(id, **kwargs) # noqa: E501 + return self.get_container_redirects_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_container_redirects_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_container_redirects_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_container_redirects_with_http_info(self, id, **kwargs): # noqa: E501 + def get_container_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 """get_container_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_redirects_with_http_info(id, async=True) + >>> thread = api.get_container_redirects_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['ident'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2799,16 +2799,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_container_redirects`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_container_redirects`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] @@ -2830,7 +2830,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/{id}/redirects', 'GET', + '/container/{ident}/redirects', 'GET', path_params, query_params, header_params, @@ -2845,16 +2845,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_container_revision(self, id, **kwargs): # noqa: E501 + def get_container_revision(self, rev_id, **kwargs): # noqa: E501 """get_container_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_revision(id, async=True) + >>> thread = api.get_container_revision(rev_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str rev_id: (required) :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet). :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). :return: ContainerEntity @@ -2863,21 +2863,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_container_revision_with_http_info(id, **kwargs) # noqa: E501 + return self.get_container_revision_with_http_info(rev_id, **kwargs) # noqa: E501 else: - (data) = self.get_container_revision_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_container_revision_with_http_info(rev_id, **kwargs) # noqa: E501 return data - def get_container_revision_with_http_info(self, id, **kwargs): # noqa: E501 + def get_container_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 """get_container_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_container_revision_with_http_info(id, async=True) + >>> thread = api.get_container_revision_with_http_info(rev_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str rev_id: (required) :param str expand: List of sub-entities to expand in response. For containers, none accepted (yet). :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). :return: ContainerEntity @@ -2885,7 +2885,7 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['id', 'expand', 'hide'] # noqa: E501 + all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2900,16 +2900,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_container_revision`") # noqa: E501 + # verify the required parameter 'rev_id' is set + if ('rev_id' not in params or + params['rev_id'] is None): + raise ValueError("Missing the required parameter `rev_id` when calling `get_container_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'rev_id' in params: + path_params['rev_id'] = params['rev_id'] # noqa: E501 query_params = [] if 'expand' in params: @@ -2935,7 +2935,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/rev/{id}', 'GET', + '/container/rev/{rev_id}', 'GET', path_params, query_params, header_params, @@ -2950,16 +2950,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator(self, id, **kwargs): # noqa: E501 + def get_creator(self, ident, **kwargs): # noqa: E501 """get_creator # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator(id, async=True) + >>> thread = api.get_creator(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet). :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). :return: CreatorEntity @@ -2968,21 +2968,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_creator_with_http_info(id, **kwargs) # noqa: E501 + return self.get_creator_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_creator_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_creator_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_creator_with_http_info(self, id, **kwargs): # noqa: E501 + def get_creator_with_http_info(self, ident, **kwargs): # noqa: E501 """get_creator # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_with_http_info(id, async=True) + >>> thread = api.get_creator_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet). :param str hide: List of entity fields to elide in response. For containers, none accepted (yet). :return: CreatorEntity @@ -2990,7 +2990,7 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['id', 'expand', 'hide'] # noqa: E501 + all_params = ['ident', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3005,16 +3005,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_creator`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_creator`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'expand' in params: @@ -3040,7 +3040,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{id}', 'GET', + '/creator/{ident}', 'GET', path_params, query_params, header_params, @@ -3152,16 +3152,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator_history(self, id, **kwargs): # noqa: E501 + def get_creator_history(self, ident, **kwargs): # noqa: E501 """get_creator_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_history(id, async=True) + >>> thread = api.get_creator_history(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param int limit: :return: list[EntityHistoryEntry] If the method is called asynchronously, @@ -3169,28 +3169,28 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_creator_history_with_http_info(id, **kwargs) # noqa: E501 + return self.get_creator_history_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_creator_history_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_creator_history_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_creator_history_with_http_info(self, id, **kwargs): # noqa: E501 + def get_creator_history_with_http_info(self, ident, **kwargs): # noqa: E501 """get_creator_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_history_with_http_info(id, async=True) + >>> thread = api.get_creator_history_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param int limit: :return: list[EntityHistoryEntry] If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'limit'] # noqa: E501 + all_params = ['ident', 'limit'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3205,16 +3205,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_creator_history`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_creator_history`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'limit' in params: @@ -3238,7 +3238,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{id}/history', 'GET', + '/creator/{ident}/history', 'GET', path_params, query_params, header_params, @@ -3253,43 +3253,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator_redirects(self, id, **kwargs): # noqa: E501 + def get_creator_redirects(self, ident, **kwargs): # noqa: E501 """get_creator_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_redirects(id, async=True) + >>> thread = api.get_creator_redirects(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_creator_redirects_with_http_info(id, **kwargs) # noqa: E501 + return self.get_creator_redirects_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_creator_redirects_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_creator_redirects_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_creator_redirects_with_http_info(self, id, **kwargs): # noqa: E501 + def get_creator_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 """get_creator_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_redirects_with_http_info(id, async=True) + >>> thread = api.get_creator_redirects_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['ident'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3304,16 +3304,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_creator_redirects`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_creator_redirects`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] @@ -3335,7 +3335,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{id}/redirects', 'GET', + '/creator/{ident}/redirects', 'GET', path_params, query_params, header_params, @@ -3350,16 +3350,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator_releases(self, id, **kwargs): # noqa: E501 + def get_creator_releases(self, ident, **kwargs): # noqa: E501 """get_creator_releases # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_releases(id, async=True) + >>> thread = api.get_creator_releases(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid. :return: list[ReleaseEntity] If the method is called asynchronously, @@ -3367,28 +3367,28 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_creator_releases_with_http_info(id, **kwargs) # noqa: E501 + return self.get_creator_releases_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_creator_releases_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_creator_releases_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_creator_releases_with_http_info(self, id, **kwargs): # noqa: E501 + def get_creator_releases_with_http_info(self, ident, **kwargs): # noqa: E501 """get_creator_releases # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_releases_with_http_info(id, async=True) + >>> thread = api.get_creator_releases_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid. :return: list[ReleaseEntity] If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'hide'] # noqa: E501 + all_params = ['ident', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3403,16 +3403,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_creator_releases`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_creator_releases`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'hide' in params: @@ -3436,7 +3436,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{id}/releases', 'GET', + '/creator/{ident}/releases', 'GET', path_params, query_params, header_params, @@ -3451,16 +3451,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_creator_revision(self, id, **kwargs): # noqa: E501 + def get_creator_revision(self, rev_id, **kwargs): # noqa: E501 """get_creator_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_revision(id, async=True) + >>> thread = api.get_creator_revision(rev_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str rev_id: (required) :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet). :param str hide: List of entity fields to elide in response. For creators, none accepted (yet). :return: CreatorEntity @@ -3469,21 +3469,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_creator_revision_with_http_info(id, **kwargs) # noqa: E501 + return self.get_creator_revision_with_http_info(rev_id, **kwargs) # noqa: E501 else: - (data) = self.get_creator_revision_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_creator_revision_with_http_info(rev_id, **kwargs) # noqa: E501 return data - def get_creator_revision_with_http_info(self, id, **kwargs): # noqa: E501 + def get_creator_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 """get_creator_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_creator_revision_with_http_info(id, async=True) + >>> thread = api.get_creator_revision_with_http_info(rev_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str rev_id: (required) :param str expand: List of sub-entities to expand in response. For creators, none accepted (yet). :param str hide: List of entity fields to elide in response. For creators, none accepted (yet). :return: CreatorEntity @@ -3491,7 +3491,7 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['id', 'expand', 'hide'] # noqa: E501 + all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3506,16 +3506,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_creator_revision`") # noqa: E501 + # verify the required parameter 'rev_id' is set + if ('rev_id' not in params or + params['rev_id'] is None): + raise ValueError("Missing the required parameter `rev_id` when calling `get_creator_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'rev_id' in params: + path_params['rev_id'] = params['rev_id'] # noqa: E501 query_params = [] if 'expand' in params: @@ -3541,7 +3541,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/rev/{id}', 'GET', + '/creator/rev/{rev_id}', 'GET', path_params, query_params, header_params, @@ -3556,43 +3556,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_editgroup(self, id, **kwargs): # noqa: E501 + def get_editgroup(self, editgroup_id, **kwargs): # noqa: E501 """get_editgroup # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_editgroup(id, async=True) + >>> thread = api.get_editgroup(editgroup_id, async=True) >>> result = thread.get() :param async bool - :param str id: base32-encoded unique identifier (required) + :param str editgroup_id: base32-encoded unique identifier (required) :return: Editgroup If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_editgroup_with_http_info(id, **kwargs) # noqa: E501 + return self.get_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501 else: - (data) = self.get_editgroup_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_editgroup_with_http_info(editgroup_id, **kwargs) # noqa: E501 return data - def get_editgroup_with_http_info(self, id, **kwargs): # noqa: E501 + def get_editgroup_with_http_info(self, editgroup_id, **kwargs): # noqa: E501 """get_editgroup # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_editgroup_with_http_info(id, async=True) + >>> thread = api.get_editgroup_with_http_info(editgroup_id, async=True) >>> result = thread.get() :param async bool - :param str id: base32-encoded unique identifier (required) + :param str editgroup_id: base32-encoded unique identifier (required) :return: Editgroup If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3607,24 +3607,24 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_editgroup`") # noqa: E501 - - if ('id' in params and - len(params['id']) > 26): - raise ValueError("Invalid value for parameter `id` when calling `get_editgroup`, length must be less than or equal to `26`") # noqa: E501 - if ('id' in params and - len(params['id']) < 26): - raise ValueError("Invalid value for parameter `id` when calling `get_editgroup`, length must be greater than or equal to `26`") # noqa: E501 - if 'id' in params and not re.search('[a-zA-Z2-7]{26}', params['id']): # noqa: E501 - raise ValueError("Invalid value for parameter `id` when calling `get_editgroup`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501 + # verify the required parameter 'editgroup_id' is set + if ('editgroup_id' not in params or + params['editgroup_id'] is None): + raise ValueError("Missing the required parameter `editgroup_id` when calling `get_editgroup`") # noqa: E501 + + if ('editgroup_id' in params and + len(params['editgroup_id']) > 26): + raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, length must be less than or equal to `26`") # noqa: E501 + if ('editgroup_id' in params and + len(params['editgroup_id']) < 26): + raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, length must be greater than or equal to `26`") # noqa: E501 + if 'editgroup_id' in params and not re.search('[a-zA-Z2-7]{26}', params['editgroup_id']): # noqa: E501 + raise ValueError("Invalid value for parameter `editgroup_id` when calling `get_editgroup`, must conform to the pattern `/[a-zA-Z2-7]{26}/`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'editgroup_id' in params: + path_params['editgroup_id'] = params['editgroup_id'] # noqa: E501 query_params = [] @@ -3646,7 +3646,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/editgroup/{id}', 'GET', + '/editgroup/{editgroup_id}', 'GET', path_params, query_params, header_params, @@ -3661,43 +3661,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_editor(self, id, **kwargs): # noqa: E501 + def get_editor(self, editor_id, **kwargs): # noqa: E501 """get_editor # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_editor(id, async=True) + >>> thread = api.get_editor(editor_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str editor_id: (required) :return: Editor If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_editor_with_http_info(id, **kwargs) # noqa: E501 + return self.get_editor_with_http_info(editor_id, **kwargs) # noqa: E501 else: - (data) = self.get_editor_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_editor_with_http_info(editor_id, **kwargs) # noqa: E501 return data - def get_editor_with_http_info(self, id, **kwargs): # noqa: E501 + def get_editor_with_http_info(self, editor_id, **kwargs): # noqa: E501 """get_editor # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_editor_with_http_info(id, async=True) + >>> thread = api.get_editor_with_http_info(editor_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str editor_id: (required) :return: Editor If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['editor_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3712,16 +3712,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_editor`") # noqa: E501 + # verify the required parameter 'editor_id' is set + if ('editor_id' not in params or + params['editor_id'] is None): + raise ValueError("Missing the required parameter `editor_id` when calling `get_editor`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'editor_id' in params: + path_params['editor_id'] = params['editor_id'] # noqa: E501 query_params = [] @@ -3743,7 +3743,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/editor/{id}', 'GET', + '/editor/{editor_id}', 'GET', path_params, query_params, header_params, @@ -3758,43 +3758,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_editor_changelog(self, id, **kwargs): # noqa: E501 + def get_editor_changelog(self, editor_id, **kwargs): # noqa: E501 """get_editor_changelog # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_editor_changelog(id, async=True) + >>> thread = api.get_editor_changelog(editor_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str editor_id: (required) :return: list[ChangelogEntry] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_editor_changelog_with_http_info(id, **kwargs) # noqa: E501 + return self.get_editor_changelog_with_http_info(editor_id, **kwargs) # noqa: E501 else: - (data) = self.get_editor_changelog_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_editor_changelog_with_http_info(editor_id, **kwargs) # noqa: E501 return data - def get_editor_changelog_with_http_info(self, id, **kwargs): # noqa: E501 + def get_editor_changelog_with_http_info(self, editor_id, **kwargs): # noqa: E501 """get_editor_changelog # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_editor_changelog_with_http_info(id, async=True) + >>> thread = api.get_editor_changelog_with_http_info(editor_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str editor_id: (required) :return: list[ChangelogEntry] If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['editor_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3809,16 +3809,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_editor_changelog`") # noqa: E501 + # verify the required parameter 'editor_id' is set + if ('editor_id' not in params or + params['editor_id'] is None): + raise ValueError("Missing the required parameter `editor_id` when calling `get_editor_changelog`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'editor_id' in params: + path_params['editor_id'] = params['editor_id'] # noqa: E501 query_params = [] @@ -3840,7 +3840,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/editor/{id}/changelog', 'GET', + '/editor/{editor_id}/changelog', 'GET', path_params, query_params, header_params, @@ -3855,16 +3855,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_file(self, id, **kwargs): # noqa: E501 + def get_file(self, ident, **kwargs): # noqa: E501 """get_file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file(id, async=True) + >>> thread = api.get_file(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str expand: List of sub-entities to expand in response. For files, none accepted (yet). :param str hide: List of entity fields to elide in response. For files, none accepted (yet). :return: FileEntity @@ -3873,21 +3873,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_file_with_http_info(id, **kwargs) # noqa: E501 + return self.get_file_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_file_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_file_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_file_with_http_info(self, id, **kwargs): # noqa: E501 + def get_file_with_http_info(self, ident, **kwargs): # noqa: E501 """get_file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_with_http_info(id, async=True) + >>> thread = api.get_file_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str expand: List of sub-entities to expand in response. For files, none accepted (yet). :param str hide: List of entity fields to elide in response. For files, none accepted (yet). :return: FileEntity @@ -3895,7 +3895,7 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['id', 'expand', 'hide'] # noqa: E501 + all_params = ['ident', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -3910,16 +3910,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_file`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_file`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'expand' in params: @@ -3945,7 +3945,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/{id}', 'GET', + '/file/{ident}', 'GET', path_params, query_params, header_params, @@ -4057,16 +4057,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_file_history(self, id, **kwargs): # noqa: E501 + def get_file_history(self, ident, **kwargs): # noqa: E501 """get_file_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_history(id, async=True) + >>> thread = api.get_file_history(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param int limit: :return: list[EntityHistoryEntry] If the method is called asynchronously, @@ -4074,28 +4074,28 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_file_history_with_http_info(id, **kwargs) # noqa: E501 + return self.get_file_history_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_file_history_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_file_history_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_file_history_with_http_info(self, id, **kwargs): # noqa: E501 + def get_file_history_with_http_info(self, ident, **kwargs): # noqa: E501 """get_file_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_history_with_http_info(id, async=True) + >>> thread = api.get_file_history_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param int limit: :return: list[EntityHistoryEntry] If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'limit'] # noqa: E501 + all_params = ['ident', 'limit'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4110,16 +4110,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_file_history`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_file_history`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'limit' in params: @@ -4143,7 +4143,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/{id}/history', 'GET', + '/file/{ident}/history', 'GET', path_params, query_params, header_params, @@ -4158,43 +4158,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_file_redirects(self, id, **kwargs): # noqa: E501 + def get_file_redirects(self, ident, **kwargs): # noqa: E501 """get_file_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_redirects(id, async=True) + >>> thread = api.get_file_redirects(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_file_redirects_with_http_info(id, **kwargs) # noqa: E501 + return self.get_file_redirects_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_file_redirects_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_file_redirects_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_file_redirects_with_http_info(self, id, **kwargs): # noqa: E501 + def get_file_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 """get_file_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_redirects_with_http_info(id, async=True) + >>> thread = api.get_file_redirects_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['ident'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4209,16 +4209,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_file_redirects`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_file_redirects`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] @@ -4240,7 +4240,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/{id}/redirects', 'GET', + '/file/{ident}/redirects', 'GET', path_params, query_params, header_params, @@ -4255,16 +4255,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_file_revision(self, id, **kwargs): # noqa: E501 + def get_file_revision(self, rev_id, **kwargs): # noqa: E501 """get_file_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_revision(id, async=True) + >>> thread = api.get_file_revision(rev_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str rev_id: (required) :param str expand: List of sub-entities to expand in response. For files, none accepted (yet). :param str hide: List of entity fields to elide in response. For files, none accepted (yet). :return: FileEntity @@ -4273,21 +4273,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_file_revision_with_http_info(id, **kwargs) # noqa: E501 + return self.get_file_revision_with_http_info(rev_id, **kwargs) # noqa: E501 else: - (data) = self.get_file_revision_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_file_revision_with_http_info(rev_id, **kwargs) # noqa: E501 return data - def get_file_revision_with_http_info(self, id, **kwargs): # noqa: E501 + def get_file_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 """get_file_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_file_revision_with_http_info(id, async=True) + >>> thread = api.get_file_revision_with_http_info(rev_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str rev_id: (required) :param str expand: List of sub-entities to expand in response. For files, none accepted (yet). :param str hide: List of entity fields to elide in response. For files, none accepted (yet). :return: FileEntity @@ -4295,7 +4295,7 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['id', 'expand', 'hide'] # noqa: E501 + all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4310,16 +4310,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_file_revision`") # noqa: E501 + # verify the required parameter 'rev_id' is set + if ('rev_id' not in params or + params['rev_id'] is None): + raise ValueError("Missing the required parameter `rev_id` when calling `get_file_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'rev_id' in params: + path_params['rev_id'] = params['rev_id'] # noqa: E501 query_params = [] if 'expand' in params: @@ -4345,7 +4345,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/rev/{id}', 'GET', + '/file/rev/{rev_id}', 'GET', path_params, query_params, header_params, @@ -4360,16 +4360,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release(self, id, **kwargs): # noqa: E501 + def get_release(self, ident, **kwargs): # noqa: E501 """get_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_release(id, async=True) + >>> thread = api.get_release(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str expand: List of sub-entities to expand in response. For releases, 'files', 'container', and 'creators' are valid. :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid. :return: ReleaseEntity @@ -4378,21 +4378,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_release_with_http_info(id, **kwargs) # noqa: E501 + return self.get_release_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_release_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_release_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_release_with_http_info(self, id, **kwargs): # noqa: E501 + def get_release_with_http_info(self, ident, **kwargs): # noqa: E501 """get_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_release_with_http_info(id, async=True) + >>> thread = api.get_release_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str expand: List of sub-entities to expand in response. For releases, 'files', 'container', and 'creators' are valid. :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid. :return: ReleaseEntity @@ -4400,7 +4400,7 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['id', 'expand', 'hide'] # noqa: E501 + all_params = ['ident', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4415,16 +4415,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_release`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_release`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'expand' in params: @@ -4450,7 +4450,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{id}', 'GET', + '/release/{ident}', 'GET', path_params, query_params, header_params, @@ -4562,16 +4562,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release_files(self, id, **kwargs): # noqa: E501 + def get_release_files(self, ident, **kwargs): # noqa: E501 """get_release_files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_release_files(id, async=True) + >>> thread = api.get_release_files(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str hide: List of entity fields to elide in response. For files, none accepted (yet). :return: list[FileEntity] If the method is called asynchronously, @@ -4579,28 +4579,28 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_release_files_with_http_info(id, **kwargs) # noqa: E501 + return self.get_release_files_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_release_files_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_release_files_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_release_files_with_http_info(self, id, **kwargs): # noqa: E501 + def get_release_files_with_http_info(self, ident, **kwargs): # noqa: E501 """get_release_files # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_release_files_with_http_info(id, async=True) + >>> thread = api.get_release_files_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str hide: List of entity fields to elide in response. For files, none accepted (yet). :return: list[FileEntity] If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'hide'] # noqa: E501 + all_params = ['ident', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4615,16 +4615,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_release_files`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_release_files`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'hide' in params: @@ -4648,7 +4648,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{id}/files', 'GET', + '/release/{ident}/files', 'GET', path_params, query_params, header_params, @@ -4663,16 +4663,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release_history(self, id, **kwargs): # noqa: E501 + def get_release_history(self, ident, **kwargs): # noqa: E501 """get_release_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_release_history(id, async=True) + >>> thread = api.get_release_history(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param int limit: :return: list[EntityHistoryEntry] If the method is called asynchronously, @@ -4680,28 +4680,28 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_release_history_with_http_info(id, **kwargs) # noqa: E501 + return self.get_release_history_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_release_history_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_release_history_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_release_history_with_http_info(self, id, **kwargs): # noqa: E501 + def get_release_history_with_http_info(self, ident, **kwargs): # noqa: E501 """get_release_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_release_history_with_http_info(id, async=True) + >>> thread = api.get_release_history_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param int limit: :return: list[EntityHistoryEntry] If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'limit'] # noqa: E501 + all_params = ['ident', 'limit'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4716,16 +4716,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_release_history`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_release_history`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'limit' in params: @@ -4749,7 +4749,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{id}/history', 'GET', + '/release/{ident}/history', 'GET', path_params, query_params, header_params, @@ -4764,43 +4764,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release_redirects(self, id, **kwargs): # noqa: E501 + def get_release_redirects(self, ident, **kwargs): # noqa: E501 """get_release_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_release_redirects(id, async=True) + >>> thread = api.get_release_redirects(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_release_redirects_with_http_info(id, **kwargs) # noqa: E501 + return self.get_release_redirects_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_release_redirects_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_release_redirects_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_release_redirects_with_http_info(self, id, **kwargs): # noqa: E501 + def get_release_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 """get_release_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_release_redirects_with_http_info(id, async=True) + >>> thread = api.get_release_redirects_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['ident'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4815,16 +4815,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_release_redirects`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_release_redirects`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] @@ -4846,7 +4846,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{id}/redirects', 'GET', + '/release/{ident}/redirects', 'GET', path_params, query_params, header_params, @@ -4861,16 +4861,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_release_revision(self, id, **kwargs): # noqa: E501 + def get_release_revision(self, rev_id, **kwargs): # noqa: E501 """get_release_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_release_revision(id, async=True) + >>> thread = api.get_release_revision(rev_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str rev_id: (required) :param str expand: List of sub-entities to expand in response. For releases, none accepted (yet). :param str hide: List of entity fields to elide in response. For releases, none accepted (yet). :return: ReleaseEntity @@ -4879,21 +4879,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_release_revision_with_http_info(id, **kwargs) # noqa: E501 + return self.get_release_revision_with_http_info(rev_id, **kwargs) # noqa: E501 else: - (data) = self.get_release_revision_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_release_revision_with_http_info(rev_id, **kwargs) # noqa: E501 return data - def get_release_revision_with_http_info(self, id, **kwargs): # noqa: E501 + def get_release_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 """get_release_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_release_revision_with_http_info(id, async=True) + >>> thread = api.get_release_revision_with_http_info(rev_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str rev_id: (required) :param str expand: List of sub-entities to expand in response. For releases, none accepted (yet). :param str hide: List of entity fields to elide in response. For releases, none accepted (yet). :return: ReleaseEntity @@ -4901,7 +4901,7 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['id', 'expand', 'hide'] # noqa: E501 + all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -4916,16 +4916,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_release_revision`") # noqa: E501 + # verify the required parameter 'rev_id' is set + if ('rev_id' not in params or + params['rev_id'] is None): + raise ValueError("Missing the required parameter `rev_id` when calling `get_release_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'rev_id' in params: + path_params['rev_id'] = params['rev_id'] # noqa: E501 query_params = [] if 'expand' in params: @@ -4951,7 +4951,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/rev/{id}', 'GET', + '/release/rev/{rev_id}', 'GET', path_params, query_params, header_params, @@ -5059,16 +5059,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_work(self, id, **kwargs): # noqa: E501 + def get_work(self, ident, **kwargs): # noqa: E501 """get_work # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_work(id, async=True) + >>> thread = api.get_work(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str expand: List of sub-entities to expand in response. For works, none accepted (yet). :param str hide: List of entity fields to elide in response. For works, none accepted (yet). :return: WorkEntity @@ -5077,21 +5077,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_work_with_http_info(id, **kwargs) # noqa: E501 + return self.get_work_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_work_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_work_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_work_with_http_info(self, id, **kwargs): # noqa: E501 + def get_work_with_http_info(self, ident, **kwargs): # noqa: E501 """get_work # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_work_with_http_info(id, async=True) + >>> thread = api.get_work_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str expand: List of sub-entities to expand in response. For works, none accepted (yet). :param str hide: List of entity fields to elide in response. For works, none accepted (yet). :return: WorkEntity @@ -5099,7 +5099,7 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['id', 'expand', 'hide'] # noqa: E501 + all_params = ['ident', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5114,16 +5114,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_work`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_work`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'expand' in params: @@ -5149,7 +5149,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work/{id}', 'GET', + '/work/{ident}', 'GET', path_params, query_params, header_params, @@ -5261,16 +5261,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_work_history(self, id, **kwargs): # noqa: E501 + def get_work_history(self, ident, **kwargs): # noqa: E501 """get_work_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_work_history(id, async=True) + >>> thread = api.get_work_history(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param int limit: :return: list[EntityHistoryEntry] If the method is called asynchronously, @@ -5278,28 +5278,28 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_work_history_with_http_info(id, **kwargs) # noqa: E501 + return self.get_work_history_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_work_history_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_work_history_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_work_history_with_http_info(self, id, **kwargs): # noqa: E501 + def get_work_history_with_http_info(self, ident, **kwargs): # noqa: E501 """get_work_history # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_work_history_with_http_info(id, async=True) + >>> thread = api.get_work_history_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param int limit: :return: list[EntityHistoryEntry] If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'limit'] # noqa: E501 + all_params = ['ident', 'limit'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5314,16 +5314,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_work_history`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_work_history`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'limit' in params: @@ -5347,7 +5347,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work/{id}/history', 'GET', + '/work/{ident}/history', 'GET', path_params, query_params, header_params, @@ -5362,43 +5362,43 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_work_redirects(self, id, **kwargs): # noqa: E501 + def get_work_redirects(self, ident, **kwargs): # noqa: E501 """get_work_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_work_redirects(id, async=True) + >>> thread = api.get_work_redirects(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_work_redirects_with_http_info(id, **kwargs) # noqa: E501 + return self.get_work_redirects_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_work_redirects_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_work_redirects_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_work_redirects_with_http_info(self, id, **kwargs): # noqa: E501 + def get_work_redirects_with_http_info(self, ident, **kwargs): # noqa: E501 """get_work_redirects # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_work_redirects_with_http_info(id, async=True) + >>> thread = api.get_work_redirects_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :return: list[str] If the method is called asynchronously, returns the request thread. """ - all_params = ['id'] # noqa: E501 + all_params = ['ident'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5413,16 +5413,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_work_redirects`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_work_redirects`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] @@ -5444,7 +5444,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work/{id}/redirects', 'GET', + '/work/{ident}/redirects', 'GET', path_params, query_params, header_params, @@ -5459,16 +5459,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_work_releases(self, id, **kwargs): # noqa: E501 + def get_work_releases(self, ident, **kwargs): # noqa: E501 """get_work_releases # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_work_releases(id, async=True) + >>> thread = api.get_work_releases(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid. :return: list[ReleaseEntity] If the method is called asynchronously, @@ -5476,28 +5476,28 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_work_releases_with_http_info(id, **kwargs) # noqa: E501 + return self.get_work_releases_with_http_info(ident, **kwargs) # noqa: E501 else: - (data) = self.get_work_releases_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_work_releases_with_http_info(ident, **kwargs) # noqa: E501 return data - def get_work_releases_with_http_info(self, id, **kwargs): # noqa: E501 + def get_work_releases_with_http_info(self, ident, **kwargs): # noqa: E501 """get_work_releases # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_work_releases_with_http_info(id, async=True) + >>> thread = api.get_work_releases_with_http_info(ident, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param str hide: List of entity fields to elide in response. For releases, 'abstracts', 'refs', and 'contribs' are valid. :return: list[ReleaseEntity] If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'hide'] # noqa: E501 + all_params = ['ident', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5512,16 +5512,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_work_releases`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `get_work_releases`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] if 'hide' in params: @@ -5545,7 +5545,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work/{id}/releases', 'GET', + '/work/{ident}/releases', 'GET', path_params, query_params, header_params, @@ -5560,16 +5560,16 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_work_revision(self, id, **kwargs): # noqa: E501 + def get_work_revision(self, rev_id, **kwargs): # noqa: E501 """get_work_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_work_revision(id, async=True) + >>> thread = api.get_work_revision(rev_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str rev_id: (required) :param str expand: List of sub-entities to expand in response. For works, none accepted (yet). :param str hide: List of entity fields to elide in response. For works, none accepted (yet). :return: WorkEntity @@ -5578,21 +5578,21 @@ class DefaultApi(object): """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_work_revision_with_http_info(id, **kwargs) # noqa: E501 + return self.get_work_revision_with_http_info(rev_id, **kwargs) # noqa: E501 else: - (data) = self.get_work_revision_with_http_info(id, **kwargs) # noqa: E501 + (data) = self.get_work_revision_with_http_info(rev_id, **kwargs) # noqa: E501 return data - def get_work_revision_with_http_info(self, id, **kwargs): # noqa: E501 + def get_work_revision_with_http_info(self, rev_id, **kwargs): # noqa: E501 """get_work_revision # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_work_revision_with_http_info(id, async=True) + >>> thread = api.get_work_revision_with_http_info(rev_id, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str rev_id: (required) :param str expand: List of sub-entities to expand in response. For works, none accepted (yet). :param str hide: List of entity fields to elide in response. For works, none accepted (yet). :return: WorkEntity @@ -5600,7 +5600,7 @@ class DefaultApi(object): returns the request thread. """ - all_params = ['id', 'expand', 'hide'] # noqa: E501 + all_params = ['rev_id', 'expand', 'hide'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -5615,16 +5615,16 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `get_work_revision`") # noqa: E501 + # verify the required parameter 'rev_id' is set + if ('rev_id' not in params or + params['rev_id'] is None): + raise ValueError("Missing the required parameter `rev_id` when calling `get_work_revision`") # noqa: E501 collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'rev_id' in params: + path_params['rev_id'] = params['rev_id'] # noqa: E501 query_params = [] if 'expand' in params: @@ -5650,7 +5650,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work/rev/{id}', 'GET', + '/work/rev/{rev_id}', 'GET', path_params, query_params, header_params, @@ -6121,47 +6121,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_container(self, id, entity, **kwargs): # noqa: E501 + def update_container(self, ident, entity, **kwargs): # noqa: E501 """update_container # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_container(id, entity, async=True) + >>> thread = api.update_container(ident, entity, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param ContainerEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.update_container_with_http_info(id, entity, **kwargs) # noqa: E501 + return self.update_container_with_http_info(ident, entity, **kwargs) # noqa: E501 else: - (data) = self.update_container_with_http_info(id, entity, **kwargs) # noqa: E501 + (data) = self.update_container_with_http_info(ident, entity, **kwargs) # noqa: E501 return data - def update_container_with_http_info(self, id, entity, **kwargs): # noqa: E501 + def update_container_with_http_info(self, ident, entity, **kwargs): # noqa: E501 """update_container # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_container_with_http_info(id, entity, async=True) + >>> thread = api.update_container_with_http_info(ident, entity, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param ContainerEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'entity', 'editgroup'] # noqa: E501 + all_params = ['ident', 'entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6176,10 +6176,10 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_container`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `update_container`") # noqa: E501 # verify the required parameter 'entity' is set if ('entity' not in params or params['entity'] is None): @@ -6188,12 +6188,12 @@ class DefaultApi(object): collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -6215,7 +6215,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/container/{id}', 'PUT', + '/container/{ident}', 'PUT', path_params, query_params, header_params, @@ -6230,47 +6230,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_creator(self, id, entity, **kwargs): # noqa: E501 + def update_creator(self, ident, entity, **kwargs): # noqa: E501 """update_creator # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_creator(id, entity, async=True) + >>> thread = api.update_creator(ident, entity, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param CreatorEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.update_creator_with_http_info(id, entity, **kwargs) # noqa: E501 + return self.update_creator_with_http_info(ident, entity, **kwargs) # noqa: E501 else: - (data) = self.update_creator_with_http_info(id, entity, **kwargs) # noqa: E501 + (data) = self.update_creator_with_http_info(ident, entity, **kwargs) # noqa: E501 return data - def update_creator_with_http_info(self, id, entity, **kwargs): # noqa: E501 + def update_creator_with_http_info(self, ident, entity, **kwargs): # noqa: E501 """update_creator # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_creator_with_http_info(id, entity, async=True) + >>> thread = api.update_creator_with_http_info(ident, entity, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param CreatorEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'entity', 'editgroup'] # noqa: E501 + all_params = ['ident', 'entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6285,10 +6285,10 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_creator`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `update_creator`") # noqa: E501 # verify the required parameter 'entity' is set if ('entity' not in params or params['entity'] is None): @@ -6297,12 +6297,12 @@ class DefaultApi(object): collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -6324,7 +6324,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/creator/{id}', 'PUT', + '/creator/{ident}', 'PUT', path_params, query_params, header_params, @@ -6339,47 +6339,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_file(self, id, entity, **kwargs): # noqa: E501 + def update_file(self, ident, entity, **kwargs): # noqa: E501 """update_file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_file(id, entity, async=True) + >>> thread = api.update_file(ident, entity, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param FileEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.update_file_with_http_info(id, entity, **kwargs) # noqa: E501 + return self.update_file_with_http_info(ident, entity, **kwargs) # noqa: E501 else: - (data) = self.update_file_with_http_info(id, entity, **kwargs) # noqa: E501 + (data) = self.update_file_with_http_info(ident, entity, **kwargs) # noqa: E501 return data - def update_file_with_http_info(self, id, entity, **kwargs): # noqa: E501 + def update_file_with_http_info(self, ident, entity, **kwargs): # noqa: E501 """update_file # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_file_with_http_info(id, entity, async=True) + >>> thread = api.update_file_with_http_info(ident, entity, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param FileEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'entity', 'editgroup'] # noqa: E501 + all_params = ['ident', 'entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6394,10 +6394,10 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_file`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `update_file`") # noqa: E501 # verify the required parameter 'entity' is set if ('entity' not in params or params['entity'] is None): @@ -6406,12 +6406,12 @@ class DefaultApi(object): collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -6433,7 +6433,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/file/{id}', 'PUT', + '/file/{ident}', 'PUT', path_params, query_params, header_params, @@ -6448,47 +6448,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_release(self, id, entity, **kwargs): # noqa: E501 + def update_release(self, ident, entity, **kwargs): # noqa: E501 """update_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_release(id, entity, async=True) + >>> thread = api.update_release(ident, entity, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param ReleaseEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.update_release_with_http_info(id, entity, **kwargs) # noqa: E501 + return self.update_release_with_http_info(ident, entity, **kwargs) # noqa: E501 else: - (data) = self.update_release_with_http_info(id, entity, **kwargs) # noqa: E501 + (data) = self.update_release_with_http_info(ident, entity, **kwargs) # noqa: E501 return data - def update_release_with_http_info(self, id, entity, **kwargs): # noqa: E501 + def update_release_with_http_info(self, ident, entity, **kwargs): # noqa: E501 """update_release # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_release_with_http_info(id, entity, async=True) + >>> thread = api.update_release_with_http_info(ident, entity, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param ReleaseEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'entity', 'editgroup'] # noqa: E501 + all_params = ['ident', 'entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6503,10 +6503,10 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_release`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `update_release`") # noqa: E501 # verify the required parameter 'entity' is set if ('entity' not in params or params['entity'] is None): @@ -6515,12 +6515,12 @@ class DefaultApi(object): collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -6542,7 +6542,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/release/{id}', 'PUT', + '/release/{ident}', 'PUT', path_params, query_params, header_params, @@ -6557,47 +6557,47 @@ class DefaultApi(object): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_work(self, id, entity, **kwargs): # noqa: E501 + def update_work(self, ident, entity, **kwargs): # noqa: E501 """update_work # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_work(id, entity, async=True) + >>> thread = api.update_work(ident, entity, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param WorkEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.update_work_with_http_info(id, entity, **kwargs) # noqa: E501 + return self.update_work_with_http_info(ident, entity, **kwargs) # noqa: E501 else: - (data) = self.update_work_with_http_info(id, entity, **kwargs) # noqa: E501 + (data) = self.update_work_with_http_info(ident, entity, **kwargs) # noqa: E501 return data - def update_work_with_http_info(self, id, entity, **kwargs): # noqa: E501 + def update_work_with_http_info(self, ident, entity, **kwargs): # noqa: E501 """update_work # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_work_with_http_info(id, entity, async=True) + >>> thread = api.update_work_with_http_info(ident, entity, async=True) >>> result = thread.get() :param async bool - :param str id: (required) + :param str ident: (required) :param WorkEntity entity: (required) - :param str editgroup: + :param str editgroup_id: :return: EntityEdit If the method is called asynchronously, returns the request thread. """ - all_params = ['id', 'entity', 'editgroup'] # noqa: E501 + all_params = ['ident', 'entity', 'editgroup_id'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -6612,10 +6612,10 @@ class DefaultApi(object): ) params[key] = val del params['kwargs'] - # verify the required parameter 'id' is set - if ('id' not in params or - params['id'] is None): - raise ValueError("Missing the required parameter `id` when calling `update_work`") # noqa: E501 + # verify the required parameter 'ident' is set + if ('ident' not in params or + params['ident'] is None): + raise ValueError("Missing the required parameter `ident` when calling `update_work`") # noqa: E501 # verify the required parameter 'entity' is set if ('entity' not in params or params['entity'] is None): @@ -6624,12 +6624,12 @@ class DefaultApi(object): collection_formats = {} path_params = {} - if 'id' in params: - path_params['id'] = params['id'] # noqa: E501 + if 'ident' in params: + path_params['ident'] = params['ident'] # noqa: E501 query_params = [] - if 'editgroup' in params: - query_params.append(('editgroup', params['editgroup'])) # noqa: E501 + if 'editgroup_id' in params: + query_params.append(('editgroup_id', params['editgroup_id'])) # noqa: E501 header_params = {} @@ -6651,7 +6651,7 @@ class DefaultApi(object): auth_settings = [] # noqa: E501 return self.api_client.call_api( - '/work/{id}', 'PUT', + '/work/{ident}', 'PUT', path_params, query_params, header_params, diff --git a/python/fatcat_client/models/editgroup.py b/python/fatcat_client/models/editgroup.py index ff21b800..5b1573ed 100644 --- a/python/fatcat_client/models/editgroup.py +++ b/python/fatcat_client/models/editgroup.py @@ -33,7 +33,7 @@ class Editgroup(object): and the value is json key in definition. """ swagger_types = { - 'id': 'str', + 'editgroup_id': 'str', 'editor_id': 'str', 'description': 'str', 'extra': 'object', @@ -41,25 +41,25 @@ class Editgroup(object): } attribute_map = { - 'id': 'id', + 'editgroup_id': 'editgroup_id', 'editor_id': 'editor_id', 'description': 'description', 'extra': 'extra', 'edits': 'edits' } - def __init__(self, id=None, editor_id=None, description=None, extra=None, edits=None): # noqa: E501 + def __init__(self, editgroup_id=None, editor_id=None, description=None, extra=None, edits=None): # noqa: E501 """Editgroup - a model defined in Swagger""" # noqa: E501 - self._id = None + self._editgroup_id = None self._editor_id = None self._description = None self._extra = None self._edits = None self.discriminator = None - if id is not None: - self.id = id + if editgroup_id is not None: + self.editgroup_id = editgroup_id self.editor_id = editor_id if description is not None: self.description = description @@ -69,33 +69,33 @@ class Editgroup(object): self.edits = edits @property - def id(self): - """Gets the id of this Editgroup. # noqa: E501 + def editgroup_id(self): + """Gets the editgroup_id of this Editgroup. # noqa: E501 base32-encoded unique identifier # noqa: E501 - :return: The id of this Editgroup. # noqa: E501 + :return: The editgroup_id of this Editgroup. # noqa: E501 :rtype: str """ - return self._id + return self._editgroup_id - @id.setter - def id(self, id): - """Sets the id of this Editgroup. + @editgroup_id.setter + def editgroup_id(self, editgroup_id): + """Sets the editgroup_id of this Editgroup. base32-encoded unique identifier # noqa: E501 - :param id: The id of this Editgroup. # noqa: E501 + :param editgroup_id: The editgroup_id of this Editgroup. # noqa: E501 :type: str """ - if id is not None and len(id) > 26: - raise ValueError("Invalid value for `id`, length must be less than or equal to `26`") # noqa: E501 - if id is not None and len(id) < 26: - raise ValueError("Invalid value for `id`, length must be greater than or equal to `26`") # noqa: E501 - if id is not None and not re.search('[a-zA-Z2-7]{26}', id): # noqa: E501 - raise ValueError("Invalid value for `id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501 - - self._id = id + if editgroup_id is not None and len(editgroup_id) > 26: + raise ValueError("Invalid value for `editgroup_id`, length must be less than or equal to `26`") # noqa: E501 + if editgroup_id is not None and len(editgroup_id) < 26: + raise ValueError("Invalid value for `editgroup_id`, length must be greater than or equal to `26`") # noqa: E501 + if editgroup_id is not None and not re.search('[a-zA-Z2-7]{26}', editgroup_id): # noqa: E501 + raise ValueError("Invalid value for `editgroup_id`, must be a follow pattern or equal to `/[a-zA-Z2-7]{26}/`") # noqa: E501 + + self._editgroup_id = editgroup_id @property def editor_id(self): diff --git a/python/fatcat_client/models/editor.py b/python/fatcat_client/models/editor.py index d3523090..c926f86f 100644 --- a/python/fatcat_client/models/editor.py +++ b/python/fatcat_client/models/editor.py @@ -31,46 +31,46 @@ class Editor(object): and the value is json key in definition. """ swagger_types = { - 'id': 'str', + 'editor_id': 'str', 'username': 'str' } attribute_map = { - 'id': 'id', + 'editor_id': 'editor_id', 'username': 'username' } - def __init__(self, id=None, username=None): # noqa: E501 + def __init__(self, editor_id=None, username=None): # noqa: E501 """Editor - a model defined in Swagger""" # noqa: E501 - self._id = None + self._editor_id = None self._username = None self.discriminator = None - if id is not None: - self.id = id + if editor_id is not None: + self.editor_id = editor_id self.username = username @property - def id(self): - """Gets the id of this Editor. # noqa: E501 + def editor_id(self): + """Gets the editor_id of this Editor. # noqa: E501 - :return: The id of this Editor. # noqa: E501 + :return: The editor_id of this Editor. # noqa: E501 :rtype: str """ - return self._id + return self._editor_id - @id.setter - def id(self, id): - """Sets the id of this Editor. + @editor_id.setter + def editor_id(self, editor_id): + """Sets the editor_id of this Editor. - :param id: The id of this Editor. # noqa: E501 + :param editor_id: The editor_id of this Editor. # noqa: E501 :type: str """ - self._id = id + self._editor_id = editor_id @property def username(self): diff --git a/python/fatcat_client/models/file_entity.py b/python/fatcat_client/models/file_entity.py index c130c755..001f5b6e 100644 --- a/python/fatcat_client/models/file_entity.py +++ b/python/fatcat_client/models/file_entity.py @@ -33,7 +33,7 @@ class FileEntity(object): and the value is json key in definition. """ swagger_types = { - 'releases': 'list[str]', + 'release_ids': 'list[str]', 'mimetype': 'str', 'urls': 'list[FileEntityUrls]', 'sha256': 'str', @@ -49,7 +49,7 @@ class FileEntity(object): } attribute_map = { - 'releases': 'releases', + 'release_ids': 'release_ids', 'mimetype': 'mimetype', 'urls': 'urls', 'sha256': 'sha256', @@ -64,10 +64,10 @@ class FileEntity(object): 'state': 'state' } - def __init__(self, releases=None, mimetype=None, urls=None, sha256=None, sha1=None, md5=None, size=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501 + def __init__(self, release_ids=None, mimetype=None, urls=None, sha256=None, sha1=None, md5=None, size=None, edit_extra=None, extra=None, redirect=None, revision=None, ident=None, state=None): # noqa: E501 """FileEntity - a model defined in Swagger""" # noqa: E501 - self._releases = None + self._release_ids = None self._mimetype = None self._urls = None self._sha256 = None @@ -82,8 +82,8 @@ class FileEntity(object): self._state = None self.discriminator = None - if releases is not None: - self.releases = releases + if release_ids is not None: + self.release_ids = release_ids if mimetype is not None: self.mimetype = mimetype if urls is not None: @@ -110,25 +110,25 @@ class FileEntity(object): self.state = state @property - def releases(self): - """Gets the releases of this FileEntity. # noqa: E501 + def release_ids(self): + """Gets the release_ids of this FileEntity. # noqa: E501 - :return: The releases of this FileEntity. # noqa: E501 + :return: The release_ids of this FileEntity. # noqa: E501 :rtype: list[str] """ - return self._releases + return self._release_ids - @releases.setter - def releases(self, releases): - """Sets the releases of this FileEntity. + @release_ids.setter + def release_ids(self, release_ids): + """Sets the release_ids of this FileEntity. - :param releases: The releases of this FileEntity. # noqa: E501 + :param release_ids: The release_ids of this FileEntity. # noqa: E501 :type: list[str] """ - self._releases = releases + self._release_ids = release_ids @property def mimetype(self): -- cgit v1.2.3