phrase 4.17.0 → 4.18.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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +3 -3
  4. data/docs/JobCreateParameters.md +3 -1
  5. data/docs/JobTemplateCreateParameters.md +3 -1
  6. data/docs/JobTemplateUpdateParameters.md +3 -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/lib/phrase/api/repo_syncs_api.rb +0 -3
  20. data/lib/phrase/models/job_create_parameters.rb +14 -4
  21. data/lib/phrase/models/job_template_create_parameters.rb +14 -4
  22. data/lib/phrase/models/job_template_update_parameters.rb +14 -4
  23. data/lib/phrase/models/job_update_parameters.rb +14 -4
  24. data/lib/phrase/models/organization_job_template_create_parameters.rb +14 -4
  25. data/lib/phrase/models/organization_job_template_update_parameters.rb +14 -4
  26. data/lib/phrase/models/project_create_parameters.rb +26 -4
  27. data/lib/phrase/models/project_details.rb +33 -4
  28. data/lib/phrase/models/project_update_parameters.rb +26 -4
  29. data/lib/phrase/models/repo_sync_export_parameters.rb +14 -4
  30. data/lib/phrase/models/repo_sync_import_parameters.rb +14 -4
  31. data/lib/phrase/version.rb +1 -1
  32. data/spec/api/repo_syncs_api_spec.rb +0 -1
  33. data/spec/models/job_create_parameters_spec.rb +6 -0
  34. data/spec/models/job_template_create_parameters_spec.rb +6 -0
  35. data/spec/models/job_template_update_parameters_spec.rb +6 -0
  36. data/spec/models/job_update_parameters_spec.rb +6 -0
  37. data/spec/models/organization_job_template_create_parameters_spec.rb +6 -0
  38. data/spec/models/organization_job_template_update_parameters_spec.rb +6 -0
  39. data/spec/models/project_create_parameters_spec.rb +12 -0
  40. data/spec/models/project_details_spec.rb +18 -0
  41. data/spec/models/project_update_parameters_spec.rb +12 -0
  42. data/spec/models/repo_sync_export_parameters_spec.rb +6 -0
  43. data/spec/models/repo_sync_import_parameters_spec.rb +6 -0
  44. metadata +247 -247
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08077d46ce75e5473b235035e6a39605824a5ee455edd4f4d21dbbef92e96d23'
4
- data.tar.gz: 228ec9995b234a3c29c0e3efa78c8a522a3a670c968cb0116f3170c7e6031fdf
3
+ metadata.gz: d625e06267b61b36035d9c02895f5cf6375985dc277014e902b9f97248d56252
4
+ data.tar.gz: 51b65c3b1a57c8b0438197c46c398578a03bfe3294c7652b38ba96a4ff2fb2c9
5
5
  SHA512:
