Skip to content

Commit

Permalink
2.5.14: propagate API freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
grololo06 committed Oct 26, 2021
1 parent e84a1fd commit 5df667b
Show file tree
Hide file tree
Showing 82 changed files with 3,015 additions and 602 deletions.
4 changes: 2 additions & 2 deletions appli/search/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from appli import app, gvg, DecodeEqualList
from appli.utils import ApiClient
from to_back.ecotaxa_cli_py.api import SamplesApi, InstrumentApi, TaxonomyTreeApi, ProjectsApi
from to_back.ecotaxa_cli_py.api import SamplesApi, InstrumentsApi, TaxonomyTreeApi, ProjectsApi
from to_back.ecotaxa_cli_py.models import ProjectModel, SampleModel, TaxonModel, ProjectUserStatsModel


Expand Down Expand Up @@ -64,7 +64,7 @@ def searchinstrumlist():
project_ids = ""
if gvg("projid") != "":
project_ids = gvg("projid")
with ApiClient(InstrumentApi, request) as api:
with ApiClient(InstrumentsApi, request) as api:
instrums: List[str] = api.instrument_query_instruments_get(project_ids=project_ids)
txt = "List of available Intruments : <hr><ul id=InstrumList>"
for r in instrums:
Expand Down
4 changes: 2 additions & 2 deletions appli/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
from to_back import booster
from to_back.ecotaxa_cli_py import ApiClient as _ApiClient
from to_back.ecotaxa_cli_py.api import ProjectsApi, UsersApi, ObjectsApi, SamplesApi, \
AcquisitionsApi, ProcessesApi, ObjectApi, TaxonomyTreeApi, MiscApi, InstrumentApi, FilesApi, JobsApi
AcquisitionsApi, ProcessesApi, ObjectApi, TaxonomyTreeApi, MiscApi, InstrumentsApi, FilesApi, JobsApi

# Lol, generics in python
A = TypeVar('A', ProjectsApi, UsersApi, ObjectsApi, ObjectApi,
SamplesApi, AcquisitionsApi, ProcessesApi, TaxonomyTreeApi,
MiscApi, InstrumentApi, FilesApi, JobsApi)
MiscApi, InstrumentsApi, FilesApi, JobsApi)


