Skip to content

Commit

Permalink
Deploying from phrase/openapi@4b4f1acf
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Feb 1, 2024
1 parent 94453de commit 4fcaf7e
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ Class | Method | HTTP request | Description
*ProjectsApi* | [**projectShow**](docs/Api/ProjectsApi.md#projectshow) | **GET** /projects/{id} | Get a single project
*ProjectsApi* | [**projectUpdate**](docs/Api/ProjectsApi.md#projectupdate) | **PATCH** /projects/{id} | Update a project
*ProjectsApi* | [**projectsList**](docs/Api/ProjectsApi.md#projectslist) | **GET** /projects | List projects
*QualityPerformanceScoreApi* | [**projectsQualityPerformanceScore**](docs/Api/QualityPerformanceScoreApi.md#projectsqualityperformancescore) | **POST** /projects/{id}/quality_performance_score | Get project's translations' quality performance scores
*QualityPerformanceScoreApi* | [**projectsQualityPerformanceScore**](docs/Api/QualityPerformanceScoreApi.md#projectsqualityperformancescore) | **POST** /projects/{project_id}/quality_performance_score | Get Translation Quality
*ReleasesApi* | [**releaseCreate**](docs/Api/ReleasesApi.md#releasecreate) | **POST** /accounts/{account_id}/distributions/{distribution_id}/releases | Create a release
*ReleasesApi* | [**releaseDelete**](docs/Api/ReleasesApi.md#releasedelete) | **DELETE** /accounts/{account_id}/distributions/{distribution_id}/releases/{id} | Delete a release
*ReleasesApi* | [**releasePublish**](docs/Api/ReleasesApi.md#releasepublish) | **POST** /accounts/{account_id}/distributions/{distribution_id}/releases/{id}/publish | Publish a release
Expand Down
14 changes: 7 additions & 7 deletions docs/Api/QualityPerformanceScoreApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@ All URIs are relative to *https://api.phrase.com/v2*

Method | HTTP request | Description
------------- | ------------- | -------------
[**projectsQualityPerformanceScore**](QualityPerformanceScoreApi.md#projectsQualityPerformanceScore) | **POST** /projects/{id}/quality_performance_score | Get project's translations' quality performance scores
[**projectsQualityPerformanceScore**](QualityPerformanceScoreApi.md#projectsQualityPerformanceScore) | **POST** /projects/{project_id}/quality_performance_score | Get Translation Quality



## projectsQualityPerformanceScore

> \Phrase\Model\ProjectsQualityPerformanceScore200Response projectsQualityPerformanceScore($id, $projects_quality_performance_score_request, $x_phrase_app_otp)
> \Phrase\Model\ProjectsQualityPerformanceScore200Response projectsQualityPerformanceScore($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp)
Get project's translations' quality performance scores
Get Translation Quality

Get project's translations' quality performance scores
Retrieves the quality scores for your Strings translations. Returns a score, measured by Phrase QPS

### Example

Expand All @@ -31,12 +31,12 @@ $apiInstance = new Phrase\Api\QualityPerformanceScoreApi(
new GuzzleHttp\Client(),
$config
);
$id = 'id_example'; // string | ID
$project_id = 'project_id_example'; // string | Project ID
$projects_quality_performance_score_request = new \Phrase\Model\ProjectsQualityPerformanceScoreRequest(); // \Phrase\Model\ProjectsQualityPerformanceScoreRequest |
$x_phrase_app_otp = 'x_phrase_app_otp_example'; // string | Two-Factor-Authentication token (optional)

try {
$result = $apiInstance->projectsQualityPerformanceScore($id, $projects_quality_performance_score_request, $x_phrase_app_otp);
$result = $apiInstance->projectsQualityPerformanceScore($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling QualityPerformanceScoreApi->projectsQualityPerformanceScore: ', $e->getMessage(), PHP_EOL;
Expand All @@ -49,7 +49,7 @@ try {

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **string**| ID |
**project_id** | **string**| Project ID |
**projects_quality_performance_score_request** | [**\Phrase\Model\ProjectsQualityPerformanceScoreRequest**](../Model/ProjectsQualityPerformanceScoreRequest.md)| |
**x_phrase_app_otp** | **string**| Two-Factor-Authentication token (optional) | [optional]

Expand Down
2 changes: 1 addition & 1 deletion docs/Model/ProjectsQualityPerformanceScore200Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**error** | [**\Phrase\Model\ErrorError**](ErrorError.md) | | [optional]
**data** | [**\Phrase\Model\ProjectsQualityPerformanceScore200ResponseAnyOfData**](ProjectsQualityPerformanceScore200ResponseAnyOfData.md) | | [optional]
**errors** | [**\Phrase\Model\ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner[]**](ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md) | Array of errors for any failing translation ids | [optional]
**errors** | [**\Phrase\Model\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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**\Phrase\Model\ProjectsQualityPerformanceScore200ResponseAnyOfData**](ProjectsQualityPerformanceScore200ResponseAnyOfData.md) | | [optional]
**errors** | [**\Phrase\Model\ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner[]**](ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md) | Array of errors for any failing translation ids | [optional]
**errors** | [**\Phrase\Model\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)

Expand Down
50 changes: 25 additions & 25 deletions lib/Api/QualityPerformanceScoreApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,38 +116,38 @@ public function getConfig()
/**
* Operation projectsQualityPerformanceScore
*
* Get project's translations' quality performance scores
* Get Translation Quality
*
* @param string $id ID (required)
* @param string $project_id Project ID (required)
* @param \Phrase\Model\ProjectsQualityPerformanceScoreRequest $projects_quality_performance_score_request projects_quality_performance_score_request (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
*
* @throws \Phrase\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Phrase\Model\ProjectsQualityPerformanceScore200Response|\Phrase\Model\CustomMetadataPropertyCreate422Response
*/
public function projectsQualityPerformanceScore($id, $projects_quality_performance_score_request, $x_phrase_app_otp = null)
public function projectsQualityPerformanceScore($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp = null)
{
list($response) = $this->projectsQualityPerformanceScoreWithHttpInfo($id, $projects_quality_performance_score_request, $x_phrase_app_otp);
list($response) = $this->projectsQualityPerformanceScoreWithHttpInfo($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp);
return $response;
}

/**
* Operation projectsQualityPerformanceScoreWithHttpInfo
*
* Get project's translations' quality performance scores
* Get Translation Quality
*
* @param string $id ID (required)
* @param string $project_id Project ID (required)
* @param \Phrase\Model\ProjectsQualityPerformanceScoreRequest $projects_quality_performance_score_request (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
*
* @throws \Phrase\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Phrase\Model\ProjectsQualityPerformanceScore200Response|\Phrase\Model\CustomMetadataPropertyCreate422Response, HTTP status code, HTTP response headers (array of strings)
*/
public function projectsQualityPerformanceScoreWithHttpInfo($id, $projects_quality_performance_score_request, $x_phrase_app_otp = null)
public function projectsQualityPerformanceScoreWithHttpInfo($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp = null)
{
$request = $this->projectsQualityPerformanceScoreRequest($id, $projects_quality_performance_score_request, $x_phrase_app_otp);
$request = $this->projectsQualityPerformanceScoreRequest($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -245,18 +245,18 @@ public function projectsQualityPerformanceScoreWithHttpInfo($id, $projects_quali
/**
* Operation projectsQualityPerformanceScoreAsync
*
* Get project's translations' quality performance scores
* Get Translation Quality
*
* @param string $id ID (required)
* @param string $project_id Project ID (required)
* @param \Phrase\Model\ProjectsQualityPerformanceScoreRequest $projects_quality_performance_score_request (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function projectsQualityPerformanceScoreAsync($id, $projects_quality_performance_score_request, $x_phrase_app_otp = null)
public function projectsQualityPerformanceScoreAsync($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp = null)
{
return $this->projectsQualityPerformanceScoreAsyncWithHttpInfo($id, $projects_quality_performance_score_request, $x_phrase_app_otp)
return $this->projectsQualityPerformanceScoreAsyncWithHttpInfo($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp)
->then(
function ($response) {
return $response[0];
Expand All @@ -267,19 +267,19 @@ function ($response) {
/**
* Operation projectsQualityPerformanceScoreAsyncWithHttpInfo
*
* Get project's translations' quality performance scores
* Get Translation Quality
*
* @param string $id ID (required)
* @param string $project_id Project ID (required)
* @param \Phrase\Model\ProjectsQualityPerformanceScoreRequest $projects_quality_performance_score_request (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function projectsQualityPerformanceScoreAsyncWithHttpInfo($id, $projects_quality_performance_score_request, $x_phrase_app_otp = null)
public function projectsQualityPerformanceScoreAsyncWithHttpInfo($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp = null)
{
$returnType = '\Phrase\Model\ProjectsQualityPerformanceScore200Response';
$request = $this->projectsQualityPerformanceScoreRequest($id, $projects_quality_performance_score_request, $x_phrase_app_otp);
$request = $this->projectsQualityPerformanceScoreRequest($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
Expand Down Expand Up @@ -318,19 +318,19 @@ function ($exception) {
/**
* Create request for operation 'projectsQualityPerformanceScore'
*
* @param string $id ID (required)
* @param string $project_id Project ID (required)
* @param \Phrase\Model\ProjectsQualityPerformanceScoreRequest $projects_quality_performance_score_request (required)
* @param string $x_phrase_app_otp Two-Factor-Authentication token (optional) (optional)
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
protected function projectsQualityPerformanceScoreRequest($id, $projects_quality_performance_score_request, $x_phrase_app_otp = null)
protected function projectsQualityPerformanceScoreRequest($project_id, $projects_quality_performance_score_request, $x_phrase_app_otp = null)
{
// verify the required parameter 'id' is set
if ($id === null || (is_array($id) && count($id) === 0)) {
// verify the required parameter 'project_id' is set
if ($project_id === null || (is_array($project_id) && count($project_id) === 0)) {
throw new \InvalidArgumentException(
'Missing the required parameter $id when calling projectsQualityPerformanceScore'
'Missing the required parameter $project_id when calling projectsQualityPerformanceScore'
);
}
// verify the required parameter 'projects_quality_performance_score_request' is set
Expand All @@ -340,7 +340,7 @@ protected function projectsQualityPerformanceScoreRequest($id, $projects_quality
);
}

$resourcePath = '/projects/{id}/quality_performance_score';
$resourcePath = '/projects/{project_id}/quality_performance_score';
$formParams = [];
$queryParams = [];
$headerParams = [];
Expand All @@ -354,10 +354,10 @@ protected function projectsQualityPerformanceScoreRequest($id, $projects_quality
}

// path params
if ($id !== null) {
if ($project_id !== null) {
$resourcePath = str_replace(
'{' . 'id' . '}',
ObjectSerializer::toPathValue($id),
'{' . 'project_id' . '}',
ObjectSerializer::toPathValue($project_id),
$resourcePath
);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ProjectsQualityPerformanceScore200Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function getErrors()
/**
* Sets errors
*
* @param \Phrase\Model\ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner[]|null $errors Array of errors for any failing translation ids
* @param \Phrase\Model\ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner[]|null $errors Array of errors for any failing translation IDs
*
* @return $this
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function getErrors()
/**
* Sets errors
*
* @param \Phrase\Model\ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner[]|null $errors Array of errors for any failing translation ids
* @param \Phrase\Model\ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner[]|null $errors Array of errors for any failing translation IDs
*
* @return $this
*/
Expand Down
2 changes: 1 addition & 1 deletion test/Api/QualityPerformanceScoreApiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public static function tearDownAfterClass()
/**
* Test case for projectsQualityPerformanceScore
*
* Get project's translations' quality performance scores.
* Get Translation Quality.
*
*/
public function testProjectsQualityPerformanceScore()
Expand Down

0 comments on commit 4fcaf7e

Please sign in to comment.