6
- metadata.gz: 22d1542116e134c0537d99e006858f71111de1a343e9a48347e98df258be6ba0a064a418eecde0b4fa6b2c4ca718112e8d6e0dfbd8530bb968d3e3fcabb0fd0b
7
- data.tar.gz: b157be4058377c078a68fcfae6c7b14002c7ee8c2e5551f107d1f277594dc84d19c31d2e20503499dfc62212a776a8f8aae2ca6188e1519cd4c9a72f1098927f
6
+ metadata.gz: eb05ec0160783fe9aa6d2769b27fcbceb02d3c20d4c8ce10af322a9c8c4a8c894f95e576cf3c56f537a224c8d7b2f43c6e34c875c7cd716fa85e436b0e83671d
7
+ data.tar.gz: f9dfe594fb561b594ba9ffc3609c90dfdf35c8e6f30c7876ea71d078af7d3160a750dc52b237dcd5db05ab9cd7e70b64c426761e6074d0fd45bd8adefc3460a1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.18.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.17.0...ruby-v4.18.0) (2026-04-02)
4
+
5
+
6
+ ### Features
7
+
8
+ * **API:** Add missing project & job params ([#1065](https://github.com/phrase/strings-openapi/issues/1065)) ([0df6013](https://github.com/phrase/strings-openapi/commit/0df6013f919fdb763c15a1192372e1e5dc743a58))
9
+ * **API:** Extend exposed project settings ([#1071](https://github.com/phrase/strings-openapi/issues/1071)) ([b93ce3b](https://github.com/phrase/strings-openapi/commit/b93ce3be6194f8e7df2170aa3bab6c6d0578d7ec))
10
+ * **API:** RepoSync export: optional branch parameter ([#1050](https://github.com/phrase/strings-openapi/issues/1050)) ([07b3182](https://github.com/phrase/strings-openapi/commit/07b31825bfa648d7c7578c86a31c2dd31583090d))
11
+
3
12
  ## [4.17.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.16.1...ruby-v4.17.0) (2026-03-13)
4
13
 
5
14
 
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.18.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.18.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.18.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,7 @@ 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]
10
11
 
11
12
  ## Code Sample
12
13
 
@@ -15,7 +16,8 @@ require 'Phrase'
15
16
 
16
17
  instance = Phrase::JobTemplateCreateParameters.new(branch: my-feature-branch,
17
18
  name: template,
18
- briefing: text)
19
+ briefing: text,
20
+ autotranslate: true)
19
21
  ```
20
22
 
21
23
 
@@ -7,6 +7,7 @@ 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]
10
11
 
11
12
  ## Code Sample
12
13
 
@@ -15,7 +16,8 @@ require 'Phrase'
15
16
 
16
17
  instance = Phrase::JobTemplateUpdateParameters.new(branch: my-feature-branch,
17
18
  name: template,
18
- briefing: text)
19
+ briefing: text,
20
+ autotranslate: true)
19
21
  ```
20
22
 
21
23
 
@@ -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@5531484a,
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@99caac2,
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@6026c754,
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@3d7c21b7,
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@3fb2306)
21
21
  ```
22
22
 
23
23
 
@@ -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,16 @@ 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
+
14
17
  # Attribute mapping from ruby-style variable name to JSON key.
15
18
  def self.attribute_map
16
19
  {
17
20
  :'branch' => :'branch',
18
21
  :'name' => :'name',
19
- :'briefing' => :'briefing'
22
+ :'briefing' => :'briefing',
23
+ :'autotranslate' => :'autotranslate'
20
24
  }
21
25
  end
22
26
 
@@ -25,7 +29,8 @@ module Phrase
25
29
  {
26
30
  :'branch' => :'String',
27
31
  :'name' => :'String',
28
- :'briefing' => :'String'
32
+ :'briefing' => :'String',
33
+ :'autotranslate' => :'Boolean'
29
34
  }
30
35
  end
31
36
 
@@ -61,6 +66,10 @@ module Phrase
61
66
  if attributes.key?(:'briefing')
62
67
  self.briefing = attributes[:'briefing']
63
68
  end
69
+
70
+ if attributes.key?(:'autotranslate')
71
+ self.autotranslate = attributes[:'autotranslate']
72
+ end
64
73
  end
65
74
 
66
75
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,7 +97,8 @@ module Phrase
88
97
  self.class == o.class &&
89
98
  branch == o.branch &&
90
99
  name == o.name &&
91
- briefing == o.briefing
100
+ briefing == o.briefing &&
101
+ autotranslate == o.autotranslate
92
102
  end
93
103
 
94
104
  # @see the `==` method
@@ -100,7 +110,7 @@ module Phrase
100
110
  # Calculates hash code according to all attributes.
101
111
  # @return [Integer] Hash code
102
112
  def hash
103
- [branch, name, briefing].hash
113
+ [branch, name, briefing, autotranslate].hash
104
114
  end
105
115
 
106
116
  # Builds the object from hash
@@ -11,12 +11,16 @@ 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
+
14
17
  # Attribute mapping from ruby-style variable name to JSON key.
15
18
  def self.attribute_map
16
19
  {
17
20
  :'branch' => :'branch',
18
21
  :'name' => :'name',
19
- :'briefing' => :'briefing'
22
+ :'briefing' => :'briefing',
23
+ :'autotranslate' => :'autotranslate'
20
24
  }
21
25
  end
22
26
 
@@ -25,7 +29,8 @@ module Phrase
25
29
  {
26
30
  :'branch' => :'String',
27
31
  :'name' => :'String',
28
- :'briefing' => :'String'
32
+ :'briefing' => :'String',
33
+ :'autotranslate' => :'Boolean'
29
34
  }
30
35
  end
31
36
 
@@ -61,6 +66,10 @@ module Phrase
61
66
  if attributes.key?(:'briefing')
62
67
  self.briefing = attributes[:'briefing']
63
68
  end
69
+
70
+ if attributes.key?(:'autotranslate')
71
+ self.autotranslate = attributes[:'autotranslate']
72
+ end
64
73
  end
65
74
 
66
75
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -88,7 +97,8 @@ module Phrase
88
97
  self.class == o.class &&
89
98
  branch == o.branch &&
90
99
  name == o.name &&
91
- briefing == o.briefing
100
+ briefing == o.briefing &&
101
+ autotranslate == o.autotranslate
92
102
  end
93
103
 
94
104
  # @see the `==` method
@@ -100,7 +110,7 @@ module Phrase
100
110
  # Calculates hash code according to all attributes.
101
111
  # @return [Integer] Hash code
102
112
  def hash
103
- [branch, name, briefing].hash
113
+ [branch, name, briefing, autotranslate].hash
104
114
  end
105
115
 
106
116
  # 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
@@ -8,11 +8,15 @@ module Phrase
8
8
  # Briefing for the translators
9
9
  attr_accessor :briefing
10
10
 
11
+ # Automatically translate the job using machine translation.
12
+ attr_accessor :autotranslate
13
+
11
14
  # Attribute mapping from ruby-style variable name to JSON key.
12
15
  def self.attribute_map
13
16
  {
14
17
  :'name' => :'name',
15
- :'briefing' => :'briefing'
18
+ :'briefing' => :'briefing',
19
+ :'autotranslate' => :'autotranslate'
16
20
  }
17
21
  end
18
22
 
@@ -20,7 +24,8 @@ module Phrase
20
24
  def self.openapi_types
21
25
  {
22
26
  :'name' => :'String',
23
- :'briefing' => :'String'
27
+ :'briefing' => :'String',
28
+ :'autotranslate' => :'Boolean'
24
29
  }
25
30
  end
26
31
 
@@ -52,6 +57,10 @@ module Phrase
52
57
  if attributes.key?(:'briefing')
53
58
  self.briefing = attributes[:'briefing']
54
59
  end
60
+
61
+ if attributes.key?(:'autotranslate')
62
+ self.autotranslate = attributes[:'autotranslate']
63
+ end
55
64
  end
56
65
 
57
66
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -78,7 +87,8 @@ module Phrase
78
87
  return true if self.equal?(o)
79
88
  self.class == o.class &&
80
89
  name == o.name &&
81
- briefing == o.briefing
90
+ briefing == o.briefing &&
91
+ autotranslate == o.autotranslate
82
92
  end
83
93
 
84
94
  # @see the `==` method
@@ -90,7 +100,7 @@ module Phrase
90
100
  # Calculates hash code according to all attributes.
91
101
  # @return [Integer] Hash code
92
102
  def hash
93
- [name, briefing].hash
103
+ [name, briefing, autotranslate].hash
94
104
  end
95
105
 
96
106
  # Builds the object from hash