phrase 4.11.0 → 4.12.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: c2b8cd0103c3dac58522d18fbc9dcd6d2cd221e59aac25f5735092cba9c62090
4
- data.tar.gz: fa7616166d107432c5ac1755e462ed989b24232b8377c46ee4c87c33e1915e79
3
+ metadata.gz: a6012867c26a4c63c0e1a9e93d0d27b919f39df642c0ea24270a81e36314b80a
4
+ data.tar.gz: 4c4a4a80ebcb5b32915d7bffedfc6b43ed94298f5065937275eb37b1f9551bbc
5
5
  SHA512:
6
- metadata.gz: e05ced7788c9101d6a306f379f0d0306250af9b5c99b883366905f6dbcb44cf826531af54645ab5449cd6ac1868f56b53d64708d729a858df3060d8f8eb0c40c
7
- data.tar.gz: a0eb92dd2ef6e0ab83ea054da78ceb45774abf206a0fc75803dcd0239218bcb62011808198d53cc5a3a7195b27daaf450a6fd87a4b33f5d1f0b8d01da6902567
6
+ metadata.gz: b19c4f9dc2ed8382533742011e9502ad21bc677bab7e367c41c53809f81f2bf153d0584aa26e0b51e33208cd3b675c8b80e8543297cf5fa94e1c8236e6f7b93e
7
+ data.tar.gz: 7fb948e5d7009849057907b874e1cb783b636ff0390cbc0f6558496e5fc16d0912e735215204ba4acfe83e20ea800f378e9b1c185087704e8a30bdb0055a35f7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.12.0](https://github.com/phrase/openapi/compare/ruby-v4.11.0...ruby-v4.12.0) (2025-10-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * List child branches ([#926](https://github.com/phrase/openapi/issues/926)) ([31d3b57](https://github.com/phrase/openapi/commit/31d3b57e0d1381149409b77c3e236b226cde22a1))
9
+
3
10
  ## [4.11.0](https://github.com/phrase/openapi/compare/ruby-v4.10.0...ruby-v4.11.0) (2025-10-01)
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.11.0
10
+ - Package version: 4.12.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.11.0.gem
59
+ gem install ./phrase-4.12.0.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.11.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.12.0.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -20,6 +20,8 @@ Method | HTTP request | Description
20
20
 
21
21
  Activate an automation
22
22
 
23
+ Activate an automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
24
+
23
25
  ### Example
24
26
 
25
27
  ```ruby
@@ -81,7 +83,7 @@ Response<([**Automation**](Automation.md))>
81
83
 
82
84
  Create an automation
83
85
 
84
- Create a new automation.
86
+ Create a new automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
85
87
 
86
88
  ### Example
87
89
 
@@ -144,6 +146,8 @@ Response<([**Automation**](Automation.md))>
144
146
 
145
147
  Deactivate an automation
146
148
 
149
+ Deactivate an automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
150
+
147
151
  ### Example
148
152
 
149
153
  ```ruby
@@ -205,7 +209,7 @@ Response<([**Automation**](Automation.md))>
205
209
 
206
210
  Destroy automation
207
211
 
208
- Destroy an automation of an account. This endpoint is only available to accounts with advanced plans or above.
212
+ Destroy an automation of an account. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
209
213
 
210
214
  ### Example
211
215
 
@@ -267,7 +271,7 @@ Response<(nil (empty response body))>
267
271
 
268
272
  Get a single automation
269
273
 
270
- Get details of a single automation.
274
+ Get details of a single automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
271
275
 
272
276
  ### Example
273
277
 
@@ -330,7 +334,7 @@ Response<([**Automation**](Automation.md))>
330
334
 
331
335
  Update an automation
332
336
 
333
- Update an existing automation.
337
+ Update an existing automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
334
338
 
335
339
  ### Example
336
340
 
@@ -395,7 +399,7 @@ Response<([**Automation**](Automation.md))>
395
399
 
396
400
  List automations
397
401
 
398
- List all automations for an account. This endpoint is only available to accounts with advanced plans or above.
402
+ List all automations for an account. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
399
403
 
400
404
  ### Example
401
405
 
data/docs/Branch.md CHANGED
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **merged_by** | [**UserPreview**](UserPreview.md) | | [optional]
14
14
  **created_by** | [**UserPreview**](UserPreview.md) | | [optional]
15
15
  **state** | **String** | | [optional]
16
+ **child_branches** | **Array&lt;String&gt;** | | [optional]
16
17
 
17
18
  ## Code Sample
18
19
 
@@ -27,7 +28,8 @@ instance = Phrase::Branch.new(base_project_id: null,
27
28
  merged_at: null,
28
29
  merged_by: null,
29
30
  created_by: null,
30
- state: null)
31
+ state: null,
32
+ child_branches: null)
31
33
  ```
32
34
 
33
35
 
@@ -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@13421eb0,
41
+ screenshot: [B@6325a546,
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@bf68379,
39
+ screenshot: [B@89eab25,
40
40
  remove_screenshot: null,
41
41
  unformatted: null,
42
42
  xml_space_preserve: null,
@@ -37,7 +37,7 @@ instance = Phrase::ProjectCreateParameters.new(name: My Android Project,
37
37
  main_format: yml,
38
38
  media: Python,
39
39
  shares_translation_memory: true,
40
- project_image: [B@c34e260,
40
+ project_image: [B@31b5db46,
41
41
  remove_project_image: null,
42
42
  account_id: abcd1234,
43
43
  point_of_contact: abcd1234,
@@ -39,7 +39,7 @@ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
39
39
  main_format: yml,
40
40
  media: Python,
41
41
  shares_translation_memory: true,
42
- project_image: [B@39342312,
42
+ project_image: [B@78026a45,
43
43
  remove_project_image: false,
44
44
  workflow: review,
45
45
  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@384edc3b)
20
+ filename: [B@7c553e61)
21
21
  ```