class ApiClient(Generic[A]):
Expand Down
9 changes: 7 additions & 2 deletions to_back/ecotaxa_cli_py/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.17
The version of the OpenAPI document: 0.0.23
Generated by: https://openapi-generator.tech
"""

Expand All @@ -23,7 +23,7 @@
from to_back.ecotaxa_cli_py.api.acquisitions_api import AcquisitionsApi
from to_back.ecotaxa_cli_py.api.authentification_api import AuthentificationApi
from to_back.ecotaxa_cli_py.api.collections_api import CollectionsApi
from to_back.ecotaxa_cli_py.api.instrument_api import InstrumentApi
from to_back.ecotaxa_cli_py.api.instruments_api import InstrumentsApi
from to_back.ecotaxa_cli_py.api.jobs_api import JobsApi
from to_back.ecotaxa_cli_py.api.misc_api import MiscApi
from to_back.ecotaxa_cli_py.api.object_api import ObjectApi
Expand All @@ -44,6 +44,7 @@
# import models into sdk package
from to_back.ecotaxa_cli_py.models.acquisition_model import AcquisitionModel
from to_back.ecotaxa_cli_py.models.body_export_object_set_object_set_export_post import BodyExportObjectSetObjectSetExportPost
from to_back.ecotaxa_cli_py.models.body_predict_object_set_object_set_predict_post import BodyPredictObjectSetObjectSetPredictPost
from to_back.ecotaxa_cli_py.models.body_put_user_file_my_files_post import BodyPutUserFileMyFilesPost
from to_back.ecotaxa_cli_py.models.bulk_update_req import BulkUpdateReq
from to_back.ecotaxa_cli_py.models.classify_auto_req import ClassifyAutoReq
Expand Down Expand Up @@ -75,9 +76,12 @@
from to_back.ecotaxa_cli_py.models.object_set_query_rsp import ObjectSetQueryRsp
from to_back.ecotaxa_cli_py.models.object_set_revert_to_history_rsp import ObjectSetRevertToHistoryRsp
from to_back.ecotaxa_cli_py.models.object_set_summary_rsp import ObjectSetSummaryRsp
from to_back.ecotaxa_cli_py.models.prediction_req import PredictionReq
from to_back.ecotaxa_cli_py.models.prediction_rsp import PredictionRsp
from to_back.ecotaxa_cli_py.models.process_model import ProcessModel
from to_back.ecotaxa_cli_py.models.project_filters import ProjectFilters
from to_back.ecotaxa_cli_py.models.project_model import ProjectModel
from to_back.ecotaxa_cli_py.models.project_set_column_stats_model import ProjectSetColumnStatsModel
from to_back.ecotaxa_cli_py.models.project_summary_model import ProjectSummaryModel
from to_back.ecotaxa_cli_py.models.project_taxo_stats_model import ProjectTaxoStatsModel
from to_back.ecotaxa_cli_py.models.project_user_stats_model import ProjectUserStatsModel
Expand All @@ -88,6 +92,7 @@
from to_back.ecotaxa_cli_py.models.subset_req import SubsetReq
from to_back.ecotaxa_cli_py.models.subset_rsp import SubsetRsp
from to_back.ecotaxa_cli_py.models.taxa_search_rsp import TaxaSearchRsp
from to_back.ecotaxa_cli_py.models.taxon_central import TaxonCentral
from to_back.ecotaxa_cli_py.models.taxon_model import TaxonModel
from to_back.ecotaxa_cli_py.models.taxon_usage_model import TaxonUsageModel
from to_back.ecotaxa_cli_py.models.taxonomy_tree_status import TaxonomyTreeStatus
Expand Down
2 changes: 1 addition & 1 deletion to_back/ecotaxa_cli_py/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from to_back.ecotaxa_cli_py.api.acquisitions_api import AcquisitionsApi
from to_back.ecotaxa_cli_py.api.authentification_api import AuthentificationApi
from to_back.ecotaxa_cli_py.api.collections_api import CollectionsApi
from to_back.ecotaxa_cli_py.api.instrument_api import InstrumentApi
from to_back.ecotaxa_cli_py.api.instruments_api import InstrumentsApi
from to_back.ecotaxa_cli_py.api.jobs_api import JobsApi
from to_back.ecotaxa_cli_py.api.misc_api import MiscApi
from to_back.ecotaxa_cli_py.api.object_api import ObjectApi
Expand Down
28 changes: 14 additions & 14 deletions to_back/ecotaxa_cli_py/api/acquisitions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.17
The version of the OpenAPI document: 0.0.23
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -39,14 +39,14 @@ def __init__(self, api_client=None):
def acquisition_query_acquisition_acquisition_id_get(self, acquisition_id, **kwargs): # noqa: E501
"""Acquisition Query # noqa: E501
Read a single object. # noqa: E501
Returns **information about the acquisition** corresponding to the given id. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.acquisition_query_acquisition_acquisition_id_get(acquisition_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param int acquisition_id: (required)
:param int acquisition_id: Internal, the unique numeric id of this acquisition. (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
Expand All @@ -64,14 +64,14 @@ def acquisition_query_acquisition_acquisition_id_get(self, acquisition_id, **kwa
def acquisition_query_acquisition_acquisition_id_get_with_http_info(self, acquisition_id, **kwargs): # noqa: E501
"""Acquisition Query # noqa: E501
Read a single object. # noqa: E501
Returns **information about the acquisition** corresponding to the given id. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.acquisition_query_acquisition_acquisition_id_get_with_http_info(acquisition_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param int acquisition_id: (required)
:param int acquisition_id: Internal, the unique numeric id of this acquisition. (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down Expand Up @@ -153,14 +153,14 @@ def acquisition_query_acquisition_acquisition_id_get_with_http_info(self, acquis
def acquisitions_search_acquisitions_search_get(self, project_id, **kwargs): # noqa: E501
"""Acquisitions Search # noqa: E501
Read all acquisitions for a project. # noqa: E501
Returns the **list of all acquisitions for a given project**. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.acquisitions_search_acquisitions_search_get(project_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param int project_id: (required)
:param int project_id: The project id. (required)
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
data. Default is True.
Expand All @@ -178,14 +178,14 @@ def acquisitions_search_acquisitions_search_get(self, project_id, **kwargs): #
def acquisitions_search_acquisitions_search_get_with_http_info(self, project_id, **kwargs): # noqa: E501
"""Acquisitions Search # noqa: E501
Read all acquisitions for a project. # noqa: E501
Returns the **list of all acquisitions for a given project**. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.acquisitions_search_acquisitions_search_get_with_http_info(project_id, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
:param int project_id: (required)
:param int project_id: The project id. (required)
:param _return_http_data_only: response data without head status code
and headers
:param _preload_content: if False, the urllib3.HTTPResponse object will
Expand Down Expand Up @@ -267,7 +267,7 @@ def acquisitions_search_acquisitions_search_get_with_http_info(self, project_id,
def update_acquisitions_acquisition_set_update_post(self, bulk_update_req, **kwargs): # noqa: E501
"""Update Acquisitions # noqa: E501
Do the required update for each acquisition in the set. Return the number of updated entities. # noqa: E501
Do the required **update for each acquisition in the set**. **Return the number of updated entities.** # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_acquisitions_acquisition_set_update_post(bulk_update_req, async_req=True)
Expand All @@ -282,7 +282,7 @@ def update_acquisitions_acquisition_set_update_post(self, bulk_update_req, **kwa
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: object
:return: int
If the method is called asynchronously,
returns the request thread.
"""
Expand All @@ -292,7 +292,7 @@ def update_acquisitions_acquisition_set_update_post(self, bulk_update_req, **kwa
def update_acquisitions_acquisition_set_update_post_with_http_info(self, bulk_update_req, **kwargs): # noqa: E501
"""Update Acquisitions # noqa: E501
Do the required update for each acquisition in the set. Return the number of updated entities. # noqa: E501
Do the required **update for each acquisition in the set**. **Return the number of updated entities.** # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.update_acquisitions_acquisition_set_update_post_with_http_info(bulk_update_req, async_req=True)
Expand All @@ -309,7 +309,7 @@ def update_acquisitions_acquisition_set_update_post_with_http_info(self, bulk_up
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
:return: tuple(int, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
Expand Down Expand Up @@ -374,7 +374,7 @@ def update_acquisitions_acquisition_set_update_post_with_http_info(self, bulk_up
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='object', # noqa: E501
response_type='int', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
Expand Down
12 changes: 6 additions & 6 deletions to_back/ecotaxa_cli_py/api/authentification_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: 0.0.17
The version of the OpenAPI document: 0.0.23
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -39,7 +39,7 @@ def __init__(self, api_client=None):
def login_login_post(self, login_req, **kwargs): # noqa: E501
"""Login # noqa: E501
Login barrier. If successful, the login will return a JWT which will have to be used in Bearer authentication scheme for subsequent calls. -`username`: User *email* which was used during registration -`password`: User password # noqa: E501
**Login barrier,** If successful, the login will returns a **JWT** which will have to be used in bearer authentication scheme for subsequent calls. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.login_login_post(login_req, async_req=True)
Expand All @@ -54,7 +54,7 @@ def login_login_post(self, login_req, **kwargs): # noqa: E501
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: object
:return: str
If the method is called asynchronously,
returns the request thread.
"""
Expand All @@ -64,7 +64,7 @@ def login_login_post(self, login_req, **kwargs): # noqa: E501
def login_login_post_with_http_info(self, login_req, **kwargs): # noqa: E501
"""Login # noqa: E501
Login barrier. If successful, the login will return a JWT which will have to be used in Bearer authentication scheme for subsequent calls. -`username`: User *email* which was used during registration -`password`: User password # noqa: E501
**Login barrier,** If successful, the login will returns a **JWT** which will have to be used in bearer authentication scheme for subsequent calls. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.login_login_post_with_http_info(login_req, async_req=True)
Expand All @@ -81,7 +81,7 @@ def login_login_post_with_http_info(self, login_req, **kwargs): # noqa: E501
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
:return: tuple(object, status_code(int), headers(HTTPHeaderDict))
:return: tuple(str, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
Expand Down Expand Up @@ -146,7 +146,7 @@ def login_login_post_with_http_info(self, login_req, **kwargs): # noqa: E501
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='object', # noqa: E501
response_type='str', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
Expand Down
Loading

0 comments on commit 5df667b

Please sign in to comment.