From 6e1865138096c5a8fbf2a56811b371bc37c5a1ba Mon Sep 17 00:00:00 2001 From: Phrase Date: Mon, 6 Jan 2025 08:22:24 +0000 Subject: [PATCH] Deploying from phrase/openapi@7aa3b9b5 --- .openapi-generator/FILES | 36 +++++----- README.md | 14 ++-- ...jectsQualityPerformanceScore200Response.md | 12 ---- ...QualityPerformanceScore200ResponseAnyOf.md | 11 ---- docs/QualityPerformanceScoreApi.md | 16 ++--- .../QualityPerformanceScoreList200Response.md | 12 ++++ ...ityPerformanceScoreList200ResponseAnyOf.md | 11 ++++ ...rformanceScoreList200ResponseAnyOfData.md} | 4 +- ...t200ResponseAnyOfDataTranslationsInner.md} | 2 +- ...ceScoreList200ResponseAnyOfErrorsInner.md} | 2 +- ... => QualityPerformanceScoreListRequest.md} | 2 +- phrase_api/__init__.py | 12 ++-- .../api/quality_performance_score_api.py | 38 +++++------ phrase_api/models/__init__.py | 12 ++-- ...ity_performance_score_list200_response.py} | 44 ++++++------- ...formance_score_list200_response_any_of.py} | 36 +++++----- ...nce_score_list200_response_any_of_data.py} | 22 +++---- ...esponse_any_of_data_translations_inner.py} | 32 ++++----- ...e_list200_response_any_of_errors_inner.py} | 32 ++++----- ...quality_performance_score_list_request.py} | 16 ++--- ...ty_performance_score200_response_any_of.py | 66 ------------------- ...response_any_of_data_translations_inner.py | 56 ---------------- test/test_quality_performance_score_api.py | 4 +- ...ity_performance_score_list200_response.py} | 24 +++---- ...rformance_score_list200_response_any_of.py | 66 +++++++++++++++++++ ...nce_score_list200_response_any_of_data.py} | 20 +++--- ...response_any_of_data_translations_inner.py | 56 ++++++++++++++++ ...e_list200_response_any_of_errors_inner.py} | 18 ++--- ...quality_performance_score_list_request.py} | 18 ++--- 29 files changed, 347 insertions(+), 347 deletions(-) delete mode 100644 docs/ProjectsQualityPerformanceScore200Response.md delete mode 100644 docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md create mode 100644 docs/QualityPerformanceScoreList200Response.md create mode 100644 docs/QualityPerformanceScoreList200ResponseAnyOf.md rename docs/{ProjectsQualityPerformanceScore200ResponseAnyOfData.md => QualityPerformanceScoreList200ResponseAnyOfData.md} (52%) rename docs/{ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md => QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md} (87%) rename docs/{ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md => QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md} (87%) rename docs/{ProjectsQualityPerformanceScoreRequest.md => QualityPerformanceScoreListRequest.md} (90%) rename phrase_api/models/{projects_quality_performance_score200_response.py => quality_performance_score_list200_response.py} (65%) rename phrase_api/models/{projects_quality_performance_score200_response_any_of.py => quality_performance_score_list200_response_any_of.py} (66%) rename phrase_api/models/{projects_quality_performance_score200_response_any_of_data.py => quality_performance_score_list200_response_any_of_data.py} (72%) rename phrase_api/models/{projects_quality_performance_score200_response_any_of_data_translations_inner.py => quality_performance_score_list200_response_any_of_data_translations_inner.py} (70%) rename phrase_api/models/{projects_quality_performance_score200_response_any_of_errors_inner.py => quality_performance_score_list200_response_any_of_errors_inner.py} (70%) rename phrase_api/models/{projects_quality_performance_score_request.py => quality_performance_score_list_request.py} (81%) delete mode 100644 test/test_projects_quality_performance_score200_response_any_of.py delete mode 100644 test/test_projects_quality_performance_score200_response_any_of_data_translations_inner.py rename test/{test_projects_quality_performance_score200_response.py => test_quality_performance_score_list200_response.py} (52%) create mode 100644 test/test_quality_performance_score_list200_response_any_of.py rename test/{test_projects_quality_performance_score200_response_any_of_data.py => test_quality_performance_score_list200_response_any_of_data.py} (50%) create mode 100644 test/test_quality_performance_score_list200_response_any_of_data_translations_inner.py rename test/{test_projects_quality_performance_score200_response_any_of_errors_inner.py => test_quality_performance_score_list200_response_any_of_errors_inner.py} (51%) rename test/{test_projects_quality_performance_score_request.py => test_quality_performance_score_list_request.py} (59%) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index bdf22f5..3d17343 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -171,13 +171,13 @@ docs/ProjectReport.md docs/ProjectShort.md docs/ProjectUpdateParameters.md docs/ProjectsApi.md -docs/ProjectsQualityPerformanceScore200Response.md -docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md -docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md -docs/ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md -docs/ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md -docs/ProjectsQualityPerformanceScoreRequest.md docs/QualityPerformanceScoreApi.md +docs/QualityPerformanceScoreList200Response.md +docs/QualityPerformanceScoreList200ResponseAnyOf.md +docs/QualityPerformanceScoreList200ResponseAnyOfData.md +docs/QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md +docs/QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md +docs/QualityPerformanceScoreListRequest.md docs/Release.md docs/ReleaseCreateParameters.md docs/ReleaseCreateParameters1.md @@ -464,12 +464,12 @@ phrase_api/models/project_locales.py phrase_api/models/project_report.py phrase_api/models/project_short.py phrase_api/models/project_update_parameters.py -phrase_api/models/projects_quality_performance_score200_response.py -phrase_api/models/projects_quality_performance_score200_response_any_of.py -phrase_api/models/projects_quality_performance_score200_response_any_of_data.py -phrase_api/models/projects_quality_performance_score200_response_any_of_data_translations_inner.py -phrase_api/models/projects_quality_performance_score200_response_any_of_errors_inner.py -phrase_api/models/projects_quality_performance_score_request.py +phrase_api/models/quality_performance_score_list200_response.py +phrase_api/models/quality_performance_score_list200_response_any_of.py +phrase_api/models/quality_performance_score_list200_response_any_of_data.py +phrase_api/models/quality_performance_score_list200_response_any_of_data_translations_inner.py +phrase_api/models/quality_performance_score_list200_response_any_of_errors_inner.py +phrase_api/models/quality_performance_score_list_request.py phrase_api/models/release.py phrase_api/models/release_create_parameters.py phrase_api/models/release_create_parameters1.py @@ -716,13 +716,13 @@ test/test_project_report.py test/test_project_short.py test/test_project_update_parameters.py test/test_projects_api.py -test/test_projects_quality_performance_score200_response.py -test/test_projects_quality_performance_score200_response_any_of.py -test/test_projects_quality_performance_score200_response_any_of_data.py -test/test_projects_quality_performance_score200_response_any_of_data_translations_inner.py -test/test_projects_quality_performance_score200_response_any_of_errors_inner.py -test/test_projects_quality_performance_score_request.py test/test_quality_performance_score_api.py +test/test_quality_performance_score_list200_response.py +test/test_quality_performance_score_list200_response_any_of.py +test/test_quality_performance_score_list200_response_any_of_data.py +test/test_quality_performance_score_list200_response_any_of_data_translations_inner.py +test/test_quality_performance_score_list200_response_any_of_errors_inner.py +test/test_quality_performance_score_list_request.py test/test_release.py test/test_release_create_parameters.py test/test_release_create_parameters1.py diff --git a/README.md b/README.md index 3ea603b..e0c93ad 100644 --- a/README.md +++ b/README.md @@ -314,7 +314,7 @@ Class | Method | HTTP request | Description *ProjectsApi* | [**project_show**](docs/ProjectsApi.md#project_show) | **GET** /projects/{id} | Get a single project *ProjectsApi* | [**project_update**](docs/ProjectsApi.md#project_update) | **PATCH** /projects/{id} | Update a project *ProjectsApi* | [**projects_list**](docs/ProjectsApi.md#projects_list) | **GET** /projects | List projects -*QualityPerformanceScoreApi* | [**projects_quality_performance_score**](docs/QualityPerformanceScoreApi.md#projects_quality_performance_score) | **POST** /projects/{project_id}/quality_performance_score | Get Translation Quality +*QualityPerformanceScoreApi* | [**quality_performance_score_list**](docs/QualityPerformanceScoreApi.md#quality_performance_score_list) | **POST** /projects/{project_id}/quality_performance_score | Get Translation Quality *ReleaseTriggersApi* | [**release_triggers_create**](docs/ReleaseTriggersApi.md#release_triggers_create) | **POST** /accounts/{account_id}/distributions/{distribution_id}/release_triggers | Create a release trigger *ReleaseTriggersApi* | [**release_triggers_destroy**](docs/ReleaseTriggersApi.md#release_triggers_destroy) | **DELETE** /accounts/{account_id}/distributions/{distribution_id}/release_triggers/{id} | Delete a single release trigger *ReleaseTriggersApi* | [**release_triggers_list**](docs/ReleaseTriggersApi.md#release_triggers_list) | **GET** /accounts/{account_id}/distributions/{distribution_id}/release_triggers | List release triggers @@ -549,12 +549,12 @@ Class | Method | HTTP request | Description - [ProjectReport](docs/ProjectReport.md) - [ProjectShort](docs/ProjectShort.md) - [ProjectUpdateParameters](docs/ProjectUpdateParameters.md) - - [ProjectsQualityPerformanceScore200Response](docs/ProjectsQualityPerformanceScore200Response.md) - - [ProjectsQualityPerformanceScore200ResponseAnyOf](docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md) - - [ProjectsQualityPerformanceScore200ResponseAnyOfData](docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md) - - [ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner](docs/ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md) - - [ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner](docs/ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md) - - [ProjectsQualityPerformanceScoreRequest](docs/ProjectsQualityPerformanceScoreRequest.md) + - [QualityPerformanceScoreList200Response](docs/QualityPerformanceScoreList200Response.md) + - [QualityPerformanceScoreList200ResponseAnyOf](docs/QualityPerformanceScoreList200ResponseAnyOf.md) + - [QualityPerformanceScoreList200ResponseAnyOfData](docs/QualityPerformanceScoreList200ResponseAnyOfData.md) + - [QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner](docs/QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md) + - [QualityPerformanceScoreList200ResponseAnyOfErrorsInner](docs/QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md) + - [QualityPerformanceScoreListRequest](docs/QualityPerformanceScoreListRequest.md) - [Release](docs/Release.md) - [ReleaseCreateParameters](docs/ReleaseCreateParameters.md) - [ReleaseCreateParameters1](docs/ReleaseCreateParameters1.md) diff --git a/docs/ProjectsQualityPerformanceScore200Response.md b/docs/ProjectsQualityPerformanceScore200Response.md deleted file mode 100644 index aaa63ba..0000000 --- a/docs/ProjectsQualityPerformanceScore200Response.md +++ /dev/null @@ -1,12 +0,0 @@ -# ProjectsQualityPerformanceScore200Response - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**error** | [**ErrorError**](ErrorError.md) | | [optional] -**data** | [**ProjectsQualityPerformanceScore200ResponseAnyOfData**](ProjectsQualityPerformanceScore200ResponseAnyOfData.md) | | [optional] -**errors** | [**List[ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner]**](ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md) | Array of errors for any failing translation IDs | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md b/docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md deleted file mode 100644 index cee0f4a..0000000 --- a/docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# ProjectsQualityPerformanceScore200ResponseAnyOf - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ProjectsQualityPerformanceScore200ResponseAnyOfData**](ProjectsQualityPerformanceScore200ResponseAnyOfData.md) | | [optional] -**errors** | [**List[ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner]**](ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md) | Array of errors for any failing translation IDs | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/QualityPerformanceScoreApi.md b/docs/QualityPerformanceScoreApi.md index 6dc5df4..16fa20e 100644 --- a/docs/QualityPerformanceScoreApi.md +++ b/docs/QualityPerformanceScoreApi.md @@ -4,11 +4,11 @@ All URIs are relative to *https://api.phrase.com/v2* Method | HTTP request | Description ------------- | ------------- | ------------- -[**projects_quality_performance_score**](QualityPerformanceScoreApi.md#projects_quality_performance_score) | **POST** /projects/{project_id}/quality_performance_score | Get Translation Quality +[**quality_performance_score_list**](QualityPerformanceScoreApi.md#quality_performance_score_list) | **POST** /projects/{project_id}/quality_performance_score | Get Translation Quality -# **projects_quality_performance_score** -> ProjectsQualityPerformanceScore200Response projects_quality_performance_score(project_id, projects_quality_performance_score_request, x_phrase_app_otp=x_phrase_app_otp) +# **quality_performance_score_list** +> QualityPerformanceScoreList200Response quality_performance_score_list(project_id, quality_performance_score_list_request, x_phrase_app_otp=x_phrase_app_otp) Get Translation Quality @@ -32,15 +32,15 @@ with phrase_api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = phrase_api.QualityPerformanceScoreApi(api_client) project_id = 'project_id_example' # str | Project ID (required) - projects_quality_performance_score_request = phrase_api.ProjectsQualityPerformanceScoreRequest() # ProjectsQualityPerformanceScoreRequest | (required) + quality_performance_score_list_request = phrase_api.QualityPerformanceScoreListRequest() # QualityPerformanceScoreListRequest | (required) x_phrase_app_otp = 'x_phrase_app_otp_example' # str | Two-Factor-Authentication token (optional) try: # Get Translation Quality - api_response = api_instance.projects_quality_performance_score(project_id, projects_quality_performance_score_request, x_phrase_app_otp=x_phrase_app_otp) + api_response = api_instance.quality_performance_score_list(project_id, quality_performance_score_list_request, x_phrase_app_otp=x_phrase_app_otp) pprint(api_response) except ApiException as e: - print("Exception when calling QualityPerformanceScoreApi->projects_quality_performance_score: %s\n" % e) + print("Exception when calling QualityPerformanceScoreApi->quality_performance_score_list: %s\n" % e) ``` @@ -49,12 +49,12 @@ with phrase_api.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **project_id** | **str**| Project ID | - **projects_quality_performance_score_request** | [**ProjectsQualityPerformanceScoreRequest**](ProjectsQualityPerformanceScoreRequest.md)| | + **quality_performance_score_list_request** | [**QualityPerformanceScoreListRequest**](QualityPerformanceScoreListRequest.md)| | **x_phrase_app_otp** | **str**| Two-Factor-Authentication token (optional) | [optional] ### Return type -[**ProjectsQualityPerformanceScore200Response**](ProjectsQualityPerformanceScore200Response.md) +[**QualityPerformanceScoreList200Response**](QualityPerformanceScoreList200Response.md) ### Authorization diff --git a/docs/QualityPerformanceScoreList200Response.md b/docs/QualityPerformanceScoreList200Response.md new file mode 100644 index 0000000..a541964 --- /dev/null +++ b/docs/QualityPerformanceScoreList200Response.md @@ -0,0 +1,12 @@ +# QualityPerformanceScoreList200Response + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**error** | [**ErrorError**](ErrorError.md) | | [optional] +**data** | [**QualityPerformanceScoreList200ResponseAnyOfData**](QualityPerformanceScoreList200ResponseAnyOfData.md) | | [optional] +**errors** | [**List[QualityPerformanceScoreList200ResponseAnyOfErrorsInner]**](QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md) | Array of errors for any failing translation IDs | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/QualityPerformanceScoreList200ResponseAnyOf.md b/docs/QualityPerformanceScoreList200ResponseAnyOf.md new file mode 100644 index 0000000..0465de5 --- /dev/null +++ b/docs/QualityPerformanceScoreList200ResponseAnyOf.md @@ -0,0 +1,11 @@ +# QualityPerformanceScoreList200ResponseAnyOf + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**QualityPerformanceScoreList200ResponseAnyOfData**](QualityPerformanceScoreList200ResponseAnyOfData.md) | | [optional] +**errors** | [**List[QualityPerformanceScoreList200ResponseAnyOfErrorsInner]**](QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md) | Array of errors for any failing translation IDs | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md b/docs/QualityPerformanceScoreList200ResponseAnyOfData.md similarity index 52% rename from docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md rename to docs/QualityPerformanceScoreList200ResponseAnyOfData.md index b798dd1..8c46148 100644 --- a/docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md +++ b/docs/QualityPerformanceScoreList200ResponseAnyOfData.md @@ -1,9 +1,9 @@ -# ProjectsQualityPerformanceScore200ResponseAnyOfData +# QualityPerformanceScoreList200ResponseAnyOfData ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**translations** | [**List[ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner]**](ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md) | | [optional] +**translations** | [**List[QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner]**](QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md b/docs/QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md similarity index 87% rename from docs/ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md rename to docs/QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md index afb7552..01dde09 100644 --- a/docs/ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md +++ b/docs/QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md @@ -1,4 +1,4 @@ -# ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner +# QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner ## Properties Name | Type | Description | Notes diff --git a/docs/ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md b/docs/QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md similarity index 87% rename from docs/ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md rename to docs/QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md index 260e461..1184fde 100644 --- a/docs/ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md +++ b/docs/QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md @@ -1,4 +1,4 @@ -# ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner +# QualityPerformanceScoreList200ResponseAnyOfErrorsInner ## Properties Name | Type | Description | Notes diff --git a/docs/ProjectsQualityPerformanceScoreRequest.md b/docs/QualityPerformanceScoreListRequest.md similarity index 90% rename from docs/ProjectsQualityPerformanceScoreRequest.md rename to docs/QualityPerformanceScoreListRequest.md index 6918f0a..dbdcd63 100644 --- a/docs/ProjectsQualityPerformanceScoreRequest.md +++ b/docs/QualityPerformanceScoreListRequest.md @@ -1,4 +1,4 @@ -# ProjectsQualityPerformanceScoreRequest +# QualityPerformanceScoreListRequest ## Properties Name | Type | Description | Notes diff --git a/phrase_api/__init__.py b/phrase_api/__init__.py index 23c45a1..85d93be 100644 --- a/phrase_api/__init__.py +++ b/phrase_api/__init__.py @@ -213,12 +213,12 @@ from phrase_api.models.project_report import ProjectReport from phrase_api.models.project_short import ProjectShort from phrase_api.models.project_update_parameters import ProjectUpdateParameters -from phrase_api.models.projects_quality_performance_score200_response import ProjectsQualityPerformanceScore200Response -from phrase_api.models.projects_quality_performance_score200_response_any_of import ProjectsQualityPerformanceScore200ResponseAnyOf -from phrase_api.models.projects_quality_performance_score200_response_any_of_data import ProjectsQualityPerformanceScore200ResponseAnyOfData -from phrase_api.models.projects_quality_performance_score200_response_any_of_data_translations_inner import ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner -from phrase_api.models.projects_quality_performance_score200_response_any_of_errors_inner import ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner -from phrase_api.models.projects_quality_performance_score_request import ProjectsQualityPerformanceScoreRequest +from phrase_api.models.quality_performance_score_list200_response import QualityPerformanceScoreList200Response +from phrase_api.models.quality_performance_score_list200_response_any_of import QualityPerformanceScoreList200ResponseAnyOf +from phrase_api.models.quality_performance_score_list200_response_any_of_data import QualityPerformanceScoreList200ResponseAnyOfData +from phrase_api.models.quality_performance_score_list200_response_any_of_data_translations_inner import QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner +from phrase_api.models.quality_performance_score_list200_response_any_of_errors_inner import QualityPerformanceScoreList200ResponseAnyOfErrorsInner +from phrase_api.models.quality_performance_score_list_request import QualityPerformanceScoreListRequest from phrase_api.models.release import Release from phrase_api.models.release_create_parameters import ReleaseCreateParameters from phrase_api.models.release_create_parameters1 import ReleaseCreateParameters1 diff --git a/phrase_api/api/quality_performance_score_api.py b/phrase_api/api/quality_performance_score_api.py index 252a2f0..adad764 100644 --- a/phrase_api/api/quality_performance_score_api.py +++ b/phrase_api/api/quality_performance_score_api.py @@ -35,18 +35,18 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def projects_quality_performance_score(self, project_id, projects_quality_performance_score_request, **kwargs): # noqa: E501 + def quality_performance_score_list(self, project_id, quality_performance_score_list_request, **kwargs): # noqa: E501 """Get Translation Quality # noqa: E501 Retrieves the quality scores for your Strings translations. Returns a score, measured by Phrase QPS # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.projects_quality_performance_score(project_id, projects_quality_performance_score_request, async_req=True) + >>> thread = api.quality_performance_score_list(project_id, quality_performance_score_list_request, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str project_id: Project ID (required) - :param ProjectsQualityPerformanceScoreRequest projects_quality_performance_score_request: (required) + :param QualityPerformanceScoreListRequest quality_performance_score_list_request: (required) :param str x_phrase_app_otp: Two-Factor-Authentication token (optional) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response @@ -55,25 +55,25 @@ def projects_quality_performance_score(self, project_id, projects_quality_perfor number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: ProjectsQualityPerformanceScore200Response + :return: QualityPerformanceScoreList200Response If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True - return self.projects_quality_performance_score_with_http_info(project_id, projects_quality_performance_score_request, **kwargs) # noqa: E501 + return self.quality_performance_score_list_with_http_info(project_id, quality_performance_score_list_request, **kwargs) # noqa: E501 - def projects_quality_performance_score_with_http_info(self, project_id, projects_quality_performance_score_request, **kwargs): # noqa: E501 + def quality_performance_score_list_with_http_info(self, project_id, quality_performance_score_list_request, **kwargs): # noqa: E501 """Get Translation Quality # noqa: E501 Retrieves the quality scores for your Strings translations. Returns a score, measured by Phrase QPS # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True - >>> thread = api.projects_quality_performance_score_with_http_info(project_id, projects_quality_performance_score_request, async_req=True) + >>> thread = api.quality_performance_score_list_with_http_info(project_id, quality_performance_score_list_request, async_req=True) >>> result = thread.get() :param async_req bool: execute request asynchronously :param str project_id: Project ID (required) - :param ProjectsQualityPerformanceScoreRequest projects_quality_performance_score_request: (required) + :param QualityPerformanceScoreListRequest quality_performance_score_list_request: (required) :param str x_phrase_app_otp: Two-Factor-Authentication token (optional) :param _return_http_data_only: response data without head status code and headers @@ -84,7 +84,7 @@ def projects_quality_performance_score_with_http_info(self, project_id, projects number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. - :return: tuple(ProjectsQualityPerformanceScore200Response, status_code(int), headers(HTTPHeaderDict)) + :return: tuple(QualityPerformanceScoreList200Response, status_code(int), headers(HTTPHeaderDict)) If the method is called asynchronously, returns the request thread. """ @@ -93,7 +93,7 @@ def projects_quality_performance_score_with_http_info(self, project_id, projects all_params = [ 'project_id', - 'projects_quality_performance_score_request', + 'quality_performance_score_list_request', 'x_phrase_app_otp' ] all_params.extend( @@ -109,18 +109,18 @@ def projects_quality_performance_score_with_http_info(self, project_id, projects if key not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" - " to method projects_quality_performance_score" % key + " to method quality_performance_score_list" % key ) local_var_params[key] = val del local_var_params['kwargs'] # verify the required parameter 'project_id' is set if self.api_client.client_side_validation and ('project_id' not in local_var_params or # noqa: E501 local_var_params['project_id'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `project_id` when calling `projects_quality_performance_score`") # noqa: E501 - # verify the required parameter 'projects_quality_performance_score_request' is set - if self.api_client.client_side_validation and ('projects_quality_performance_score_request' not in local_var_params or # noqa: E501 - local_var_params['projects_quality_performance_score_request'] is None): # noqa: E501 - raise ApiValueError("Missing the required parameter `projects_quality_performance_score_request` when calling `projects_quality_performance_score`") # noqa: E501 + raise ApiValueError("Missing the required parameter `project_id` when calling `quality_performance_score_list`") # noqa: E501 + # verify the required parameter 'quality_performance_score_list_request' is set + if self.api_client.client_side_validation and ('quality_performance_score_list_request' not in local_var_params or # noqa: E501 + local_var_params['quality_performance_score_list_request'] is None): # noqa: E501 + raise ApiValueError("Missing the required parameter `quality_performance_score_list_request` when calling `quality_performance_score_list`") # noqa: E501 collection_formats = {} @@ -138,8 +138,8 @@ def projects_quality_performance_score_with_http_info(self, project_id, projects local_var_files = {} body_params = None - if 'projects_quality_performance_score_request' in local_var_params: - body_params = local_var_params['projects_quality_performance_score_request'] + if 'quality_performance_score_list_request' in local_var_params: + body_params = local_var_params['quality_performance_score_list_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -159,7 +159,7 @@ def projects_quality_performance_score_with_http_info(self, project_id, projects body=body_params, post_params=form_params, files=local_var_files, - response_type='ProjectsQualityPerformanceScore200Response', # noqa: E501 + response_type='QualityPerformanceScoreList200Response', # 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 diff --git a/phrase_api/models/__init__.py b/phrase_api/models/__init__.py index a7b95b7..40d59c9 100644 --- a/phrase_api/models/__init__.py +++ b/phrase_api/models/__init__.py @@ -146,12 +146,12 @@ from phrase_api.models.project_report import ProjectReport from phrase_api.models.project_short import ProjectShort from phrase_api.models.project_update_parameters import ProjectUpdateParameters -from phrase_api.models.projects_quality_performance_score200_response import ProjectsQualityPerformanceScore200Response -from phrase_api.models.projects_quality_performance_score200_response_any_of import ProjectsQualityPerformanceScore200ResponseAnyOf -from phrase_api.models.projects_quality_performance_score200_response_any_of_data import ProjectsQualityPerformanceScore200ResponseAnyOfData -from phrase_api.models.projects_quality_performance_score200_response_any_of_data_translations_inner import ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner -from phrase_api.models.projects_quality_performance_score200_response_any_of_errors_inner import ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner -from phrase_api.models.projects_quality_performance_score_request import ProjectsQualityPerformanceScoreRequest +from phrase_api.models.quality_performance_score_list200_response import QualityPerformanceScoreList200Response +from phrase_api.models.quality_performance_score_list200_response_any_of import QualityPerformanceScoreList200ResponseAnyOf +from phrase_api.models.quality_performance_score_list200_response_any_of_data import QualityPerformanceScoreList200ResponseAnyOfData +from phrase_api.models.quality_performance_score_list200_response_any_of_data_translations_inner import QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner +from phrase_api.models.quality_performance_score_list200_response_any_of_errors_inner import QualityPerformanceScoreList200ResponseAnyOfErrorsInner +from phrase_api.models.quality_performance_score_list_request import QualityPerformanceScoreListRequest from phrase_api.models.release import Release from phrase_api.models.release_create_parameters import ReleaseCreateParameters from phrase_api.models.release_create_parameters1 import ReleaseCreateParameters1 diff --git a/phrase_api/models/projects_quality_performance_score200_response.py b/phrase_api/models/quality_performance_score_list200_response.py similarity index 65% rename from phrase_api/models/projects_quality_performance_score200_response.py rename to phrase_api/models/quality_performance_score_list200_response.py index e334acc..a11293a 100644 --- a/phrase_api/models/projects_quality_performance_score200_response.py +++ b/phrase_api/models/quality_performance_score_list200_response.py @@ -17,7 +17,7 @@ from phrase_api.configuration import Configuration -class ProjectsQualityPerformanceScore200Response(object): +class QualityPerformanceScoreList200Response(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -33,8 +33,8 @@ class ProjectsQualityPerformanceScore200Response(object): """ openapi_types = { 'error': 'ErrorError', - 'data': 'ProjectsQualityPerformanceScore200ResponseAnyOfData', - 'errors': 'List[ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner]' + 'data': 'QualityPerformanceScoreList200ResponseAnyOfData', + 'errors': 'List[QualityPerformanceScoreList200ResponseAnyOfErrorsInner]' } attribute_map = { @@ -44,7 +44,7 @@ class ProjectsQualityPerformanceScore200Response(object): } def __init__(self, error=None, data=None, errors=None, local_vars_configuration=None): # noqa: E501 - """ProjectsQualityPerformanceScore200Response - a model defined in OpenAPI""" # noqa: E501 + """QualityPerformanceScoreList200Response - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -63,20 +63,20 @@ def __init__(self, error=None, data=None, errors=None, local_vars_configuration= @property def error(self): - """Gets the error of this ProjectsQualityPerformanceScore200Response. # noqa: E501 + """Gets the error of this QualityPerformanceScoreList200Response. # noqa: E501 - :return: The error of this ProjectsQualityPerformanceScore200Response. # noqa: E501 + :return: The error of this QualityPerformanceScoreList200Response. # noqa: E501 :rtype: ErrorError """ return self._error @error.setter def error(self, error): - """Sets the error of this ProjectsQualityPerformanceScore200Response. + """Sets the error of this QualityPerformanceScoreList200Response. - :param error: The error of this ProjectsQualityPerformanceScore200Response. # noqa: E501 + :param error: The error of this QualityPerformanceScoreList200Response. # noqa: E501 :type: ErrorError """ @@ -84,44 +84,44 @@ def error(self, error): @property def data(self): - """Gets the data of this ProjectsQualityPerformanceScore200Response. # noqa: E501 + """Gets the data of this QualityPerformanceScoreList200Response. # noqa: E501 - :return: The data of this ProjectsQualityPerformanceScore200Response. # noqa: E501 - :rtype: ProjectsQualityPerformanceScore200ResponseAnyOfData + :return: The data of this QualityPerformanceScoreList200Response. # noqa: E501 + :rtype: QualityPerformanceScoreList200ResponseAnyOfData """ return self._data @data.setter def data(self, data): - """Sets the data of this ProjectsQualityPerformanceScore200Response. + """Sets the data of this QualityPerformanceScoreList200Response. - :param data: The data of this ProjectsQualityPerformanceScore200Response. # noqa: E501 - :type: ProjectsQualityPerformanceScore200ResponseAnyOfData + :param data: The data of this QualityPerformanceScoreList200Response. # noqa: E501 + :type: QualityPerformanceScoreList200ResponseAnyOfData """ self._data = data @property def errors(self): - """Gets the errors of this ProjectsQualityPerformanceScore200Response. # noqa: E501 + """Gets the errors of this QualityPerformanceScoreList200Response. # noqa: E501 Array of errors for any failing translation IDs # noqa: E501 - :return: The errors of this ProjectsQualityPerformanceScore200Response. # noqa: E501 - :rtype: List[ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner] + :return: The errors of this QualityPerformanceScoreList200Response. # noqa: E501 + :rtype: List[QualityPerformanceScoreList200ResponseAnyOfErrorsInner] """ return self._errors @errors.setter def errors(self, errors): - """Sets the errors of this ProjectsQualityPerformanceScore200Response. + """Sets the errors of this QualityPerformanceScoreList200Response. Array of errors for any failing translation IDs # noqa: E501 - :param errors: The errors of this ProjectsQualityPerformanceScore200Response. # noqa: E501 - :type: List[ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner] + :param errors: The errors of this QualityPerformanceScoreList200Response. # noqa: E501 + :type: List[QualityPerformanceScoreList200ResponseAnyOfErrorsInner] """ self._errors = errors @@ -160,14 +160,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ProjectsQualityPerformanceScore200Response): + if not isinstance(other, QualityPerformanceScoreList200Response): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, ProjectsQualityPerformanceScore200Response): + if not isinstance(other, QualityPerformanceScoreList200Response): return True return self.to_dict() != other.to_dict() diff --git a/phrase_api/models/projects_quality_performance_score200_response_any_of.py b/phrase_api/models/quality_performance_score_list200_response_any_of.py similarity index 66% rename from phrase_api/models/projects_quality_performance_score200_response_any_of.py rename to phrase_api/models/quality_performance_score_list200_response_any_of.py index 1826959..8688e7a 100644 --- a/phrase_api/models/projects_quality_performance_score200_response_any_of.py +++ b/phrase_api/models/quality_performance_score_list200_response_any_of.py @@ -17,7 +17,7 @@ from phrase_api.configuration import Configuration -class ProjectsQualityPerformanceScore200ResponseAnyOf(object): +class QualityPerformanceScoreList200ResponseAnyOf(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,8 +32,8 @@ class ProjectsQualityPerformanceScore200ResponseAnyOf(object): and the value is json key in definition. """ openapi_types = { - 'data': 'ProjectsQualityPerformanceScore200ResponseAnyOfData', - 'errors': 'List[ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner]' + 'data': 'QualityPerformanceScoreList200ResponseAnyOfData', + 'errors': 'List[QualityPerformanceScoreList200ResponseAnyOfErrorsInner]' } attribute_map = { @@ -42,7 +42,7 @@ class ProjectsQualityPerformanceScore200ResponseAnyOf(object): } def __init__(self, data=None, errors=None, local_vars_configuration=None): # noqa: E501 - """ProjectsQualityPerformanceScore200ResponseAnyOf - a model defined in OpenAPI""" # noqa: E501 + """QualityPerformanceScoreList200ResponseAnyOf - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -58,44 +58,44 @@ def __init__(self, data=None, errors=None, local_vars_configuration=None): # no @property def data(self): - """Gets the data of this ProjectsQualityPerformanceScore200ResponseAnyOf. # noqa: E501 + """Gets the data of this QualityPerformanceScoreList200ResponseAnyOf. # noqa: E501 - :return: The data of this ProjectsQualityPerformanceScore200ResponseAnyOf. # noqa: E501 - :rtype: ProjectsQualityPerformanceScore200ResponseAnyOfData + :return: The data of this QualityPerformanceScoreList200ResponseAnyOf. # noqa: E501 + :rtype: QualityPerformanceScoreList200ResponseAnyOfData """ return self._data @data.setter def data(self, data): - """Sets the data of this ProjectsQualityPerformanceScore200ResponseAnyOf. + """Sets the data of this QualityPerformanceScoreList200ResponseAnyOf. - :param data: The data of this ProjectsQualityPerformanceScore200ResponseAnyOf. # noqa: E501 - :type: ProjectsQualityPerformanceScore200ResponseAnyOfData + :param data: The data of this QualityPerformanceScoreList200ResponseAnyOf. # noqa: E501 + :type: QualityPerformanceScoreList200ResponseAnyOfData """ self._data = data @property def errors(self): - """Gets the errors of this ProjectsQualityPerformanceScore200ResponseAnyOf. # noqa: E501 + """Gets the errors of this QualityPerformanceScoreList200ResponseAnyOf. # noqa: E501 Array of errors for any failing translation IDs # noqa: E501 - :return: The errors of this ProjectsQualityPerformanceScore200ResponseAnyOf. # noqa: E501 - :rtype: List[ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner] + :return: The errors of this QualityPerformanceScoreList200ResponseAnyOf. # noqa: E501 + :rtype: List[QualityPerformanceScoreList200ResponseAnyOfErrorsInner] """ return self._errors @errors.setter def errors(self, errors): - """Sets the errors of this ProjectsQualityPerformanceScore200ResponseAnyOf. + """Sets the errors of this QualityPerformanceScoreList200ResponseAnyOf. Array of errors for any failing translation IDs # noqa: E501 - :param errors: The errors of this ProjectsQualityPerformanceScore200ResponseAnyOf. # noqa: E501 - :type: List[ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner] + :param errors: The errors of this QualityPerformanceScoreList200ResponseAnyOf. # noqa: E501 + :type: List[QualityPerformanceScoreList200ResponseAnyOfErrorsInner] """ self._errors = errors @@ -134,14 +134,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ProjectsQualityPerformanceScore200ResponseAnyOf): + if not isinstance(other, QualityPerformanceScoreList200ResponseAnyOf): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, ProjectsQualityPerformanceScore200ResponseAnyOf): + if not isinstance(other, QualityPerformanceScoreList200ResponseAnyOf): return True return self.to_dict() != other.to_dict() diff --git a/phrase_api/models/projects_quality_performance_score200_response_any_of_data.py b/phrase_api/models/quality_performance_score_list200_response_any_of_data.py similarity index 72% rename from phrase_api/models/projects_quality_performance_score200_response_any_of_data.py rename to phrase_api/models/quality_performance_score_list200_response_any_of_data.py index 33c4967..093abea 100644 --- a/phrase_api/models/projects_quality_performance_score200_response_any_of_data.py +++ b/phrase_api/models/quality_performance_score_list200_response_any_of_data.py @@ -17,7 +17,7 @@ from phrase_api.configuration import Configuration -class ProjectsQualityPerformanceScore200ResponseAnyOfData(object): +class QualityPerformanceScoreList200ResponseAnyOfData(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -32,7 +32,7 @@ class ProjectsQualityPerformanceScore200ResponseAnyOfData(object): and the value is json key in definition. """ openapi_types = { - 'translations': 'List[ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner]' + 'translations': 'List[QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner]' } attribute_map = { @@ -40,7 +40,7 @@ class ProjectsQualityPerformanceScore200ResponseAnyOfData(object): } def __init__(self, translations=None, local_vars_configuration=None): # noqa: E501 - """ProjectsQualityPerformanceScore200ResponseAnyOfData - a model defined in OpenAPI""" # noqa: E501 + """QualityPerformanceScoreList200ResponseAnyOfData - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -53,21 +53,21 @@ def __init__(self, translations=None, local_vars_configuration=None): # noqa: E @property def translations(self): - """Gets the translations of this ProjectsQualityPerformanceScore200ResponseAnyOfData. # noqa: E501 + """Gets the translations of this QualityPerformanceScoreList200ResponseAnyOfData. # noqa: E501 - :return: The translations of this ProjectsQualityPerformanceScore200ResponseAnyOfData. # noqa: E501 - :rtype: List[ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner] + :return: The translations of this QualityPerformanceScoreList200ResponseAnyOfData. # noqa: E501 + :rtype: List[QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner] """ return self._translations @translations.setter def translations(self, translations): - """Sets the translations of this ProjectsQualityPerformanceScore200ResponseAnyOfData. + """Sets the translations of this QualityPerformanceScoreList200ResponseAnyOfData. - :param translations: The translations of this ProjectsQualityPerformanceScore200ResponseAnyOfData. # noqa: E501 - :type: List[ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner] + :param translations: The translations of this QualityPerformanceScoreList200ResponseAnyOfData. # noqa: E501 + :type: List[QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner] """ self._translations = translations @@ -106,14 +106,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ProjectsQualityPerformanceScore200ResponseAnyOfData): + if not isinstance(other, QualityPerformanceScoreList200ResponseAnyOfData): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, ProjectsQualityPerformanceScore200ResponseAnyOfData): + if not isinstance(other, QualityPerformanceScoreList200ResponseAnyOfData): return True return self.to_dict() != other.to_dict() diff --git a/phrase_api/models/projects_quality_performance_score200_response_any_of_data_translations_inner.py b/phrase_api/models/quality_performance_score_list200_response_any_of_data_translations_inner.py similarity index 70% rename from phrase_api/models/projects_quality_performance_score200_response_any_of_data_translations_inner.py rename to phrase_api/models/quality_performance_score_list200_response_any_of_data_translations_inner.py index efbc8d4..65f0220 100644 --- a/phrase_api/models/projects_quality_performance_score200_response_any_of_data_translations_inner.py +++ b/phrase_api/models/quality_performance_score_list200_response_any_of_data_translations_inner.py @@ -17,7 +17,7 @@ from phrase_api.configuration import Configuration -class ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner(object): +class QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -44,7 +44,7 @@ class ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner(objec } def __init__(self, engine=None, score=None, id=None, local_vars_configuration=None): # noqa: E501 - """ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner - a model defined in OpenAPI""" # noqa: E501 + """QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -63,22 +63,22 @@ def __init__(self, engine=None, score=None, id=None, local_vars_configuration=No @property def engine(self): - """Gets the engine of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. # noqa: E501 + """Gets the engine of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. # noqa: E501 Engine used for the translation scoring # noqa: E501 - :return: The engine of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. # noqa: E501 + :return: The engine of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. # noqa: E501 :rtype: str """ return self._engine @engine.setter def engine(self, engine): - """Sets the engine of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. + """Sets the engine of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. Engine used for the translation scoring # noqa: E501 - :param engine: The engine of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. # noqa: E501 + :param engine: The engine of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. # noqa: E501 :type: str """ @@ -86,22 +86,22 @@ def engine(self, engine): @property def score(self): - """Gets the score of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. # noqa: E501 + """Gets the score of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. # noqa: E501 Quality score for the translation # noqa: E501 - :return: The score of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. # noqa: E501 + :return: The score of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. # noqa: E501 :rtype: float """ return self._score @score.setter def score(self, score): - """Sets the score of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. + """Sets the score of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. Quality score for the translation # noqa: E501 - :param score: The score of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. # noqa: E501 + :param score: The score of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. # noqa: E501 :type: float """ @@ -109,22 +109,22 @@ def score(self, score): @property def id(self): - """Gets the id of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. # noqa: E501 + """Gets the id of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. # noqa: E501 One of the translation ids passed in arguments # noqa: E501 - :return: The id of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. # noqa: E501 + :return: The id of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): - """Sets the id of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. + """Sets the id of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. One of the translation ids passed in arguments # noqa: E501 - :param id: The id of this ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner. # noqa: E501 + :param id: The id of this QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner. # noqa: E501 :type: str """ @@ -164,14 +164,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner): + if not isinstance(other, QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner): + if not isinstance(other, QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner): return True return self.to_dict() != other.to_dict() diff --git a/phrase_api/models/projects_quality_performance_score200_response_any_of_errors_inner.py b/phrase_api/models/quality_performance_score_list200_response_any_of_errors_inner.py similarity index 70% rename from phrase_api/models/projects_quality_performance_score200_response_any_of_errors_inner.py rename to phrase_api/models/quality_performance_score_list200_response_any_of_errors_inner.py index b54ec89..d5c7cc7 100644 --- a/phrase_api/models/projects_quality_performance_score200_response_any_of_errors_inner.py +++ b/phrase_api/models/quality_performance_score_list200_response_any_of_errors_inner.py @@ -17,7 +17,7 @@ from phrase_api.configuration import Configuration -class ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner(object): +class QualityPerformanceScoreList200ResponseAnyOfErrorsInner(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -44,7 +44,7 @@ class ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner(object): } def __init__(self, message=None, code=None, id=None, local_vars_configuration=None): # noqa: E501 - """ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner - a model defined in OpenAPI""" # noqa: E501 + """QualityPerformanceScoreList200ResponseAnyOfErrorsInner - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -63,20 +63,20 @@ def __init__(self, message=None, code=None, id=None, local_vars_configuration=No @property def message(self): - """Gets the message of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. # noqa: E501 + """Gets the message of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. # noqa: E501 - :return: The message of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. # noqa: E501 + :return: The message of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. # noqa: E501 :rtype: str """ return self._message @message.setter def message(self, message): - """Sets the message of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. + """Sets the message of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. - :param message: The message of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. # noqa: E501 + :param message: The message of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. # noqa: E501 :type: str """ @@ -84,20 +84,20 @@ def message(self, message): @property def code(self): - """Gets the code of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. # noqa: E501 + """Gets the code of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. # noqa: E501 - :return: The code of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. # noqa: E501 + :return: The code of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. # noqa: E501 :rtype: str """ return self._code @code.setter def code(self, code): - """Sets the code of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. + """Sets the code of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. - :param code: The code of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. # noqa: E501 + :param code: The code of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. # noqa: E501 :type: str """ @@ -105,22 +105,22 @@ def code(self, code): @property def id(self): - """Gets the id of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. # noqa: E501 + """Gets the id of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. # noqa: E501 One of the translation ids passed in arguments # noqa: E501 - :return: The id of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. # noqa: E501 + :return: The id of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. # noqa: E501 :rtype: str """ return self._id @id.setter def id(self, id): - """Sets the id of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. + """Sets the id of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. One of the translation ids passed in arguments # noqa: E501 - :param id: The id of this ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner. # noqa: E501 + :param id: The id of this QualityPerformanceScoreList200ResponseAnyOfErrorsInner. # noqa: E501 :type: str """ @@ -160,14 +160,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner): + if not isinstance(other, QualityPerformanceScoreList200ResponseAnyOfErrorsInner): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner): + if not isinstance(other, QualityPerformanceScoreList200ResponseAnyOfErrorsInner): return True return self.to_dict() != other.to_dict() diff --git a/phrase_api/models/projects_quality_performance_score_request.py b/phrase_api/models/quality_performance_score_list_request.py similarity index 81% rename from phrase_api/models/projects_quality_performance_score_request.py rename to phrase_api/models/quality_performance_score_list_request.py index ee1faf1..ff889a4 100644 --- a/phrase_api/models/projects_quality_performance_score_request.py +++ b/phrase_api/models/quality_performance_score_list_request.py @@ -17,7 +17,7 @@ from phrase_api.configuration import Configuration -class ProjectsQualityPerformanceScoreRequest(object): +class QualityPerformanceScoreListRequest(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -40,7 +40,7 @@ class ProjectsQualityPerformanceScoreRequest(object): } def __init__(self, translation_ids=None, local_vars_configuration=None): # noqa: E501 - """ProjectsQualityPerformanceScoreRequest - a model defined in OpenAPI""" # noqa: E501 + """QualityPerformanceScoreListRequest - a model defined in OpenAPI""" # noqa: E501 if local_vars_configuration is None: local_vars_configuration = Configuration() self.local_vars_configuration = local_vars_configuration @@ -53,22 +53,22 @@ def __init__(self, translation_ids=None, local_vars_configuration=None): # noqa @property def translation_ids(self): - """Gets the translation_ids of this ProjectsQualityPerformanceScoreRequest. # noqa: E501 + """Gets the translation_ids of this QualityPerformanceScoreListRequest. # noqa: E501 Translation ids you want to get the quality performance score for # noqa: E501 - :return: The translation_ids of this ProjectsQualityPerformanceScoreRequest. # noqa: E501 + :return: The translation_ids of this QualityPerformanceScoreListRequest. # noqa: E501 :rtype: List[str] """ return self._translation_ids @translation_ids.setter def translation_ids(self, translation_ids): - """Sets the translation_ids of this ProjectsQualityPerformanceScoreRequest. + """Sets the translation_ids of this QualityPerformanceScoreListRequest. Translation ids you want to get the quality performance score for # noqa: E501 - :param translation_ids: The translation_ids of this ProjectsQualityPerformanceScoreRequest. # noqa: E501 + :param translation_ids: The translation_ids of this QualityPerformanceScoreListRequest. # noqa: E501 :type: List[str] """ @@ -108,14 +108,14 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ProjectsQualityPerformanceScoreRequest): + if not isinstance(other, QualityPerformanceScoreListRequest): return False return self.to_dict() == other.to_dict() def __ne__(self, other): """Returns true if both objects are not equal""" - if not isinstance(other, ProjectsQualityPerformanceScoreRequest): + if not isinstance(other, QualityPerformanceScoreListRequest): return True return self.to_dict() != other.to_dict() diff --git a/test/test_projects_quality_performance_score200_response_any_of.py b/test/test_projects_quality_performance_score200_response_any_of.py deleted file mode 100644 index 7aa3637..0000000 --- a/test/test_projects_quality_performance_score200_response_any_of.py +++ /dev/null @@ -1,66 +0,0 @@ -# coding: utf-8 - -""" - Phrase Strings API Reference - - The version of the OpenAPI document: 2.0.0 - Contact: support@phrase.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest -import datetime - -import phrase_api -from phrase_api.models.projects_quality_performance_score200_response_any_of import ProjectsQualityPerformanceScore200ResponseAnyOf # noqa: E501 -from phrase_api.rest import ApiException - -class TestProjectsQualityPerformanceScore200ResponseAnyOf(unittest.TestCase): - """ProjectsQualityPerformanceScore200ResponseAnyOf unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional): - """Test ProjectsQualityPerformanceScore200ResponseAnyOf - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # model = phrase_api.models.projects_quality_performance_score200_response_any_of.ProjectsQualityPerformanceScore200ResponseAnyOf() # noqa: E501 - - """ - if include_optional : - return ProjectsQualityPerformanceScore200ResponseAnyOf( - data = phrase_api.models.projects_quality_performance_score_200_response_any_of_data.projects_quality_performance_score_200_response_anyOf_data( - translations = [ - phrase_api.models.projects_quality_performance_score_200_response_any_of_data_translations_inner.projects_quality_performance_score_200_response_anyOf_data_translations_inner( - engine = '', - score = 1.337, - id = '', ) - ], ), - errors = [ - phrase_api.models.projects_quality_performance_score_200_response_any_of_errors_inner.projects_quality_performance_score_200_response_anyOf_errors_inner( - message = '', - code = '', - id = '', ) - ] - ) - else : - return ProjectsQualityPerformanceScore200ResponseAnyOf( - ) - """ - - def testProjectsQualityPerformanceScore200ResponseAnyOf(self): - """Test ProjectsQualityPerformanceScore200ResponseAnyOf""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_projects_quality_performance_score200_response_any_of_data_translations_inner.py b/test/test_projects_quality_performance_score200_response_any_of_data_translations_inner.py deleted file mode 100644 index 05774e1..0000000 --- a/test/test_projects_quality_performance_score200_response_any_of_data_translations_inner.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - Phrase Strings API Reference - - The version of the OpenAPI document: 2.0.0 - Contact: support@phrase.com - Generated by: https://openapi-generator.tech -""" - - -from __future__ import absolute_import - -import unittest -import datetime - -import phrase_api -from phrase_api.models.projects_quality_performance_score200_response_any_of_data_translations_inner import ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner # noqa: E501 -from phrase_api.rest import ApiException - -class TestProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner(unittest.TestCase): - """ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner unit test stubs""" - - def setUp(self): - pass - - def tearDown(self): - pass - - def make_instance(self, include_optional): - """Test ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner - include_option is a boolean, when False only required - params are included, when True both required and - optional params are included """ - # model = phrase_api.models.projects_quality_performance_score200_response_any_of_data_translations_inner.ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner() # noqa: E501 - - """ - if include_optional : - return ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner( - engine = '', - score = 1.337, - id = '' - ) - else : - return ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner( - ) - """ - - def testProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner(self): - """Test ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner""" - inst_req_only = self.make_instance(include_optional=False) - inst_req_and_optional = self.make_instance(include_optional=True) - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_quality_performance_score_api.py b/test/test_quality_performance_score_api.py index 1c6754d..750250c 100644 --- a/test/test_quality_performance_score_api.py +++ b/test/test_quality_performance_score_api.py @@ -27,8 +27,8 @@ def setUp(self): def tearDown(self): pass - def test_projects_quality_performance_score(self): - """Test case for projects_quality_performance_score + def test_quality_performance_score_list(self): + """Test case for quality_performance_score_list Get Translation Quality # noqa: E501 """ diff --git a/test/test_projects_quality_performance_score200_response.py b/test/test_quality_performance_score_list200_response.py similarity index 52% rename from test/test_projects_quality_performance_score200_response.py rename to test/test_quality_performance_score_list200_response.py index aef5688..588289c 100644 --- a/test/test_projects_quality_performance_score200_response.py +++ b/test/test_quality_performance_score_list200_response.py @@ -15,11 +15,11 @@ import datetime import phrase_api -from phrase_api.models.projects_quality_performance_score200_response import ProjectsQualityPerformanceScore200Response # noqa: E501 +from phrase_api.models.quality_performance_score_list200_response import QualityPerformanceScoreList200Response # noqa: E501 from phrase_api.rest import ApiException -class TestProjectsQualityPerformanceScore200Response(unittest.TestCase): - """ProjectsQualityPerformanceScore200Response unit test stubs""" +class TestQualityPerformanceScoreList200Response(unittest.TestCase): + """QualityPerformanceScoreList200Response unit test stubs""" def setUp(self): pass @@ -28,39 +28,39 @@ def tearDown(self): pass def make_instance(self, include_optional): - """Test ProjectsQualityPerformanceScore200Response + """Test QualityPerformanceScoreList200Response include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = phrase_api.models.projects_quality_performance_score200_response.ProjectsQualityPerformanceScore200Response() # noqa: E501 + # model = phrase_api.models.quality_performance_score_list200_response.QualityPerformanceScoreList200Response() # noqa: E501 """ if include_optional : - return ProjectsQualityPerformanceScore200Response( + return QualityPerformanceScoreList200Response( error = phrase_api.models.error_error.error_error( message = '', code = '', ), - data = phrase_api.models.projects_quality_performance_score_200_response_any_of_data.projects_quality_performance_score_200_response_anyOf_data( + data = phrase_api.models.quality_performance_score_list_200_response_any_of_data.quality_performance_score_list_200_response_anyOf_data( translations = [ - phrase_api.models.projects_quality_performance_score_200_response_any_of_data_translations_inner.projects_quality_performance_score_200_response_anyOf_data_translations_inner( + phrase_api.models.quality_performance_score_list_200_response_any_of_data_translations_inner.quality_performance_score_list_200_response_anyOf_data_translations_inner( engine = '', score = 1.337, id = '', ) ], ), errors = [ - phrase_api.models.projects_quality_performance_score_200_response_any_of_errors_inner.projects_quality_performance_score_200_response_anyOf_errors_inner( + phrase_api.models.quality_performance_score_list_200_response_any_of_errors_inner.quality_performance_score_list_200_response_anyOf_errors_inner( message = '', code = '', id = '', ) ] ) else : - return ProjectsQualityPerformanceScore200Response( + return QualityPerformanceScoreList200Response( ) """ - def testProjectsQualityPerformanceScore200Response(self): - """Test ProjectsQualityPerformanceScore200Response""" + def testQualityPerformanceScoreList200Response(self): + """Test QualityPerformanceScoreList200Response""" inst_req_only = self.make_instance(include_optional=False) inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_quality_performance_score_list200_response_any_of.py b/test/test_quality_performance_score_list200_response_any_of.py new file mode 100644 index 0000000..95ea417 --- /dev/null +++ b/test/test_quality_performance_score_list200_response_any_of.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + Phrase Strings API Reference + + The version of the OpenAPI document: 2.0.0 + Contact: support@phrase.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import phrase_api +from phrase_api.models.quality_performance_score_list200_response_any_of import QualityPerformanceScoreList200ResponseAnyOf # noqa: E501 +from phrase_api.rest import ApiException + +class TestQualityPerformanceScoreList200ResponseAnyOf(unittest.TestCase): + """QualityPerformanceScoreList200ResponseAnyOf unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test QualityPerformanceScoreList200ResponseAnyOf + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = phrase_api.models.quality_performance_score_list200_response_any_of.QualityPerformanceScoreList200ResponseAnyOf() # noqa: E501 + + """ + if include_optional : + return QualityPerformanceScoreList200ResponseAnyOf( + data = phrase_api.models.quality_performance_score_list_200_response_any_of_data.quality_performance_score_list_200_response_anyOf_data( + translations = [ + phrase_api.models.quality_performance_score_list_200_response_any_of_data_translations_inner.quality_performance_score_list_200_response_anyOf_data_translations_inner( + engine = '', + score = 1.337, + id = '', ) + ], ), + errors = [ + phrase_api.models.quality_performance_score_list_200_response_any_of_errors_inner.quality_performance_score_list_200_response_anyOf_errors_inner( + message = '', + code = '', + id = '', ) + ] + ) + else : + return QualityPerformanceScoreList200ResponseAnyOf( + ) + """ + + def testQualityPerformanceScoreList200ResponseAnyOf(self): + """Test QualityPerformanceScoreList200ResponseAnyOf""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_projects_quality_performance_score200_response_any_of_data.py b/test/test_quality_performance_score_list200_response_any_of_data.py similarity index 50% rename from test/test_projects_quality_performance_score200_response_any_of_data.py rename to test/test_quality_performance_score_list200_response_any_of_data.py index 515fe3d..09b7cea 100644 --- a/test/test_projects_quality_performance_score200_response_any_of_data.py +++ b/test/test_quality_performance_score_list200_response_any_of_data.py @@ -15,11 +15,11 @@ import datetime import phrase_api -from phrase_api.models.projects_quality_performance_score200_response_any_of_data import ProjectsQualityPerformanceScore200ResponseAnyOfData # noqa: E501 +from phrase_api.models.quality_performance_score_list200_response_any_of_data import QualityPerformanceScoreList200ResponseAnyOfData # noqa: E501 from phrase_api.rest import ApiException -class TestProjectsQualityPerformanceScore200ResponseAnyOfData(unittest.TestCase): - """ProjectsQualityPerformanceScore200ResponseAnyOfData unit test stubs""" +class TestQualityPerformanceScoreList200ResponseAnyOfData(unittest.TestCase): + """QualityPerformanceScoreList200ResponseAnyOfData unit test stubs""" def setUp(self): pass @@ -28,29 +28,29 @@ def tearDown(self): pass def make_instance(self, include_optional): - """Test ProjectsQualityPerformanceScore200ResponseAnyOfData + """Test QualityPerformanceScoreList200ResponseAnyOfData include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = phrase_api.models.projects_quality_performance_score200_response_any_of_data.ProjectsQualityPerformanceScore200ResponseAnyOfData() # noqa: E501 + # model = phrase_api.models.quality_performance_score_list200_response_any_of_data.QualityPerformanceScoreList200ResponseAnyOfData() # noqa: E501 """ if include_optional : - return ProjectsQualityPerformanceScore200ResponseAnyOfData( + return QualityPerformanceScoreList200ResponseAnyOfData( translations = [ - phrase_api.models.projects_quality_performance_score_200_response_any_of_data_translations_inner.projects_quality_performance_score_200_response_anyOf_data_translations_inner( + phrase_api.models.quality_performance_score_list_200_response_any_of_data_translations_inner.quality_performance_score_list_200_response_anyOf_data_translations_inner( engine = '', score = 1.337, id = '', ) ] ) else : - return ProjectsQualityPerformanceScore200ResponseAnyOfData( + return QualityPerformanceScoreList200ResponseAnyOfData( ) """ - def testProjectsQualityPerformanceScore200ResponseAnyOfData(self): - """Test ProjectsQualityPerformanceScore200ResponseAnyOfData""" + def testQualityPerformanceScoreList200ResponseAnyOfData(self): + """Test QualityPerformanceScoreList200ResponseAnyOfData""" inst_req_only = self.make_instance(include_optional=False) inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_quality_performance_score_list200_response_any_of_data_translations_inner.py b/test/test_quality_performance_score_list200_response_any_of_data_translations_inner.py new file mode 100644 index 0000000..a21c887 --- /dev/null +++ b/test/test_quality_performance_score_list200_response_any_of_data_translations_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + Phrase Strings API Reference + + The version of the OpenAPI document: 2.0.0 + Contact: support@phrase.com + Generated by: https://openapi-generator.tech +""" + + +from __future__ import absolute_import + +import unittest +import datetime + +import phrase_api +from phrase_api.models.quality_performance_score_list200_response_any_of_data_translations_inner import QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner # noqa: E501 +from phrase_api.rest import ApiException + +class TestQualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner(unittest.TestCase): + """QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional): + """Test QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner + include_option is a boolean, when False only required + params are included, when True both required and + optional params are included """ + # model = phrase_api.models.quality_performance_score_list200_response_any_of_data_translations_inner.QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner() # noqa: E501 + + """ + if include_optional : + return QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner( + engine = '', + score = 1.337, + id = '' + ) + else : + return QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner( + ) + """ + + def testQualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner(self): + """Test QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner""" + inst_req_only = self.make_instance(include_optional=False) + inst_req_and_optional = self.make_instance(include_optional=True) + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_projects_quality_performance_score200_response_any_of_errors_inner.py b/test/test_quality_performance_score_list200_response_any_of_errors_inner.py similarity index 51% rename from test/test_projects_quality_performance_score200_response_any_of_errors_inner.py rename to test/test_quality_performance_score_list200_response_any_of_errors_inner.py index a60192e..053e3ea 100644 --- a/test/test_projects_quality_performance_score200_response_any_of_errors_inner.py +++ b/test/test_quality_performance_score_list200_response_any_of_errors_inner.py @@ -15,11 +15,11 @@ import datetime import phrase_api -from phrase_api.models.projects_quality_performance_score200_response_any_of_errors_inner import ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner # noqa: E501 +from phrase_api.models.quality_performance_score_list200_response_any_of_errors_inner import QualityPerformanceScoreList200ResponseAnyOfErrorsInner # noqa: E501 from phrase_api.rest import ApiException -class TestProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner(unittest.TestCase): - """ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner unit test stubs""" +class TestQualityPerformanceScoreList200ResponseAnyOfErrorsInner(unittest.TestCase): + """QualityPerformanceScoreList200ResponseAnyOfErrorsInner unit test stubs""" def setUp(self): pass @@ -28,26 +28,26 @@ def tearDown(self): pass def make_instance(self, include_optional): - """Test ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner + """Test QualityPerformanceScoreList200ResponseAnyOfErrorsInner include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = phrase_api.models.projects_quality_performance_score200_response_any_of_errors_inner.ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner() # noqa: E501 + # model = phrase_api.models.quality_performance_score_list200_response_any_of_errors_inner.QualityPerformanceScoreList200ResponseAnyOfErrorsInner() # noqa: E501 """ if include_optional : - return ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner( + return QualityPerformanceScoreList200ResponseAnyOfErrorsInner( message = '', code = '', id = '' ) else : - return ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner( + return QualityPerformanceScoreList200ResponseAnyOfErrorsInner( ) """ - def testProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner(self): - """Test ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner""" + def testQualityPerformanceScoreList200ResponseAnyOfErrorsInner(self): + """Test QualityPerformanceScoreList200ResponseAnyOfErrorsInner""" inst_req_only = self.make_instance(include_optional=False) inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_projects_quality_performance_score_request.py b/test/test_quality_performance_score_list_request.py similarity index 59% rename from test/test_projects_quality_performance_score_request.py rename to test/test_quality_performance_score_list_request.py index 30a44de..fa0d528 100644 --- a/test/test_projects_quality_performance_score_request.py +++ b/test/test_quality_performance_score_list_request.py @@ -15,11 +15,11 @@ import datetime import phrase_api -from phrase_api.models.projects_quality_performance_score_request import ProjectsQualityPerformanceScoreRequest # noqa: E501 +from phrase_api.models.quality_performance_score_list_request import QualityPerformanceScoreListRequest # noqa: E501 from phrase_api.rest import ApiException -class TestProjectsQualityPerformanceScoreRequest(unittest.TestCase): - """ProjectsQualityPerformanceScoreRequest unit test stubs""" +class TestQualityPerformanceScoreListRequest(unittest.TestCase): + """QualityPerformanceScoreListRequest unit test stubs""" def setUp(self): pass @@ -28,26 +28,26 @@ def tearDown(self): pass def make_instance(self, include_optional): - """Test ProjectsQualityPerformanceScoreRequest + """Test QualityPerformanceScoreListRequest include_option is a boolean, when False only required params are included, when True both required and optional params are included """ - # model = phrase_api.models.projects_quality_performance_score_request.ProjectsQualityPerformanceScoreRequest() # noqa: E501 + # model = phrase_api.models.quality_performance_score_list_request.QualityPerformanceScoreListRequest() # noqa: E501 """ if include_optional : - return ProjectsQualityPerformanceScoreRequest( + return QualityPerformanceScoreListRequest( translation_ids = [ 'translation_id_1' ] ) else : - return ProjectsQualityPerformanceScoreRequest( + return QualityPerformanceScoreListRequest( ) """ - def testProjectsQualityPerformanceScoreRequest(self): - """Test ProjectsQualityPerformanceScoreRequest""" + def testQualityPerformanceScoreListRequest(self): + """Test QualityPerformanceScoreListRequest""" inst_req_only = self.make_instance(include_optional=False) inst_req_and_optional = self.make_instance(include_optional=True)