22
22
 
23
23
 
@@ -8,6 +8,7 @@ module Phrase
8
8
  @api_client = api_client
9
9
  end
10
10
  # Activate an automation
11
+ # Activate an automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
11
12
  # @param account_id [String] Account ID
12
13
  # @param id [String] ID
13
14
  # @param [Hash] opts the optional parameters
@@ -19,6 +20,7 @@ module Phrase
19
20
  end
20
21
 
21
22
  # Activate an automation
23
+ # Activate an automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
22
24
  # @param account_id [String] Account ID
23
25
  # @param id [String] ID
24
26
  # @param [Hash] opts the optional parameters
@@ -78,7 +80,7 @@ module Phrase
78
80
  end
79
81
 
80
82
  # Create an automation
81
- # Create a new automation.
83
+ # Create a new automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
82
84
  # @param account_id [String] Account ID
83
85
  # @param automations_create_parameters [AutomationsCreateParameters]
84
86
  # @param [Hash] opts the optional parameters
@@ -90,7 +92,7 @@ module Phrase
90
92
  end
91
93
 
92
94
  # Create an automation
93
- # Create a new automation.
95
+ # Create a new automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
94
96
  # @param account_id [String] Account ID
95
97
  # @param automations_create_parameters [AutomationsCreateParameters]
96
98
  # @param [Hash] opts the optional parameters
@@ -152,6 +154,7 @@ module Phrase
152
154
  end
153
155
 
154
156
  # Deactivate an automation
157
+ # Deactivate an automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
155
158
  # @param account_id [String] Account ID
156
159
  # @param id [String] ID
157
160
  # @param [Hash] opts the optional parameters
@@ -163,6 +166,7 @@ module Phrase
163
166
  end
164
167
 
165
168
  # Deactivate an automation
169
+ # Deactivate an automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
166
170
  # @param account_id [String] Account ID
167
171
  # @param id [String] ID
168
172
  # @param [Hash] opts the optional parameters
@@ -222,7 +226,7 @@ module Phrase
222
226
  end
223
227
 
224
228
  # Destroy automation
