Skip to content

Commit

Permalink
Deploying from phrase/openapi@7161c930
Browse files Browse the repository at this point in the history
  • Loading branch information
Phrase committed Sep 19, 2024
1 parent ba19da0 commit d4ac00b
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 132 deletions.
4 changes: 2 additions & 2 deletions docs/JobsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ id = 'id_example' # String | ID
opts = {
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
branch: 'my-feature-branch', # String | specify the branch to use
translation_key_ids: ['inner_example'] # Array<String> | ids of keys that should added to the job
translation_key_ids: ['inner_example'] # Array<String> | ids of keys that should be removed from the job
}

begin
Expand All @@ -327,7 +327,7 @@ Name | Type | Description | Notes
**id** | **String**| ID |
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
**branch** | **String**| specify the branch to use | [optional]
**translation_key_ids** | [**Array&lt;String&gt;**](String.md)| ids of keys that should added to the job | [optional]
**translation_key_ids** | [**Array&lt;String&gt;**](String.md)| ids of keys that should be removed from the job | [optional]

### Return type

Expand Down
2 changes: 1 addition & 1 deletion docs/KeyCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
data_type: number,
tags: awesome-feature,needs-proofreading,
max_characters_allowed: 140,
screenshot: [B@7bb92a71,
screenshot: [B@6241ef96,
remove_screenshot: null,
unformatted: null,
default_translation_content: Default translation content,
Expand Down
2 changes: 1 addition & 1 deletion docs/KeyUpdateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
data_type: number,
tags: awesome-feature,needs-proofreading,
max_characters_allowed: 140,
screenshot: [B@3bbb5b2,
screenshot: [B@5865b0f6,
remove_screenshot: null,
unformatted: null,
xml_space_preserve: null,
Expand Down
12 changes: 3 additions & 9 deletions docs/ProjectCreateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Name | Type | Description | Notes
**point_of_contact** | **String** | (Optional) User ID of the point of contact for the project. | [optional]
**source_project_id** | **String** | When a source project ID is given, a clone of that project will be created, including all locales, keys and translations as well as the main project settings if they are not defined otherwise through the params. | [optional]
**workflow** | **String** | (Optional) Review Workflow. \&quot;simple\&quot; / \&quot;review\&quot;. &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\&quot;&gt;Read more&lt;/a&gt; | [optional]
**machine_translation_enabled** | **Boolean** | (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest | [optional]
**machine_translation_enabled** | **Boolean** | (Optional) Enable machine translation support in the project. Required for Pre-Translation | [optional]
**enable_branching** | **Boolean** | (Optional) Enable branching in the project | [optional]
**protect_master_branch** | **Boolean** | (Optional) Protect the master branch in project where branching is enabled | [optional]
**enable_all_data_type_translation_keys_for_translators** | **Boolean** | (Optional) Otherwise, translators are not allowed to edit translations other than strings | [optional]
Expand All @@ -27,9 +27,6 @@ Name | Type | Description | Notes
**autotranslate_mark_as_unverified** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
**autotranslate_use_machine_translation** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
**autotranslate_use_translation_memory** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
**smart_suggest_enabled** | **Boolean** | (Optional) Smart Suggest, requires machine_translation_enabled | [optional]
**smart_suggest_use_glossary** | **Boolean** | (Optional) Requires smart_suggest_enabled to be true | [optional]
**smart_suggest_use_machine_translation** | **Boolean** | (Optional) Requires smart_suggest_enabled to be true | [optional]

## Code Sample

Expand All @@ -40,7 +37,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
main_format: yml,
media: Python,
shares_translation_memory: true,
project_image: [B@15cf663c,
project_image: [B@7e2f1454,
remove_project_image: null,
account_id: abcd1234,
point_of_contact: abcd1234,
Expand All @@ -58,10 +55,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
autotranslate_check_new_locales: true,
autotranslate_mark_as_unverified: true,
autotranslate_use_machine_translation: true,
autotranslate_use_translation_memory: true,
smart_suggest_enabled: true,
smart_suggest_use_glossary: true,
smart_suggest_use_machine_translation: true)
autotranslate_use_translation_memory: true)
```


12 changes: 3 additions & 9 deletions docs/ProjectUpdateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Name | Type | Description | Notes
**project_image** | **File** | (Optional) Image to identify the project | [optional]
**remove_project_image** | **Boolean** | (Optional) Indicates whether the project image should be deleted. | [optional]
**workflow** | **String** | (Optional) Review Workflow. \&quot;simple\&quot; / \&quot;review\&quot;. &lt;a href&#x3D;\&quot;https://support.phrase.com/hc/en-us/articles/5784094755484\&quot;&gt;Read more&lt;/a&gt; | [optional]
**machine_translation_enabled** | **Boolean** | (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest | [optional]
**machine_translation_enabled** | **Boolean** | (Optional) Enable machine translation support in the project. Required for Pre-Translation | [optional]
**enable_branching** | **Boolean** | (Optional) Enable branching in the project | [optional]
**protect_master_branch** | **Boolean** | (Optional) Protect the master branch in project where branching is enabled | [optional]
**enable_all_data_type_translation_keys_for_translators** | **Boolean** | (Optional) Otherwise, translators are not allowed to edit translations other than strings | [optional]
Expand All @@ -26,9 +26,6 @@ Name | Type | Description | Notes
**autotranslate_mark_as_unverified** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
**autotranslate_use_machine_translation** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
**autotranslate_use_translation_memory** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
**smart_suggest_enabled** | **Boolean** | (Optional) Smart Suggest, requires machine_translation_enabled | [optional]
**smart_suggest_use_glossary** | **Boolean** | (Optional) Requires smart_suggest_enabled to be true | [optional]
**smart_suggest_use_machine_translation** | **Boolean** | (Optional) Requires smart_suggest_enabled to be true | [optional]

## Code Sample

Expand All @@ -41,7 +38,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
main_format: yml,
media: Python,
shares_translation_memory: true,
project_image: [B@3c288a4e,
project_image: [B@35b1e5e5,
remove_project_image: false,
workflow: review,
machine_translation_enabled: true,
Expand All @@ -56,10 +53,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
autotranslate_check_new_locales: true,
autotranslate_mark_as_unverified: true,
autotranslate_use_machine_translation: true,
autotranslate_use_translation_memory: true,
smart_suggest_enabled: true,
smart_suggest_use_glossary: true,
smart_suggest_use_machine_translation: true)
autotranslate_use_translation_memory: true)
```


2 changes: 1 addition & 1 deletion docs/ScreenshotUpdateParameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require 'Phrase'
instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
name: A screenshot name,
description: A screenshot description,
filename: [B@1529406e)
filename: [B@644acaff)
```


4 changes: 2 additions & 2 deletions lib/phrase/api/jobs_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def job_keys_create_with_http_info(project_id, id, job_keys_create_parameters, o
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @option opts [String] :branch specify the branch to use
# @option opts [Array<String>] :translation_key_ids ids of keys that should added to the job
# @option opts [Array<String>] :translation_key_ids ids of keys that should be removed from the job
# @return [nil]
def job_keys_delete(project_id, id, opts = {})
data, _status_code, _headers = job_keys_delete_with_http_info(project_id, id, opts)
Expand All @@ -335,7 +335,7 @@ def job_keys_delete(project_id, id, opts = {})
# @param [Hash] opts the optional parameters
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
# @option opts [String] :branch specify the branch to use
# @option opts [Array<String>] :translation_key_ids ids of keys that should added to the job
# @option opts [Array<String>] :translation_key_ids ids of keys that should be removed from the job
# @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
def job_keys_delete_with_http_info(project_id, id, opts = {})
if @api_client.config.debugging
Expand Down
40 changes: 5 additions & 35 deletions lib/phrase/models/project_create_parameters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class ProjectCreateParameters
# (Optional) Review Workflow. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a>
attr_accessor :workflow

# (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest
# (Optional) Enable machine translation support in the project. Required for Pre-Translation
attr_accessor :machine_translation_enabled

# (Optional) Enable branching in the project
Expand Down Expand Up @@ -71,15 +71,6 @@ class ProjectCreateParameters
# (Optional) Requires autotranslate_enabled to be true
attr_accessor :autotranslate_use_translation_memory

# (Optional) Smart Suggest, requires machine_translation_enabled
attr_accessor :smart_suggest_enabled

# (Optional) Requires smart_suggest_enabled to be true
attr_accessor :smart_suggest_use_glossary

# (Optional) Requires smart_suggest_enabled to be true
attr_accessor :smart_suggest_use_machine_translation

# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
Expand All @@ -105,10 +96,7 @@ def self.attribute_map
:'autotranslate_check_new_locales' => :'autotranslate_check_new_locales',
:'autotranslate_mark_as_unverified' => :'autotranslate_mark_as_unverified',
:'autotranslate_use_machine_translation' => :'autotranslate_use_machine_translation',
:'autotranslate_use_translation_memory' => :'autotranslate_use_translation_memory',
:'smart_suggest_enabled' => :'smart_suggest_enabled',
:'smart_suggest_use_glossary' => :'smart_suggest_use_glossary',
:'smart_suggest_use_machine_translation' => :'smart_suggest_use_machine_translation'
:'autotranslate_use_translation_memory' => :'autotranslate_use_translation_memory'
}
end

Expand Down Expand Up @@ -137,10 +125,7 @@ def self.openapi_types
:'autotranslate_check_new_locales' => :'Boolean',
:'autotranslate_mark_as_unverified' => :'Boolean',
:'autotranslate_use_machine_translation' => :'Boolean',
:'autotranslate_use_translation_memory' => :'Boolean',
:'smart_suggest_enabled' => :'Boolean',
:'smart_suggest_use_glossary' => :'Boolean',
:'smart_suggest_use_machine_translation' => :'Boolean'
:'autotranslate_use_translation_memory' => :'Boolean'
}
end

Expand Down Expand Up @@ -256,18 +241,6 @@ def initialize(attributes = {})
if attributes.key?(:'autotranslate_use_translation_memory')
self.autotranslate_use_translation_memory = attributes[:'autotranslate_use_translation_memory']
end

if attributes.key?(:'smart_suggest_enabled')
self.smart_suggest_enabled = attributes[:'smart_suggest_enabled']
end

if attributes.key?(:'smart_suggest_use_glossary')
self.smart_suggest_use_glossary = attributes[:'smart_suggest_use_glossary']
end

if attributes.key?(:'smart_suggest_use_machine_translation')
self.smart_suggest_use_machine_translation = attributes[:'smart_suggest_use_machine_translation']
end
end

# Show invalid properties with the reasons. Usually used together with valid?
Expand Down Expand Up @@ -315,10 +288,7 @@ def ==(o)
autotranslate_check_new_locales == o.autotranslate_check_new_locales &&
autotranslate_mark_as_unverified == o.autotranslate_mark_as_unverified &&
autotranslate_use_machine_translation == o.autotranslate_use_machine_translation &&
autotranslate_use_translation_memory == o.autotranslate_use_translation_memory &&
smart_suggest_enabled == o.smart_suggest_enabled &&
smart_suggest_use_glossary == o.smart_suggest_use_glossary &&
smart_suggest_use_machine_translation == o.smart_suggest_use_machine_translation
autotranslate_use_translation_memory == o.autotranslate_use_translation_memory
end

# @see the `==` method
Expand All @@ -330,7 +300,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
[name, main_format, media, shares_translation_memory, project_image, remove_project_image, account_id, point_of_contact, source_project_id, workflow, machine_translation_enabled, enable_branching, protect_master_branch, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, zero_plural_form_enabled, autotranslate_enabled, autotranslate_check_new_translation_keys, autotranslate_check_new_uploads, autotranslate_check_new_locales, autotranslate_mark_as_unverified, autotranslate_use_machine_translation, autotranslate_use_translation_memory, smart_suggest_enabled, smart_suggest_use_glossary, smart_suggest_use_machine_translation].hash
[name, main_format, media, shares_translation_memory, project_image, remove_project_image, account_id, point_of_contact, source_project_id, workflow, machine_translation_enabled, enable_branching, protect_master_branch, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, zero_plural_form_enabled, autotranslate_enabled, autotranslate_check_new_translation_keys, autotranslate_check_new_uploads, autotranslate_check_new_locales, autotranslate_mark_as_unverified, autotranslate_use_machine_translation, autotranslate_use_translation_memory].hash
end

# Builds the object from hash
Expand Down
Loading

0 comments on commit d4ac00b

Please sign in to comment.