phrase 4.19.0 → 4.20.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a5887032300f5f511acd9941e2c3cdb27068ca862f88e50256528c9f70cd038b
4
- data.tar.gz: de293414b2f0c83ea0db4e5b6473d531dc45229496953464b394213cca9b223f
3
+ metadata.gz: 9b0e6f5b3eb7c7630fce3338c0f888b06a806175cca76668f2948b70c1a49468
4
+ data.tar.gz: 465f3bad0a99690a832a877c7c392b9c898e7c6c925f3b2f107a7a9bd8a534b2
5
5
  SHA512:
6
- metadata.gz: c8fccb4f2bd2d414e101515d4afc1fc68672263fc46190216cda9cf5b39cf948afb644d375f8fdbbe50f047f5a1bbc7760e3de08789a00d8e9035b75685f4570
7
- data.tar.gz: 73a0cddc1a29a61236bdc8345a692f4412580465eb29d6a64275d4228dcf2dea2bd87bc0ac1efa9f3c22229cc32f6f6aaeddc0f5fbc80c181d5ec5f2206803de
6
+ metadata.gz: fd73555f4319d6eefc6a664a66e689520172ef1f49a602639d8b04801228796b4a1ea7623969ff82573deeddaf1b8594a2326b6e2a74537d57d82bc32e44d941
7
+ data.tar.gz: ff43f77e4d92d012158919ea37056bb778264c000f0bb3381fe5cc3fda3bd381ad910497a8da0e3bafed90a3cf5bf78d3bb43654657e8b23082b55d6c8b47b19
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.20.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.19.0...ruby-v4.20.0) (2026-04-27)
4
+
5
+
6
+ ### Features
7
+
8
+ * **API:** Add target_locale_ids to jobs create/update ([#1106](https://github.com/phrase/strings-openapi/issues/1106)) ([00140ab](https://github.com/phrase/strings-openapi/commit/00140ab96ff351bec548e4af1f271f3e60087989))
9
+
3
10
  ## [4.19.0](https://github.com/phrase/strings-openapi/compare/ruby-v4.18.0...ruby-v4.19.0) (2026-04-14)
4
11
 
5
12
 
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.19.0
10
+ - Package version: 4.20.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.19.0.gem
59
+ gem install ./phrase-4.20.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.19.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.20.0.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -12,7 +12,8 @@ Name | Type | Description | Notes
12
12
  **ticket_url** | **String** | URL to a ticket for this job (e.g. Jira, Trello) | [optional]
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
- **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]
15
+ **target_locale_ids** | **Array<String>** | List of target locales for the job. Mutually exclusive with `job_template_id`. | [optional]
16
+ **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. Mutually exclusive with `target_locale_ids`. | [optional]
16
17
  **autotranslate** | **Boolean** | Automatically translate the job using machine translation. | [optional]
17
18
 
18
19
  ## Code Sample
@@ -28,6 +29,7 @@ instance = Phrase::JobCreateParameters.new(branch: my-feature-branch,
28
29
  ticket_url: https://example.atlassian.net/browse/FOO,
29
30
  tags: ["myUploadTag"],
30
31
  translation_key_ids: ["abcd1234cdef1234abcd1234cdef1234"],
32
+ target_locale_ids: ["abcd1234cdef1234abcd1234cdef1234"],
31
33
  job_template_id: abcd1234cdef1234abcd1234cdef1234,
32
34
  autotranslate: true)
33
35
  ```
@@ -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
+ **target_locale_ids** | **Array<String>** | List of target locales for the job. | [optional]
12
13
  **autotranslate** | **Boolean** | Automatically translate the job using machine translation | [optional]
13
14
 
14
15
  ## Code Sample
@@ -21,6 +22,7 @@ instance = Phrase::JobUpdateParameters.new(branch: my-feature-branch,
21
22
  briefing: de-DE,
22
23
  due_date: null,
23
24
  ticket_url: https://example.atlassian.net/browse/FOO,
25
+ target_locale_ids: ["abcd1234cdef1234abcd1234cdef1234"],
24
26
  autotranslate: true)
25
27
  ```
26
28
 
@@ -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@3693deae,
41
+ screenshot: [B@3bbb5b2,
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@6f3af541,
39
+ screenshot: [B@37c47166,
40
40
  remove_screenshot: null,
41
41
  unformatted: null,
42
42
  xml_space_preserve: null,
@@ -39,7 +39,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
39
39
  main_format: yml,
40
40
  media: Python,
41
41
  shares_translation_memory: true,
42
- project_image: [B@39a54d70,
42
+ project_image: [B@3c288a4e,
43
43
  remove_project_image: null,
44
44
  account_id: abcd1234,
45
45
  point_of_contact: abcd1234,
@@ -41,7 +41,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
41
41
  main_format: yml,
42
42
  media: Python,
43
43
  shares_translation_memory: true,
44
- project_image: [B@39b5d60,
44
+ project_image: [B@27b27f3c,
45
45
  remove_project_image: false,
46
46
  workflow: review,
47
47
  machine_translation_enabled: true,
@@ -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@254ed9ba)
20
+ filename: [B@7bb92a71)
21
21
  ```
22
22
 
23
23
 
@@ -26,7 +26,10 @@ module Phrase
26
26
  # ids of keys that should be included within the job
27
27
  attr_accessor :translation_key_ids
28
28
 
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.
29
+ # List of target locales for the job. Mutually exclusive with `job_template_id`.
30
+ attr_accessor :target_locale_ids
31
+
32
+ # id of a job template you would like to model the created job after. Any manually added parameters will take preference over template attributes. Mutually exclusive with `target_locale_ids`.
30
33
  attr_accessor :job_template_id
31
34
 
32
35
  # Automatically translate the job using machine translation.
@@ -43,6 +46,7 @@ module Phrase
43
46
  :'ticket_url' => :'ticket_url',
44
47
  :'tags' => :'tags',
45
48
  :'translation_key_ids' => :'translation_key_ids',
49
+ :'target_locale_ids' => :'target_locale_ids',
46
50
  :'job_template_id' => :'job_template_id',
47
51
  :'autotranslate' => :'autotranslate'
48
52
  }
@@ -59,6 +63,7 @@ module Phrase
59
63
  :'ticket_url' => :'String',
60
64
  :'tags' => :'Array<String>',
61
65
  :'translation_key_ids' => :'Array<String>',
66
+ :'target_locale_ids' => :'Array<String>',
62
67
  :'job_template_id' => :'String',
63
68
  :'autotranslate' => :'Boolean'
64
69
  }
@@ -122,6 +127,12 @@ module Phrase
122
127
  end
123
128
  end
124
129
 
130
+ if attributes.key?(:'target_locale_ids')
131
+ if (value = attributes[:'target_locale_ids']).is_a?(Array)
132
+ self.target_locale_ids = value
133
+ end
134
+ end
135
+
125
136
  if attributes.key?(:'job_template_id')
126
137
  self.job_template_id = attributes[:'job_template_id']
127
138
  end
@@ -162,6 +173,7 @@ module Phrase
162
173
  ticket_url == o.ticket_url &&
163
174
  tags == o.tags &&
164
175
  translation_key_ids == o.translation_key_ids &&
176
+ target_locale_ids == o.target_locale_ids &&
165
177
  job_template_id == o.job_template_id &&
166
178
  autotranslate == o.autotranslate
167
179
  end
@@ -175,7 +187,7 @@ module Phrase
175
187
  # Calculates hash code according to all attributes.
176
188
  # @return [Integer] Hash code
177
189
  def hash
178
- [branch, name, source_locale_id, briefing, due_date, ticket_url, tags, translation_key_ids, job_template_id, autotranslate].hash
190
+ [branch, name, source_locale_id, briefing, due_date, ticket_url, tags, translation_key_ids, target_locale_ids, job_template_id, autotranslate].hash
179
191
  end
180
192
 
181
193
  # 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
+ # List of target locales for the job.
21
+ attr_accessor :target_locale_ids
22
+
20
23
  # Automatically translate the job using machine translation
21
24
  attr_accessor :autotranslate
22
25
 
@@ -28,6 +31,7 @@ module Phrase
28
31
  :'briefing' => :'briefing',
29
32
  :'due_date' => :'due_date',
30
33
  :'ticket_url' => :'ticket_url',
34
+ :'target_locale_ids' => :'target_locale_ids',
31
35
  :'autotranslate' => :'autotranslate'
32
36
  }
33
37
  end
@@ -40,6 +44,7 @@ module Phrase
40
44
  :'briefing' => :'String',
41
45
  :'due_date' => :'DateTime',
42
46
  :'ticket_url' => :'String',
47
+ :'target_locale_ids' => :'Array<String>',
43
48
  :'autotranslate' => :'Boolean'
44
49
  }
45
50
  end
@@ -86,6 +91,12 @@ module Phrase
86
91
  self.ticket_url = attributes[:'ticket_url']
87
92
  end
88
93
 
94
+ if attributes.key?(:'target_locale_ids')
95
+ if (value = attributes[:'target_locale_ids']).is_a?(Array)
96
+ self.target_locale_ids = value
97
+ end
98
+ end
99
+
89
100
  if attributes.key?(:'autotranslate')
90
101
  self.autotranslate = attributes[:'autotranslate']
91
102
  end
@@ -114,6 +125,7 @@ module Phrase
114
125
  briefing == o.briefing &&
115
126
  due_date == o.due_date &&
116
127
  ticket_url == o.ticket_url &&
128
+ target_locale_ids == o.target_locale_ids &&
117
129
  autotranslate == o.autotranslate
118
130
  end
119
131
 
@@ -126,7 +138,7 @@ module Phrase
126
138
  # Calculates hash code according to all attributes.
127
139
  # @return [Integer] Hash code
128
140
  def hash
129
- [branch, name, briefing, due_date, ticket_url, autotranslate].hash
141
+ [branch, name, briefing, due_date, ticket_url, target_locale_ids, autotranslate].hash
130
142
  end
131
143
 
132
144
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.19.0'
2
+ VERSION = '4.20.0'
3
3
  end
@@ -68,6 +68,12 @@ describe 'JobCreateParameters' do
68
68
  end
69
69
  end
70
70
 
71
+ describe 'test attribute "target_locale_ids"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
71
77
  describe 'test attribute "job_template_id"' do
72
78
  it 'should work' do
73
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,6 +50,12 @@ describe 'JobUpdateParameters' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "target_locale_ids"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
53
59
  describe 'test attribute "autotranslate"' do
54
60
  it 'should work' do
55
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phrase
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.19.0
4
+ version: 4.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-14 00:00:00.000000000 Z
11
+ date: 2026-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus