Skip to content

Commit 128f1e8

Browse files
author
Phrase
committed
1 parent cc6c4b1 commit 128f1e8

File tree

10 files changed

+29
-7
lines changed

10 files changed

+29
-7
lines changed

docs/JobDetails.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
1616
**updated_at** | **Time** | | [optional]
1717
**owner** | [**UserPreview**](UserPreview.md) | | [optional]
1818
**job_tag_name** | **String** | | [optional]
19+
**source_translations_updated_at** | **Time** | | [optional]
1920
**source_locale** | [**LocalePreview**](LocalePreview.md) | | [optional]
2021
**locales** | [**Array<LocalePreview>**](LocalePreview.md) | | [optional]
2122
**keys** | [**Array<KeyPreview>**](KeyPreview.md) | | [optional]
@@ -37,6 +38,7 @@ instance = Phrase::JobDetails.new(id: null,
3738
updated_at: null,
3839
owner: null,
3940
job_tag_name: null,
41+
source_translations_updated_at: null,
4042
source_locale: null,
4143
locales: null,
4244
keys: null)

docs/KeyCreateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
3636
data_type: number,
3737
tags: awesome-feature,needs-proofreading,
3838
max_characters_allowed: 140,
39-
screenshot: [B@74889ebe,
39+
screenshot: [B@3bf47d1e,
4040
remove_screenshot: null,
4141
unformatted: null,
4242
default_translation_content: Default translation content,

docs/KeyUpdateParameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
3434
data_type: number,
3535
tags: awesome-feature,needs-proofreading,
3636
max_characters_allowed: 140,
37-
screenshot: [B@7f52aba0,
37+
screenshot: [B@2956985b,
3838
remove_screenshot: null,
3939
unformatted: null,
4040
xml_space_preserve: null,

docs/LocalesApi.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ opts = {
255255
source_locale_id: 'source_locale_id_example', # String | Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a <code>tag</code> parameter indicating a specific job.
256256
translation_key_prefix: 'prefix_', # String | Download all translation keys, and remove the specified prefix where possible. Warning: this may create duplicate key names if other keys share the same name after the prefix is removed.
257257
filter_by_prefix: true, # Boolean | Only download translation keys containing the specified prefix, and remove the prefix from the generated file.
258-
custom_metadata_filters: { key: 3.56} # Object | Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
258+
custom_metadata_filters: { key: 3.56}, # Object | Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
259+
locale_ids: ['inner_example'] # Array<String> | Locale IDs or locale names
259260
}
260261

261262
begin
@@ -296,6 +297,7 @@ Name | Type | Description | Notes
296297
**translation_key_prefix** | **String**| Download all translation keys, and remove the specified prefix where possible. Warning: this may create duplicate key names if other keys share the same name after the prefix is removed. | [optional]
297298
**filter_by_prefix** | **Boolean**| Only download translation keys containing the specified prefix, and remove the prefix from the generated file. | [optional]
298299
**custom_metadata_filters** | [**Object**](.md)| Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download. | [optional]
300+
**locale_ids** | [**Array&lt;String&gt;**](String.md)| Locale IDs or locale names | [optional]
299301

300302
### Return type
301303

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@44ee788f,
40+
project_image: [B@30ab1b4f,
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@394642e5,
42+
project_image: [B@2a670af9,
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@4395bc43)
20+
filename: [B@536d655f)
2121
```
2222

2323

lib/phrase/api/locales_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def locale_delete_with_http_info(project_id, id, opts = {})
253253
# @option opts [String] :translation_key_prefix Download all translation keys, and remove the specified prefix where possible. Warning: this may create duplicate key names if other keys share the same name after the prefix is removed.
254254
# @option opts [Boolean] :filter_by_prefix Only download translation keys containing the specified prefix, and remove the prefix from the generated file.
255255
# @option opts [Object] :custom_metadata_filters Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
256+
# @option opts [Array<String>] :locale_ids Locale IDs or locale names
256257
# @return [File]
257258
def locale_download(project_id, id, opts = {})
258259
data, _status_code, _headers = locale_download_with_http_info(project_id, id, opts)
@@ -286,6 +287,7 @@ def locale_download(project_id, id, opts = {})
286287
# @option opts [String] :translation_key_prefix Download all translation keys, and remove the specified prefix where possible. Warning: this may create duplicate key names if other keys share the same name after the prefix is removed.
287288
# @option opts [Boolean] :filter_by_prefix Only download translation keys containing the specified prefix, and remove the prefix from the generated file.
288289
# @option opts [Object] :custom_metadata_filters Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
290+
# @option opts [Array<String>] :locale_ids Locale IDs or locale names
289291
# @return [Array<(Response<(File)>, Integer, Hash)>] Response<(File)> data, response status code and response headers
290292
def locale_download_with_http_info(project_id, id, opts = {})
291293
if @api_client.config.debugging
@@ -323,6 +325,7 @@ def locale_download_with_http_info(project_id, id, opts = {})
323325
query_params[:'translation_key_prefix'] = opts[:'translation_key_prefix'] if !opts[:'translation_key_prefix'].nil?
324326
query_params[:'filter_by_prefix'] = opts[:'filter_by_prefix'] if !opts[:'filter_by_prefix'].nil?
325327
query_params[:'custom_metadata_filters'] = opts[:'custom_metadata_filters'] if !opts[:'custom_metadata_filters'].nil?
328+
query_params[:'locale_ids'] = @api_client.build_collection_param(opts[:'locale_ids'], :multi) if !opts[:'locale_ids'].nil?
326329

327330
# header parameters
328331
header_params = opts[:header_params] || {}

lib/phrase/models/job_details.rb

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class JobDetails
2626

2727
attr_accessor :job_tag_name
2828

29+
attr_accessor :source_translations_updated_at
30+
2931
attr_accessor :source_locale
3032

3133
attr_accessor :locales
@@ -47,6 +49,7 @@ def self.attribute_map
4749
:'updated_at' => :'updated_at',
4850
:'owner' => :'owner',
4951
:'job_tag_name' => :'job_tag_name',
52+
:'source_translations_updated_at' => :'source_translations_updated_at',
5053
:'source_locale' => :'source_locale',
5154
:'locales' => :'locales',
5255
:'keys' => :'keys'
@@ -68,6 +71,7 @@ def self.openapi_types
6871
:'updated_at' => :'DateTime',
6972
:'owner' => :'UserPreview',
7073
:'job_tag_name' => :'String',
74+
:'source_translations_updated_at' => :'DateTime',
7175
:'source_locale' => :'LocalePreview',
7276
:'locales' => :'Array<LocalePreview>',
7377
:'keys' => :'Array<KeyPreview>'
@@ -151,6 +155,10 @@ def initialize(attributes = {})
151155
self.job_tag_name = attributes[:'job_tag_name']
152156
end
153157

158+
if attributes.key?(:'source_translations_updated_at')
159+
self.source_translations_updated_at = attributes[:'source_translations_updated_at']
160+
end
161+
154162
if attributes.key?(:'source_locale')
155163
self.source_locale = attributes[:'source_locale']
156164
end
@@ -198,6 +206,7 @@ def ==(o)
198206
updated_at == o.updated_at &&
199207
owner == o.owner &&
200208
job_tag_name == o.job_tag_name &&
209+
source_translations_updated_at == o.source_translations_updated_at &&
201210
source_locale == o.source_locale &&
202211
locales == o.locales &&
203212
keys == o.keys
@@ -212,7 +221,7 @@ def eql?(o)
212221
# Calculates hash code according to all attributes.
213222
# @return [Integer] Hash code
214223
def hash
215-
[id, name, briefing, due_date, state, ticket_url, project, branch, created_at, updated_at, owner, job_tag_name, source_locale, locales, keys].hash
224+
[id, name, briefing, due_date, state, ticket_url, project, branch, created_at, updated_at, owner, job_tag_name, source_translations_updated_at, source_locale, locales, keys].hash
216225
end
217226

218227
# Builds the object from hash

spec/models/job_details_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@
9292
end
9393
end
9494

95+
describe 'test attribute "source_translations_updated_at"' do
96+
it 'should work' do
97+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98+
end
99+
end
100+
95101
describe 'test attribute "source_locale"' do
96102
it 'should work' do
97103
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers

0 commit comments

Comments
 (0)