diff --git a/docs/JobsApi.md b/docs/JobsApi.md index bb938f8..14fd5a3 100644 --- a/docs/JobsApi.md +++ b/docs/JobsApi.md @@ -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 | ids of keys that should added to the job + translation_key_ids: ['inner_example'] # Array | ids of keys that should be removed from the job } begin @@ -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<String>**](String.md)| ids of keys that should added to the job | [optional] + **translation_key_ids** | [**Array<String>**](String.md)| ids of keys that should be removed from the job | [optional] ### Return type diff --git a/docs/KeyCreateParameters.md b/docs/KeyCreateParameters.md index 34ab4e2..9bd4ccd 100644 --- a/docs/KeyCreateParameters.md +++ b/docs/KeyCreateParameters.md @@ -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, diff --git a/docs/KeyUpdateParameters.md b/docs/KeyUpdateParameters.md index 15f2755..6a74dbe 100644 --- a/docs/KeyUpdateParameters.md +++ b/docs/KeyUpdateParameters.md @@ -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, diff --git a/docs/ProjectCreateParameters.md b/docs/ProjectCreateParameters.md index ac964d3..2845b4d 100644 --- a/docs/ProjectCreateParameters.md +++ b/docs/ProjectCreateParameters.md @@ -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. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a> | [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] @@ -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 @@ -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, @@ -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) ``` diff --git a/docs/ProjectUpdateParameters.md b/docs/ProjectUpdateParameters.md index c2d1148..9087adf 100644 --- a/docs/ProjectUpdateParameters.md +++ b/docs/ProjectUpdateParameters.md @@ -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. \"simple\" / \"review\". <a href=\"https://support.phrase.com/hc/en-us/articles/5784094755484\">Read more</a> | [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] @@ -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 @@ -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, @@ -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) ``` diff --git a/docs/ScreenshotUpdateParameters.md b/docs/ScreenshotUpdateParameters.md index 7876203..25c83e9 100644 --- a/docs/ScreenshotUpdateParameters.md +++ b/docs/ScreenshotUpdateParameters.md @@ -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) ``` diff --git a/lib/phrase/api/jobs_api.rb b/lib/phrase/api/jobs_api.rb index 014da95..48829bf 100644 --- a/lib/phrase/api/jobs_api.rb +++ b/lib/phrase/api/jobs_api.rb @@ -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] :translation_key_ids ids of keys that should added to the job + # @option opts [Array] :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) @@ -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] :translation_key_ids ids of keys that should added to the job + # @option opts [Array] :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 diff --git a/lib/phrase/models/project_create_parameters.rb b/lib/phrase/models/project_create_parameters.rb index a66d89e..2b831cf 100644 --- a/lib/phrase/models/project_create_parameters.rb +++ b/lib/phrase/models/project_create_parameters.rb @@ -32,7 +32,7 @@ class ProjectCreateParameters # (Optional) Review Workflow. \"simple\" / \"review\". Read more 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 @@ -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 { @@ -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 @@ -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 @@ -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? @@ -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 @@ -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 diff --git a/lib/phrase/models/project_update_parameters.rb b/lib/phrase/models/project_update_parameters.rb index 70c1029..8c88978 100644 --- a/lib/phrase/models/project_update_parameters.rb +++ b/lib/phrase/models/project_update_parameters.rb @@ -29,7 +29,7 @@ class ProjectUpdateParameters # (Optional) Review Workflow. \"simple\" / \"review\". Read more 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 @@ -68,15 +68,6 @@ class ProjectUpdateParameters # (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 { @@ -101,10 +92,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 @@ -132,10 +120,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 @@ -247,18 +232,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? @@ -300,10 +273,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 @@ -315,7 +285,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [account_id, name, point_of_contact, main_format, media, shares_translation_memory, project_image, remove_project_image, 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 + [account_id, name, point_of_contact, main_format, media, shares_translation_memory, project_image, remove_project_image, 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 diff --git a/spec/api/jobs_api_spec.rb b/spec/api/jobs_api_spec.rb index ab4fd3c..acb3039 100644 --- a/spec/api/jobs_api_spec.rb +++ b/spec/api/jobs_api_spec.rb @@ -87,7 +87,7 @@ # @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] :translation_key_ids ids of keys that should added to the job + # @option opts [Array] :translation_key_ids ids of keys that should be removed from the job # @return [nil] describe 'job_keys_delete test' do it 'should work' do diff --git a/spec/models/project_create_parameters_spec.rb b/spec/models/project_create_parameters_spec.rb index e92da4b..f6e265f 100644 --- a/spec/models/project_create_parameters_spec.rb +++ b/spec/models/project_create_parameters_spec.rb @@ -158,22 +158,4 @@ end end - describe 'test attribute "smart_suggest_enabled"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "smart_suggest_use_glossary"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "smart_suggest_use_machine_translation"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end diff --git a/spec/models/project_update_parameters_spec.rb b/spec/models/project_update_parameters_spec.rb index ff2f2c8..62e1451 100644 --- a/spec/models/project_update_parameters_spec.rb +++ b/spec/models/project_update_parameters_spec.rb @@ -152,22 +152,4 @@ end end - describe 'test attribute "smart_suggest_enabled"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "smart_suggest_use_glossary"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "smart_suggest_use_machine_translation"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - end