phrase 4.17.0 → 4.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +3 -3
  4. data/docs/JobCreateParameters.md +3 -1
  5. data/docs/JobTemplateCreateParameters.md +5 -1
  6. data/docs/JobTemplateUpdateParameters.md +5 -1
  7. data/docs/JobUpdateParameters.md +3 -1
  8. data/docs/KeyCreateParameters.md +1 -1
  9. data/docs/KeyUpdateParameters.md +1 -1
  10. data/docs/OrganizationJobTemplateCreateParameters.md +3 -1
  11. data/docs/OrganizationJobTemplateUpdateParameters.md +3 -1
  12. data/docs/ProjectCreateParameters.md +6 -2
  13. data/docs/ProjectDetails.md +7 -1
  14. data/docs/ProjectUpdateParameters.md +6 -2
  15. data/docs/RepoSyncExportParameters.md +3 -1
  16. data/docs/RepoSyncImportParameters.md +3 -1
  17. data/docs/RepoSyncsApi.md +0 -2
  18. data/docs/ScreenshotUpdateParameters.md +1 -1
  19. data/docs/Upload.md +2 -0
  20. data/lib/phrase/api/repo_syncs_api.rb +0 -3
  21. data/lib/phrase/models/job_create_parameters.rb +14 -4
  22. data/lib/phrase/models/job_template_create_parameters.rb +24 -4
  23. data/lib/phrase/models/job_template_update_parameters.rb +24 -4
  24. data/lib/phrase/models/job_update_parameters.rb +14 -4
  25. data/lib/phrase/models/organization_job_template_create_parameters.rb +14 -4
  26. data/lib/phrase/models/organization_job_template_update_parameters.rb +14 -4
  27. data/lib/phrase/models/project_create_parameters.rb +26 -4
  28. data/lib/phrase/models/project_details.rb +33 -4
  29. data/lib/phrase/models/project_update_parameters.rb +26 -4
  30. data/lib/phrase/models/repo_sync_export_parameters.rb +14 -4
  31. data/lib/phrase/models/repo_sync_import_parameters.rb +14 -4
  32. data/lib/phrase/models/upload.rb +10 -1
  33. data/lib/phrase/version.rb +1 -1
  34. data/spec/api/repo_syncs_api_spec.rb +0 -1
  35. data/spec/models/job_create_parameters_spec.rb +6 -0
  36. data/spec/models/job_template_create_parameters_spec.rb +12 -0
  37. data/spec/models/job_template_update_parameters_spec.rb +12 -0
  38. data/spec/models/job_update_parameters_spec.rb +6 -0
  39. data/spec/models/organization_job_template_create_parameters_spec.rb +6 -0
  40. data/spec/models/organization_job_template_update_parameters_spec.rb +6 -0
  41. data/spec/models/project_create_parameters_spec.rb +12 -0
  42. data/spec/models/project_details_spec.rb +18 -0
  43. data/spec/models/project_update_parameters_spec.rb +12 -0
  44. data/spec/models/repo_sync_export_parameters_spec.rb +6 -0
  45. data/spec/models/repo_sync_import_parameters_spec.rb +6 -0
  46. data/spec/models/upload_spec.rb +6 -0
  47. metadata +243 -243
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08077d46ce75e5473b235035e6a39605824a5ee455edd4f4d21dbbef92e96d23'
4
- data.tar.gz: 228ec9995b234a3c29c0e3efa78c8a522a3a670c968cb0116f3170c7e6031fdf
3
+ metadata.gz: a5887032300f5f511acd9941e2c3cdb27068ca862f88e50256528c9f70cd038b
4
+ data.tar.gz: de293414b2f0c83ea0db4e5b6473d531dc45229496953464b394213cca9b223f
5
5
  SHA512:
6
- metadata.gz: 22d1542116e134c0537d99e006858f71111de1a343e9a48347e98df258be6ba0a064a418eecde0b4fa6b2c4ca718112e8d6e0dfbd8530bb968d3e3fcabb0fd0b
7
- data.tar.gz: b157be4058377c078a68fcfae6c7b14002c7ee8c2e5551f107d1f277594dc84d19c31d2e20503499dfc62212a776a8f8aae2ca6188e1519cd4c9a72f1098927f
6
+ metadata.gz: c8fccb4f2bd2d414e101515d4afc1fc68672263fc46190216cda9cf5b39cf948afb644d375f8fdbbe50f047f5a1bbc7760e3de08789a00d8e9035b75685f4570
7
+ data.tar.gz: 73a0cddc1a29a61236bdc8345a692f4412580465eb29d6a64275d4228dcf2dea2bd87bc0ac1efa9f3c22229cc32f6f6aaeddc0f5fbc80c181d5ec5f2206803de
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.19.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.18.0...ruby-v4.19.0) (2026-04-14)
4
+
5
+
6
+ ### Features
7
+
8
+ * **API:** Add source_locale_id to job templates create/update ([#1099](https://github.com/phrase/strings-openapi/issues/1099)) ([91be019](https://github.com/phrase/strings-openapi/commit/91be0196e2777e3a9ad1065556ac357f887f04e3))
9
+ * **API:** Include user in uploads [SCD-857] ([#1089](https://github.com/phrase/strings-openapi/issues/1089)) ([393f47a](https://github.com/phrase/strings-openapi/commit/393f47a789a526f74d33ca8d3991035872437c43))
10
+
11
+ ## [4.18.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.17.0...ruby-v4.18.0) (2026-04-02)
12
+
13
+
14
+ ### Features
15
+
16
+ * **API:** Add missing project & job params ([#1065](https://github.com/phrase/strings-openapi/issues/1065)) ([0df6013](https://github.com/phrase/strings-openapi/commit/0df6013f919fdb763c15a1192372e1e5dc743a58))
17
+ * **API:** Extend exposed project settings ([#1071](https://github.com/phrase/strings-openapi/issues/1071)) ([b93ce3b](https://github.com/phrase/strings-openapi/commit/b93ce3be6194f8e7df2170aa3bab6c6d0578d7ec))
18
+ * **API:** RepoSync export: optional branch parameter ([#1050](https://github.com/phrase/strings-openapi/issues/1050)) ([07b3182](https://github.com/phrase/strings-openapi/commit/07b31825bfa648d7c7578c86a31c2dd31583090d))
19
+
3
20
  ## [4.17.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.16.1...ruby-v4.17.0) (2026-03-13)
4
21
 
5
22
 
data/README.md CHANGED
@@ -7,7 +7,7 @@ Phrase Strings is a translation management platform for software projects. You c
7
7
  ## This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 4.17.0
10
+ - Package version: 4.19.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://developers.phrase.com/api/](https://developers.phrase.com/api/)
13
13
 
@@ -56,10 +56,10 @@ gem build phrase.gemspec
56
56
  Then install the gem locally:
57
57
 
58
58
  ```shell
59
- gem install ./phrase-4.17.0.gem
59
+ gem install ./phrase-4.19.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.17.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.19.0.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **tags** | **Array<String>** | tags of keys that should be included within the job | [optional]
14
14
  **translation_key_ids** | **Array<String>** | ids of keys that should be included within the job | [optional]
15
15
  **job_template_id** | **String** | id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes. | [optional]
16
+ **autotranslate** | **Boolean** | Automatically translate the job using machine translation. | [optional]
16
17
 
17
18
  ## Code Sample
18
19
 
@@ -27,7 +28,8 @@ instance = Phrase::JobCreateParameters.new(branch: my-feature-branch,
27
28
  ticket_url: https://example.atlassian.net/browse/FOO,
28
29
  tags: ["myUploadTag"],
29
30
  translation_key_ids: ["abcd1234cdef1234abcd1234cdef1234"],
30
- job_template_id: abcd1234cdef1234abcd1234cdef1234)
31
+ job_template_id: abcd1234cdef1234abcd1234cdef1234,
32
+ autotranslate: true)
31
33
  ```
32
34
 
33
35
 
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
8
  **name** | **String** | Job template name |
9
9
  **briefing** | **String** | Briefing for the translators | [optional]
10
+ **autotranslate** | **Boolean** | Automatically translate the job using machine translation. | [optional]
11
+ **source_locale_id** | **String** | The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used. | [optional]
10
12
 
11
13
  ## Code Sample
12
14
 
@@ -15,7 +17,9 @@ require 'Phrase'
15
17
 
16
18
  instance = Phrase::JobTemplateCreateParameters.new(branch: my-feature-branch,
17
19
  name: template,
18
- briefing: text)
20
+ briefing: text,
21
+ autotranslate: true,
22
+ source_locale_id: abcd1234cdef1234abcd1234cdef1234)
19
23
  ```
20
24
 
21
25
 
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
7
7
  **branch** | **String** | specify the branch to use | [optional]
8
8
  **name** | **String** | Job template name |
9
9
  **briefing** | **String** | Briefing for the translators | [optional]
10
+ **autotranslate** | **Boolean** | Automatically translate the job using machine translation. | [optional]
11
+ **source_locale_id** | **String** | The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used. | [optional]
10
12
 
11
13
  ## Code Sample
12
14
 
@@ -15,7 +17,9 @@ require 'Phrase'
15
17
 
16
18
  instance = Phrase::JobTemplateUpdateParameters.new(branch: my-feature-branch,
17
19
  name: template,
18
- briefing: text)
20
+ briefing: text,
21
+ autotranslate: true,
22
+ source_locale_id: abcd1234cdef1234abcd1234cdef1234)
19
23
  ```
20
24
 
21
25
 
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **briefing** | **String** | Briefing for the translators | [optional]
10
10
  **due_date** | **Time** | Date the job should be finished | [optional]
11
11
  **ticket_url** | **String** | URL to a ticket for this job (e.g. Jira, Trello) | [optional]
12
+ **autotranslate** | **Boolean** | Automatically translate the job using machine translation | [optional]
12
13
 
13
14
  ## Code Sample
14
15
 
@@ -19,7 +20,8 @@ instance = Phrase::JobUpdateParameters.new(branch: my-feature-branch,
19
20
  name: de,
20
21
  briefing: de-DE,
21
22
  due_date: null,
22
- ticket_url: https://example.atlassian.net/browse/FOO)
23
+ ticket_url: https://example.atlassian.net/browse/FOO,
24
+ autotranslate: true)
23
25
  ```
24
26
 
25
27
 
@@ -38,7 +38,7 @@ instance = Phrase::KeyCreateParameters.new(branch: my-feature-branch,
38
38
  data_type: number,
39
39
  tags: awesome-feature,needs-proofreading,
40
40
  max_characters_allowed: 140,
41
- screenshot: [B@34a2e10c,
41
+ screenshot: [B@3693deae,
42
42
  remove_screenshot: null,
43
43
  unformatted: null,
44
44
  default_translation_content: Default translation content,
@@ -36,7 +36,7 @@ instance = Phrase::KeyUpdateParameters.new(branch: my-feature-branch,
36
36
  data_type: number,
37
37
  tags: awesome-feature,needs-proofreading,
38
38
  max_characters_allowed: 140,
39
- screenshot: [B@6e32eea5,
39
+ screenshot: [B@6f3af541,
40
40
  remove_screenshot: null,
41
41
  unformatted: null,
42
42
  xml_space_preserve: null,
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | Job template name |
8
8
  **briefing** | **String** | Briefing for the translators | [optional]
9
+ **autotranslate** | **Boolean** | Automatically translate the job using machine translation. | [optional]
9
10
 
10
11
  ## Code Sample
11
12
 
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
13
14
  require 'Phrase'
14
15
 
15
16
  instance = Phrase::OrganizationJobTemplateCreateParameters.new(name: template,
16
- briefing: text)
17
+ briefing: text,
18
+ autotranslate: true)
17
19
  ```
18
20
 
19
21
 
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **name** | **String** | Job template name |
8
8
  **briefing** | **String** | Briefing for the translators | [optional]
9
+ **autotranslate** | **Boolean** | Automatically translate the job using machine translation. | [optional]
9
10
 
10
11
  ## Code Sample
11
12
 
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
13
14
  require 'Phrase'
14
15
 
15
16
  instance = Phrase::OrganizationJobTemplateUpdateParameters.new(name: template,
16
- briefing: text)
17
+ briefing: text,
18
+ autotranslate: true)
17
19
  ```
18
20
 
19
21
 
@@ -27,6 +27,8 @@ Name | Type | Description | Notes
27
27
  **autotranslate_mark_as_unverified** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
28
28
  **autotranslate_use_machine_translation** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
29
29
  **autotranslate_use_translation_memory** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
30
+ **autotranslate_overwrite_unverified_translations** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
31
+ **placeholder_styles** | **Array<String>** | (Optional) List of placeholder styles enabled for the project. | [optional]
30
32
 
31
33
  ## Code Sample
32
34
 
@@ -37,7 +39,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
37
39
  main_format: yml,
38
40
  media: Python,
39
41
  shares_translation_memory: true,
40
- project_image: [B@753bfb4b,
42
+ project_image: [B@39a54d70,
41
43
  remove_project_image: null,
42
44
  account_id: abcd1234,
43
45
  point_of_contact: abcd1234,
@@ -55,7 +57,9 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
55
57
  autotranslate_check_new_locales: true,
56
58
  autotranslate_mark_as_unverified: true,
57
59
  autotranslate_use_machine_translation: true,
58
- autotranslate_use_translation_memory: true)
60
+ autotranslate_use_translation_memory: true,
61
+ autotranslate_overwrite_unverified_translations: true,
62
+ placeholder_styles: ["angular","iOS"])
59
63
  ```
60
64
 
61
65
 
@@ -30,6 +30,9 @@ Name | Type | Description | Notes
30
30
  **autotranslate_use_machine_translation** | **Boolean** | | [optional]
31
31
  **autotranslate_use_translation_memory** | **Boolean** | | [optional]
32
32
  **default_encoding** | **String** | | [optional]
33
+ **cldr_version** | **String** | | [optional]
34
+ **job_locking_enabled** | **Boolean** | | [optional]
35
+ **placeholder_styles** | **Array<String>** | | [optional]
33
36
 
34
37
  ## Code Sample
35
38
 
@@ -61,7 +64,10 @@ instance = Phrase::ProjectDetails.new(id: null,
61
64
  autotranslate_mark_as_unverified: false,
62
65
  autotranslate_use_machine_translation: false,
63
66
  autotranslate_use_translation_memory: true,
64
- default_encoding: UTF-8)
67
+ default_encoding: UTF-8,
68
+ cldr_version: legacy,
69
+ job_locking_enabled: false,
70
+ placeholder_styles: ["angular","iOS"])
65
71
  ```
66
72
 
67
73
 
@@ -26,7 +26,9 @@ Name | Type | Description | Notes
26
26
  **autotranslate_mark_as_unverified** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
27
27
  **autotranslate_use_machine_translation** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
28
28
  **autotranslate_use_translation_memory** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
29
+ **autotranslate_overwrite_unverified_translations** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
29
30
  **default_encoding** | **String** | (Optional) Sets the default encoding for Uploads. If you leave it empty, we will try to guess it automatically for you when you Upload a file. You can still override this value by setting the [`file_encoding`](/en/api/strings/uploads/upload-a-new-file) parameter for Uploads. | [optional]
31
+ **placeholder_styles** | **Array<String>** | (Optional) List of placeholder styles enabled for the project. | [optional]
30
32
 
31
33
  ## Code Sample
32
34
 
@@ -39,7 +41,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
39
41
  main_format: yml,
40
42
  media: Python,
41
43
  shares_translation_memory: true,
42
- project_image: [B@77d5a3ee,
44
+ project_image: [B@39b5d60,
43
45
  remove_project_image: false,
44
46
  workflow: review,
45
47
  machine_translation_enabled: true,
@@ -55,7 +57,9 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
55
57
  autotranslate_mark_as_unverified: true,
56
58
  autotranslate_use_machine_translation: true,
57
59
  autotranslate_use_translation_memory: true,
58
- default_encoding: UTF-8)
60
+ autotranslate_overwrite_unverified_translations: true,
61
+ default_encoding: UTF-8,
62
+ placeholder_styles: ["angular","iOS"])
59
63
  ```
60
64
 
61
65
 
@@ -5,13 +5,15 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **pr_branch** | **String** | Source branch to open a pull request from | [optional]
8
+ **branch** | **String** | Strings branch to export from | [optional]
8
9
 
9
10
  ## Code Sample
10
11
 
11
12
  ```ruby
12
13
  require 'Phrase'
13
14
 
14
- instance = Phrase::RepoSyncExportParameters.new(pr_branch: my-feature-branch)
15
+ instance = Phrase::RepoSyncExportParameters.new(pr_branch: my-feature-branch,
16
+ branch: my-strings-branch)
15
17
  ```
16
18
 
17
19
 
@@ -5,13 +5,15 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **repository_branch** | **String** | Branch to import from | [optional]
8
+ **branch** | **String** | Strings branch to import to | [optional]
8
9
 
9
10
  ## Code Sample
10
11
 
11
12
  ```ruby
12
13
  require 'Phrase'
13
14
 
14
- instance = Phrase::RepoSyncImportParameters.new(repository_branch: my-feature-branch)
15
+ instance = Phrase::RepoSyncImportParameters.new(repository_branch: my-feature-branch,
16
+ branch: my-strings-branch)
15
17
  ```
16
18
 
17
19
 
data/docs/RepoSyncsApi.md CHANGED
@@ -233,7 +233,6 @@ account_id = 'account_id_example' # String | Account ID
233
233
  id = 'id_example' # String | ID
234
234
  opts = {
235
235
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
236
- branch: 'my-feature-branch', # String | Branch to use
237
236
  repo_sync_import_parameters: Phrase::RepoSyncImportParameters.new # RepoSyncImportParameters |
238
237
  }
239
238
 
@@ -254,7 +253,6 @@ Name | Type | Description | Notes
254
253
  **account_id** | **String**| Account ID |
255
254
  **id** | **String**| ID |
256
255
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
257
- **branch** | **String**| Branch to use | [optional]
258
256
  **repo_sync_import_parameters** | [**RepoSyncImportParameters**](RepoSyncImportParameters.md)| | [optional]
259
257
 
260
258
  ### Return type
@@ -17,7 +17,7 @@ require 'Phrase'
17
17
  instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
18
18
  name: A screenshot name,
19
19
  description: A screenshot description,
20
- filename: [B@1ee9a039)
20
+ filename: [B@254ed9ba)
21
21
  ```
22
22
 
23
23
 
data/docs/Upload.md CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **tag** | **String** | Unique tag of the upload | [optional]
12
12
  **tags** | **Array<String>** | List of tags that were assigned to the uploaded keys | [optional]
13
13
  **url** | **String** | The URL to the upload in Phrase Strings app. | [optional]
14
+ **user** | [**UserPreview**](.md) | | [optional]
14
15
  **summary** | [**UploadSummary**](UploadSummary.md) | | [optional]
15
16
  **created_at** | **Time** | | [optional]
16
17
  **updated_at** | **Time** | | [optional]
@@ -27,6 +28,7 @@ instance = Phrase::Upload.new(id: null,
27
28
  tag: null,
28
29
  tags: null,
29
30
  url: null,
31
+ user: null,
30
32
  summary: null,
31
33
  created_at: null,
32
34
  updated_at: null)
@@ -233,7 +233,6 @@ module Phrase
233
233
  # @param id [String] ID
234
234
  # @param [Hash] opts the optional parameters
235
235
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
236
- # @option opts [String] :branch Branch to use
237
236
  # @option opts [RepoSyncImportParameters] :repo_sync_import_parameters
238
237
  # @return [RepoSyncEvent]
239
238
  def repo_sync_import(account_id, id, opts = {})
@@ -247,7 +246,6 @@ module Phrase
247
246
  # @param id [String] ID
248
247
  # @param [Hash] opts the optional parameters
249
248
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
250
- # @option opts [String] :branch Branch to use
251
249
  # @option opts [RepoSyncImportParameters] :repo_sync_import_parameters
252
250
  # @return [Array<(Response<(RepoSyncEvent)>, Integer, Hash)>] Response<(RepoSyncEvent)> data, response status code and response headers
253
251
  def repo_sync_import_with_http_info(account_id, id, opts = {})
@@ -267,7 +265,6 @@ module Phrase
267
265
 
268
266
  # query parameters
269
267
  query_params = opts[:query_params] || {}
270
- query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
271
268
 
272
269
  # header parameters
273
270
  header_params = opts[:header_params] || {}
@@ -29,6 +29,9 @@ module Phrase
29
29
  # id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes.
30
30
  attr_accessor :job_template_id
31
31
 
32
+ # Automatically translate the job using machine translation.
33
+ attr_accessor :autotranslate
34
+
32
35
  # Attribute mapping from ruby-style variable name to JSON key.
33
36
  def self.attribute_map
34
37
  {
@@ -40,7 +43,8 @@ module Phrase
40
43
  :'ticket_url' => :'ticket_url',
41
44
  :'tags' => :'tags',
42
45
  :'translation_key_ids' => :'translation_key_ids',
43
- :'job_template_id' => :'job_template_id'
46
+ :'job_template_id' => :'job_template_id',
47
+ :'autotranslate' => :'autotranslate'
44
48
  }
45
49
  end
46
50
 
@@ -55,7 +59,8 @@ module Phrase
55
59
  :'ticket_url' => :'String',
56
60
  :'tags' => :'Array<String>',
57
61
  :'translation_key_ids' => :'Array<String>',
58
- :'job_template_id' => :'String'
62
+ :'job_template_id' => :'String',
63
+ :'autotranslate' => :'Boolean'
59
64
  }
60
65
  end
61
66
 
@@ -120,6 +125,10 @@ module Phrase
120
125
  if attributes.key?(:'job_template_id')
121
126
  self.job_template_id = attributes[:'job_template_id']
122
127
  end
128
+
129
+ if attributes.key?(:'autotranslate')
130
+ self.autotranslate = attributes[:'autotranslate']
131
+ end
123
132
  end
124
133
 
125
134
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -153,7 +162,8 @@ module Phrase
153
162
  ticket_url == o.ticket_url &&
154
163
  tags == o.tags &&
155
164
  translation_key_ids == o.translation_key_ids &&
156
- job_template_id == o.job_template_id
165
+ job_template_id == o.job_template_id &&
166
+ autotranslate == o.autotranslate
157
167
  end
158
168
 
159
169
  # @see the `==` method
@@ -165,7 +175,7 @@ module Phrase
165
175
  # Calculates hash code according to all attributes.
166
176
  # @return [Integer] Hash code
167
177
  def hash
168
- [branch, name, source_locale_id, briefing, due_date, ticket_url, tags, translation_key_ids, job_template_id].hash
178
+ [branch, name, source_locale_id, briefing, due_date, ticket_url, tags, translation_key_ids, job_template_id, autotranslate].hash
169
179
  end
170
180
 
171
181
  # Builds the object from hash
@@ -11,12 +11,20 @@ module Phrase
11
11
  # Briefing for the translators
12
12
  attr_accessor :briefing
13
13
 
14
+ # Automatically translate the job using machine translation.
15
+ attr_accessor :autotranslate
16
+
17
+ # The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.
18
+ attr_accessor :source_locale_id
19
+
14
20
  # Attribute mapping from ruby-style variable name to JSON key.
15
21
  def self.attribute_map
16
22
  {
17
23
  :'branch' => :'branch',
18
24
  :'name' => :'name',
19
- :'briefing' => :'briefing'
25
+ :'briefing' => :'briefing',
26
+ :'autotranslate' => :'autotranslate',
27
+ :'source_locale_id' => :'source_locale_id'
20
28
  }
21
29
  end
22
30
 
@@ -25,7 +33,9 @@ module Phrase
25
33
  {
26
34
  :'branch' => :'String',
27
35
  :'name' => :'String',
28
- :'briefing' => :'String'
36
+ :'briefing' => :'String',
37
+ :'autotranslate' => :'Boolean',
38
+ :'source_locale_id' => :'String'
29
39
  }
30
40
  end
31
41
 
@@ -61,6 +71,14 @@ module Phrase
61
71
  if attributes.key?(:'briefing')
62
72
  self.briefing = attributes[:'briefing']
63
73
  end
74
+
75
+ if attributes.key?(:'autotranslate')
76
+ self.autotranslate = attributes[:'autotranslate']
77
+ end
78
+
79
+ if attributes.key?(:'source_locale_id')
80
+ self.source_locale_id = attributes[:'source_locale_id']
81
+ end
64
82
  end
65
83
 
66
84
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,7 +106,9 @@ module Phrase
88
106
  self.class == o.class &&
89
107
  branch == o.branch &&
90
108
  name == o.name &&
91
- briefing == o.briefing
109
+ briefing == o.briefing &&
110
+ autotranslate == o.autotranslate &&
111
+ source_locale_id == o.source_locale_id
92
112
  end
93
113
 
94
114
  # @see the `==` method
@@ -100,7 +120,7 @@ module Phrase
100
120
  # Calculates hash code according to all attributes.
101
121
  # @return [Integer] Hash code
102
122
  def hash
103
- [branch, name, briefing].hash
123
+ [branch, name, briefing, autotranslate, source_locale_id].hash
104
124
  end
105
125
 
106
126
  # Builds the object from hash
@@ -11,12 +11,20 @@ module Phrase
11
11
  # Briefing for the translators
12
12
  attr_accessor :briefing
13
13
 
14
+ # Automatically translate the job using machine translation.
15
+ attr_accessor :autotranslate
16
+
17
+ # The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.
18
+ attr_accessor :source_locale_id
19
+
14
20
  # Attribute mapping from ruby-style variable name to JSON key.
15
21
  def self.attribute_map
16
22
  {
17
23
  :'branch' => :'branch',
18
24
  :'name' => :'name',
19
- :'briefing' => :'briefing'
25
+ :'briefing' => :'briefing',
26
+ :'autotranslate' => :'autotranslate',
27
+ :'source_locale_id' => :'source_locale_id'
20
28
  }
21
29
  end
22
30
 
@@ -25,7 +33,9 @@ module Phrase
25
33
  {
26
34
  :'branch' => :'String',
27
35
  :'name' => :'String',
28
- :'briefing' => :'String'
36
+ :'briefing' => :'String',
37
+ :'autotranslate' => :'Boolean',
38
+ :'source_locale_id' => :'String'
29
39
  }
30
40
  end
31
41
 
@@ -61,6 +71,14 @@ module Phrase
61
71
  if attributes.key?(:'briefing')
62
72
  self.briefing = attributes[:'briefing']
63
73
  end
74
+
75
+ if attributes.key?(:'autotranslate')
76
+ self.autotranslate = attributes[:'autotranslate']
77
+ end
78
+
79
+ if attributes.key?(:'source_locale_id')
80
+ self.source_locale_id = attributes[:'source_locale_id']
81
+ end
64
82
  end
65
83
 
66
84
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,7 +106,9 @@ module Phrase
88
106
  self.class == o.class &&
89
107
  branch == o.branch &&
90
108
  name == o.name &&
91
- briefing == o.briefing
109
+ briefing == o.briefing &&
110
+ autotranslate == o.autotranslate &&
111
+ source_locale_id == o.source_locale_id
92
112
  end
93
113
 
94
114
  # @see the `==` method
@@ -100,7 +120,7 @@ module Phrase
100
120
  # Calculates hash code according to all attributes.
101
121
  # @return [Integer] Hash code
102
122
  def hash
103
- [branch, name, briefing].hash
123
+ [branch, name, briefing, autotranslate, source_locale_id].hash
104
124
  end
105
125
 
106
126
  # Builds the object from hash
@@ -17,6 +17,9 @@ module Phrase
17
17
  # URL to a ticket for this job (e.g. Jira, Trello)
18
18
  attr_accessor :ticket_url
19
19
 
20
+ # Automatically translate the job using machine translation
21
+ attr_accessor :autotranslate
22
+
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
@@ -24,7 +27,8 @@ module Phrase
24
27
  :'name' => :'name',
25
28
  :'briefing' => :'briefing',
26
29
  :'due_date' => :'due_date',
27
- :'ticket_url' => :'ticket_url'
30
+ :'ticket_url' => :'ticket_url',
31
+ :'autotranslate' => :'autotranslate'
28
32
  }
29
33
  end
30
34
 
@@ -35,7 +39,8 @@ module Phrase
35
39
  :'name' => :'String',
36
40
  :'briefing' => :'String',
37
41
  :'due_date' => :'DateTime',
38
- :'ticket_url' => :'String'
42
+ :'ticket_url' => :'String',
43
+ :'autotranslate' => :'Boolean'
39
44
  }
40
45
  end
41
46
 
@@ -80,6 +85,10 @@ module Phrase
80
85
  if attributes.key?(:'ticket_url')
81
86
  self.ticket_url = attributes[:'ticket_url']
82
87
  end
88
+
89
+ if attributes.key?(:'autotranslate')
90
+ self.autotranslate = attributes[:'autotranslate']
91
+ end
83
92
  end
84
93
 
85
94
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -104,7 +113,8 @@ module Phrase
104
113
  name == o.name &&
105
114
  briefing == o.briefing &&
106
115
  due_date == o.due_date &&
107
- ticket_url == o.ticket_url
116
+ ticket_url == o.ticket_url &&
117
+ autotranslate == o.autotranslate
108
118
  end
109
119
 
110
120
  # @see the `==` method
@@ -116,7 +126,7 @@ module Phrase
116
126
  # Calculates hash code according to all attributes.
117
127
  # @return [Integer] Hash code
118
128
  def hash
119
- [branch, name, briefing, due_date, ticket_url].hash
129
+ [branch, name, briefing, due_date, ticket_url, autotranslate].hash
120
130
  end
121
131
 
122
132
  # Builds the object from hash