-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploying from phrase/openapi@d22c558a
- Loading branch information
Phrase
committed
Jan 17, 2024
1 parent
3498464
commit aaee4a1
Showing
35 changed files
with
2,351 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Phrase::Error | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**error** | [**ErrorError**](ErrorError.md) | | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'Phrase' | ||
|
||
instance = Phrase::Error.new(error: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Phrase::ErrorError | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**message** | **String** | | [optional] | ||
**code** | **String** | | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'Phrase' | ||
|
||
instance = Phrase::ErrorError.new(message: null, | ||
code: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Phrase::ProjectsQualityPerformanceScore200Response | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**error** | [**ErrorError**](ErrorError.md) | | [optional] | ||
**data** | [**ProjectsQualityPerformanceScore200ResponseAnyOfData**](ProjectsQualityPerformanceScore200ResponseAnyOfData.md) | | [optional] | ||
**errors** | [**Array<ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner>**](ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md) | Array of errors for any failing translation ids | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'Phrase' | ||
|
||
instance = Phrase::ProjectsQualityPerformanceScore200Response.new(error: null, | ||
data: null, | ||
errors: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Phrase::ProjectsQualityPerformanceScore200ResponseAnyOf | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**data** | [**ProjectsQualityPerformanceScore200ResponseAnyOfData**](ProjectsQualityPerformanceScore200ResponseAnyOfData.md) | | [optional] | ||
**errors** | [**Array<ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner>**](ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md) | Array of errors for any failing translation ids | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'Phrase' | ||
|
||
instance = Phrase::ProjectsQualityPerformanceScore200ResponseAnyOf.new(data: null, | ||
errors: null) | ||
``` | ||
|
||
|
17 changes: 17 additions & 0 deletions
17
docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfData | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**translations** | [**Array<ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner>**](ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md) | | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'Phrase' | ||
|
||
instance = Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfData.new(translations: null) | ||
``` | ||
|
||
|
21 changes: 21 additions & 0 deletions
21
docs/ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**engine** | **String** | Engine used for the translation scoring | [optional] | ||
**score** | **Float** | Quality score for the translation | [optional] | ||
**id** | **String** | One of the translation ids passed in arguments | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'Phrase' | ||
|
||
instance = Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.new(engine: null, | ||
score: null, | ||
id: null) | ||
``` | ||
|
||
|
21 changes: 21 additions & 0 deletions
21
docs/ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**message** | **String** | | [optional] | ||
**code** | **String** | | [optional] | ||
**id** | **String** | One of the translation ids passed in arguments | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'Phrase' | ||
|
||
instance = Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.new(message: null, | ||
code: null, | ||
id: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Phrase::ProjectsQualityPerformanceScoreRequest | ||
|
||
## Properties | ||
|
||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**translation_ids** | **Array<String>** | Translation ids you want to get the quality performance score for | [optional] | ||
|
||
## Code Sample | ||
|
||
```ruby | ||
require 'Phrase' | ||
|
||
instance = Phrase::ProjectsQualityPerformanceScoreRequest.new(translation_ids: null) | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Phrase::QualityPerformanceScoreApi | ||
|
||
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/{id}/quality_performance_score | Get project's translations' quality performance scores | ||
|
||
|
||
|
||
## projects_quality_performance_score | ||
|
||
> ProjectsQualityPerformanceScore200Response projects_quality_performance_score(id, projects_quality_performance_score_request, opts) | ||
Get project's translations' quality performance scores | ||
|
||
Get project's translations' quality performance scores | ||
|
||
### Example | ||
|
||
```ruby | ||
# load the gem | ||
require 'phrase' | ||
# setup authorization | ||
Phrase.configure do |config| | ||
# Configure HTTP basic authorization: Basic | ||
config.username = 'YOUR USERNAME' | ||
config.password = 'YOUR PASSWORD' | ||
|
||
# Configure API key authorization: Token | ||
config.api_key['Authorization'] = 'YOUR API KEY' | ||
config.api_key_prefix['Authorization'] = 'token' | ||
end | ||
|
||
api_instance = Phrase::QualityPerformanceScoreApi.new | ||
id = 'id_example' # String | ID | ||
projects_quality_performance_score_request = Phrase::ProjectsQualityPerformanceScoreRequest.new # ProjectsQualityPerformanceScoreRequest | | ||
opts = { | ||
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional) | ||
} | ||
|
||
begin | ||
#Get project's translations' quality performance scores | ||
result = api_instance.projects_quality_performance_score(id, projects_quality_performance_score_request, opts) | ||
pp result | ||
rescue Phrase::ApiError => e | ||
puts "Exception when calling QualityPerformanceScoreApi->projects_quality_performance_score: #{e}" | ||
end | ||
``` | ||
|
||
### Parameters | ||
|
||
|
||
Name | Type | Description | Notes | ||
------------- | ------------- | ------------- | ------------- | ||
**id** | **String**| ID | | ||
**projects_quality_performance_score_request** | [**ProjectsQualityPerformanceScoreRequest**](ProjectsQualityPerformanceScoreRequest.md)| | | ||
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional] | ||
|
||
### Return type | ||
|
||
Response<([**ProjectsQualityPerformanceScore200Response**](ProjectsQualityPerformanceScore200Response.md))> | ||
|
||
### Authorization | ||
|
||
[Basic](../README.md#Basic), [Token](../README.md#Token) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: application/json | ||
- **Accept**: application/json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.