Skip to content

Commit ef38470

Browse files
author
Phrase
committed
1 parent 4a7e999 commit ef38470

File tree

7 files changed

+10
-5
lines changed

7 files changed

+10
-5
lines changed

docs/KeyCreateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
3838
data_type: number,
3939
tags: awesome-feature,needs-proofreading,
4040
max_characters_allowed: 140,
41-
screenshot: [B@3e6b4f51,
41+
screenshot: [B@307b954,
4242
remove_screenshot: null,
4343
unformatted: null,
4444
default_translation_content: Default translation content,

docs/KeyUpdateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
3636
data_type: number,
3737
tags: awesome-feature,needs-proofreading,
3838
max_characters_allowed: 140,
39-
screenshot: [B@3ca07d9,
39+
screenshot: [B@52fd6b76,
4040
remove_screenshot: null,
4141
unformatted: null,
4242
xml_space_preserve: null,

docs/ProjectCreateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
3737
main_format: yml,
3838
media: Python,
3939
shares_translation_memory: true,
40-
project_image: [B@298517d1,
40+
project_image: [B@3feafba2,
4141
remove_project_image: null,
4242
account_id: abcd1234,
4343
point_of_contact: abcd1234,

docs/ProjectUpdateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
3939
main_format: yml,
4040
media: Python,
4141
shares_translation_memory: true,
42-
project_image: [B@3a00f386,
42+
project_image: [B@602621bb,
4343
remove_project_image: false,
4444
workflow: review,
4545
machine_translation_enabled: true,

docs/ScreenshotUpdateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require 'Phrase'
1717
instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
1818
name: A screenshot name,
1919
description: A screenshot description,
20-
filename: [B@3f51fcf5)
20+
filename: [B@6bd87866)
2121
```
2222

2323

docs/UploadsApi.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ opts = {
4444
branch: 'branch_example', # String | specify the branch to use
4545
tags: 'tags_example', # String | List of tags separated by comma to be associated with the new keys contained in the upload.
4646
update_translations: true, # Boolean | Indicates whether existing translations should be updated with the file content.
47+
update_custom_metadata: true, # Boolean | Indicates whether existing custom metadata properties should be updated with the file content
4748
update_translation_keys: true, # Boolean | Pass `false` here to prevent new keys from being created and existing keys updated.
4849
update_translations_on_source_match: true, # Boolean | Update target translations only if the source translations of the uploaded multilingual file match the stored translations.
4950
update_descriptions: true, # Boolean | Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -82,6 +83,7 @@ Name | Type | Description | Notes
8283
**branch** | **String**| specify the branch to use | [optional]
8384
**tags** | **String**| List of tags separated by comma to be associated with the new keys contained in the upload. | [optional]
8485
**update_translations** | **Boolean**| Indicates whether existing translations should be updated with the file content. | [optional]
86+
**update_custom_metadata** | **Boolean**| Indicates whether existing custom metadata properties should be updated with the file content | [optional] [default to true]
8587
**update_translation_keys** | **Boolean**| Pass `false` here to prevent new keys from being created and existing keys updated. | [optional] [default to true]
8688
**update_translations_on_source_match** | **Boolean**| Update target translations only if the source translations of the uploaded multilingual file match the stored translations. | [optional] [default to false]
8789
**update_descriptions** | **Boolean**| Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions. | [optional]

lib/phrase/api/uploads_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ def initialize(api_client = ApiClient.default)
1818
# @option opts [String] :branch specify the branch to use
1919
# @option opts [String] :tags List of tags separated by comma to be associated with the new keys contained in the upload.
2020
# @option opts [Boolean] :update_translations Indicates whether existing translations should be updated with the file content.
21+
# @option opts [Boolean] :update_custom_metadata Indicates whether existing custom metadata properties should be updated with the file content (default to true)
2122
# @option opts [Boolean] :update_translation_keys Pass `false` here to prevent new keys from being created and existing keys updated. (default to true)
2223
# @option opts [Boolean] :update_translations_on_source_match Update target translations only if the source translations of the uploaded multilingual file match the stored translations. (default to false)
2324
# @option opts [Boolean] :update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -49,6 +50,7 @@ def upload_create(project_id, file, file_format, locale_id, opts = {})
4950
# @option opts [String] :branch specify the branch to use
5051
# @option opts [String] :tags List of tags separated by comma to be associated with the new keys contained in the upload.
5152
# @option opts [Boolean] :update_translations Indicates whether existing translations should be updated with the file content.
53+
# @option opts [Boolean] :update_custom_metadata Indicates whether existing custom metadata properties should be updated with the file content
5254
# @option opts [Boolean] :update_translation_keys Pass `false` here to prevent new keys from being created and existing keys updated.
5355
# @option opts [Boolean] :update_translations_on_source_match Update target translations only if the source translations of the uploaded multilingual file match the stored translations.
5456
# @option opts [Boolean] :update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -106,6 +108,7 @@ def upload_create_with_http_info(project_id, file, file_format, locale_id, opts
106108
form_params['branch'] = opts[:'branch'] if !opts[:'branch'].nil?
107109
form_params['tags'] = opts[:'tags'] if !opts[:'tags'].nil?
108110
form_params['update_translations'] = opts[:'update_translations'] if !opts[:'update_translations'].nil?
111+
form_params['update_custom_metadata'] = opts[:'update_custom_metadata'] if !opts[:'update_custom_metadata'].nil?
109112
form_params['update_translation_keys'] = opts[:'update_translation_keys'] if !opts[:'update_translation_keys'].nil?
110113
form_params['update_translations_on_source_match'] = opts[:'update_translations_on_source_match'] if !opts[:'update_translations_on_source_match'].nil?
111114
form_params['update_descriptions'] = opts[:'update_descriptions'] if !opts[:'update_descriptions'].nil?

0 commit comments

Comments
 (0)