225
- # Destroy an automation of an account. This endpoint is only available to accounts with advanced plans or above.
229
+ # Destroy an automation of an account. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
226
230
  # @param account_id [String] Account ID
227
231
  # @param id [String] ID
228
232
  # @param [Hash] opts the optional parameters
@@ -234,7 +238,7 @@ module Phrase
234
238
  end
235
239
 
236
240
  # Destroy automation
237
- # Destroy an automation of an account. This endpoint is only available to accounts with advanced plans or above.
241
+ # Destroy an automation of an account. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
238
242
  # @param account_id [String] Account ID
239
243
  # @param id [String] ID
240
244
  # @param [Hash] opts the optional parameters
@@ -292,7 +296,7 @@ module Phrase
292
296
  end
293
297
 
294
298
  # Get a single automation
295
- # Get details of a single automation.
299
+ # Get details of a single automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
296
300
  # @param account_id [String] Account ID
297
301
  # @param id [String] ID
298
302
  # @param [Hash] opts the optional parameters
@@ -304,7 +308,7 @@ module Phrase
304
308
  end
305
309
 
306
310
  # Get a single automation
307
- # Get details of a single automation.
311
+ # Get details of a single automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
308
312
  # @param account_id [String] Account ID
309
313
  # @param id [String] ID
310
314
  # @param [Hash] opts the optional parameters
@@ -364,7 +368,7 @@ module Phrase
364
368
  end
365
369
 
366
370
  # Update an automation
367
- # Update an existing automation.
371
+ # Update an existing automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
368
372
  # @param account_id [String] Account ID
369
373
  # @param id [String] ID
370
374
  # @param automations_create_parameters1 [AutomationsCreateParameters1]
@@ -377,7 +381,7 @@ module Phrase
377
381
  end
378
382
 
379
383
  # Update an automation
380
- # Update an existing automation.
384
+ # Update an existing automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
381
385
  # @param account_id [String] Account ID
382
386
  # @param id [String] ID
383
387
  # @param automations_create_parameters1 [AutomationsCreateParameters1]
@@ -444,7 +448,7 @@ module Phrase
444
448
  end
445
449
 
446
450
  # List automations
447
- # List all automations for an account. This endpoint is only available to accounts with advanced plans or above.
451
+ # List all automations for an account. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
448
452
  # @param account_id [String] Account ID
449
453
  # @param [Hash] opts the optional parameters
450
454
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -457,7 +461,7 @@ module Phrase
457
461
  end
458
462
 
459
463
  # List automations
460
- # List all automations for an account. This endpoint is only available to accounts with advanced plans or above.
464
+ # List all automations for an account. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
461
465
  # @param account_id [String] Account ID
462
466
  # @param [Hash] opts the optional parameters
463
467
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -20,6 +20,8 @@ module Phrase
20
20
 
21
21
  attr_accessor :state
22
22
 
23
+ attr_accessor :child_branches
24
+
23
25
  # Attribute mapping from ruby-style variable name to JSON key.
24
26
  def self.attribute_map
25
27
  {
@@ -31,7 +33,8 @@ module Phrase
31
33
  :'merged_at' => :'merged_at',
32
34
  :'merged_by' => :'merged_by',
33
35
  :'created_by' => :'created_by',
34
- :'state' => :'state'
36
+ :'state' => :'state',
37
+ :'child_branches' => :'child_branches'
35
38
  }
36
39
  end
37
40
 
@@ -46,7 +49,8 @@ module Phrase
46
49
  :'merged_at' => :'DateTime',
47
50
  :'merged_by' => :'UserPreview',
48
51
  :'created_by' => :'UserPreview',
49
- :'state' => :'String'
52
+ :'state' => :'String',
53
+ :'child_branches' => :'Array<String>'
50
54
  }
51
55
  end
52
56
 
@@ -106,6 +110,12 @@ module Phrase
106
110
  if attributes.key?(:'state')
107
111
  self.state = attributes[:'state']
108
112
  end
113
+
114
+ if attributes.key?(:'child_branches')
115
+ if (value = attributes[:'child_branches']).is_a?(Array)
116
+ self.child_branches = value
117
+ end
118
+ end
109
119
  end
110
120
 
111
121
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -134,7 +144,8 @@ module Phrase
134
144
  merged_at == o.merged_at &&
135
145
  merged_by == o.merged_by &&
136
146
  created_by == o.created_by &&
137
- state == o.state
147
+ state == o.state &&
148
+ child_branches == o.child_branches
138
149
  end
139
150
 
140
151
  # @see the `==` method
@@ -146,7 +157,7 @@ module Phrase
146
157
  # Calculates hash code according to all attributes.
147
158
  # @return [Integer] Hash code
148
159
  def hash
149
- [base_project_id, branch_project_id, name, created_at, updated_at, merged_at, merged_by, created_by, state].hash
160
+ [base_project_id, branch_project_id, name, created_at, updated_at, merged_at, merged_by, created_by, state, child_branches].hash
150
161
  end
151
162
 
152
163
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.11.0'
2
+ VERSION = '4.12.0'
3
3
  end
@@ -22,6 +22,7 @@ describe 'AutomationsApi' do
22
22
 
23
23
  # unit tests for automation_activate
24
24
  # Activate an automation
25
+ # Activate an automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
25
26
  # @param account_id Account ID
26
27
  # @param id ID
27
28
  # @param [Hash] opts the optional parameters
@@ -35,7 +36,7 @@ describe 'AutomationsApi' do
35
36
 
36
37
  # unit tests for automation_create
37
38
  # Create an automation
38
- # Create a new automation.
39
+ # Create a new automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
39
40
  # @param account_id Account ID
40
41
  # @param automations_create_parameters
41
42
  # @param [Hash] opts the optional parameters
@@ -49,6 +50,7 @@ describe 'AutomationsApi' do
49
50
 
50
51
  # unit tests for automation_deactivate
51
52
  # Deactivate an automation
53
+ # Deactivate an automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
52
54
  # @param account_id Account ID
53
55
  # @param id ID
54
56
  # @param [Hash] opts the optional parameters
@@ -62,7 +64,7 @@ describe 'AutomationsApi' do
62
64
 
63
65
  # unit tests for automation_delete
64
66
  # Destroy automation
65
- # Destroy an automation of an account. This endpoint is only available to accounts with advanced plans or above.
67
+ # Destroy an automation of an account. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
66
68
  # @param account_id Account ID
67
69
  # @param id ID
68
70
  # @param [Hash] opts the optional parameters
@@ -76,7 +78,7 @@ describe 'AutomationsApi' do
76
78
 
77
79
  # unit tests for automation_show
78
80
  # Get a single automation
79
- # Get details of a single automation.
81
+ # Get details of a single automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
80
82
  # @param account_id Account ID
81
83
  # @param id ID
82
84
  # @param [Hash] opts the optional parameters
@@ -90,7 +92,7 @@ describe 'AutomationsApi' do
90
92
 
91
93
  # unit tests for automation_update
92
94
  # Update an automation
93
- # Update an existing automation.
95
+ # Update an existing automation. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
94
96
  # @param account_id Account ID
95
97
  # @param id ID
96
98
  # @param automations_create_parameters1
@@ -105,7 +107,7 @@ describe 'AutomationsApi' do
105
107
 
106
108
  # unit tests for automations_list
107
109
  # List automations
108
- # List all automations for an account. This endpoint is only available to accounts with advanced plans or above.
110
+ # List all automations for an account. For feature availability, see [Jobs (Strings)](https://support.phrase.com/hc/en-us/articles/5784100517788-Jobs-Strings).
109
111
  # @param account_id Account ID
110
112
  # @param [Hash] opts the optional parameters
111
113
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -74,4 +74,10 @@ describe 'Branch' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "child_branches"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
77
83
  end
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.11.0
4
+ version: 4.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-01 00:00:00.000000000 Z
11
+ date: 2025-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus