phrase 4.15.0 → 4.16.1

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: 5987ebb038c9e36ae7593f16926052cbdb94e3914c82bec4834aecb655919983
4
- data.tar.gz: 93bf790d7884ad21c172442aa387d6019cd818e98e6061d0b960300535fb2df8
3
+ metadata.gz: fdf67e291a3de5a9f390ba8409f9abbee00924daa3ee48689d058c374308713a
4
+ data.tar.gz: f940f8c3578141a05c48bf67d8f5075ac86528aa199927393536c03305c07e5d
5
5
  SHA512:
6
- metadata.gz: 89b80fed14629efae28d5109e286e2eb03188ea0f40522fcc729d1fc048f74f7a1fdaa8ffd4bf1e17aec6c815b8625cd23e71cd0d9e49c6342191271456873b0
7
- data.tar.gz: aa62cc3f88f081efb61e765eb96caade67c7329235ddf395fbab029702972978e86cb467235dd49ebffd89ca9fdc0202f69b878a7e16d77abe9894800f4675c0
6
+ metadata.gz: 175514cc053f304d2006e666c70e2a069bf4a35c4137b3ebef9c523a1b2569de74c3433a158b48b4daf63b93cac7ac1534fd48a392755ab0f42e36e718f8dd98
7
+ data.tar.gz: 82ef9bde3b0b7bc757e8de5fa851f612f0949faad7e29ef29551a3c466c4ebef432d17ec6f311571fed65a39b234fdd8111cdc17810f8fc592f3ef722dba6be9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.16.1](https://github.com/phrase/strings-openapi/compare/ruby-v4.16.0...ruby-v4.16.1) (2026-01-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **API:** Add linked_translation to translation type ([#1005](https://github.com/phrase/strings-openapi/issues/1005)) ([b18e64c](https://github.com/phrase/strings-openapi/commit/b18e64c948d40a9e5f996e8fdf6dee07d1812b02))
9
+
10
+ ## [4.16.0](https://github.com/phrase/openapi/compare/ruby-v4.15.0...ruby-v4.16.0) (2026-01-09)
11
+
12
+
13
+ ### Features
14
+
15
+ * **API:** Add missing project flags to project details schema #SCD-141 ([#993](https://github.com/phrase/openapi/issues/993)) ([93fbdd7](https://github.com/phrase/openapi/commit/93fbdd76150ed94374ef888ac92c0c9b626de7c8))
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **API:** drop invalid account locale params ([#992](https://github.com/phrase/openapi/issues/992)) ([87af83c](https://github.com/phrase/openapi/commit/87af83c94fd7e47340b5393847e93a31127abbe8))
21
+
3
22
  ## [4.15.0](https://github.com/phrase/openapi/compare/ruby-v4.14.1...ruby-v4.15.0) (2025-12-11)
4
23
 
5
24
 
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.15.0
10
+ - Package version: 4.16.1
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.15.0.gem
59
+ gem install ./phrase-4.16.1.gem
60
60
  ```
61
61
 
62
- (for development, run `gem install --dev ./phrase-4.15.0.gem` to install the development dependencies)
62
+ (for development, run `gem install --dev ./phrase-4.16.1.gem` to install the development dependencies)
63
63
 
64
64
  ## Getting Started
65
65
 
@@ -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@4116167e,
41
+ screenshot: [B@3c148f23,
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@74e2de39,
39
+ screenshot: [B@6fe8e276,
40
40
  remove_screenshot: null,
41
41
  unformatted: null,
42
42
  xml_space_preserve: null,
@@ -4,7 +4,6 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **id** | **String** | | [optional]
8
7
  **name** | **String** | | [optional]
9
8
  **code** | **String** | | [optional]
10
9
  **project** | [**ProjectShort**](ProjectShort.md) | | [optional]
@@ -14,8 +13,7 @@ Name | Type | Description | Notes
14
13
  ```ruby
15
14
  require 'Phrase'
16
15
 
17
- instance = Phrase::LocalePreview1.new(id: null,
18
- name: null,
16
+ instance = Phrase::LocalePreview1.new(name: null,
19
17
  code: null,
20
18
  project: null)
21
19
  ```
data/docs/LocalesApi.md CHANGED
@@ -41,9 +41,7 @@ end
41
41
  api_instance = Phrase::LocalesApi.new
42
42
  id = 'id_example' # String | ID
43
43
  opts = {
44
- x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
45
- page: 1, # Integer | Page number
46
- per_page: 25 # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
44
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
47
45
  }
48
46
 
49
47
  begin
@@ -62,8 +60,6 @@ Name | Type | Description | Notes
62
60
  ------------- | ------------- | ------------- | -------------
63
61
  **id** | **String**| ID |
64
62
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
65
- **page** | **Integer**| Page number | [optional]
66
- **per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
67
63
 
68
64
  ### Return type
69
65
 
@@ -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@767c34a0,
40
+ project_image: [B@1d05cbae,
41
41
  remove_project_image: null,
42
42
  account_id: abcd1234,
43
43
  point_of_contact: abcd1234,
@@ -16,6 +16,20 @@ Name | Type | Description | Notes
16
16
  **created_at** | **Time** | | [optional]
17
17
  **updated_at** | **Time** | | [optional]
18
18
  **shares_translation_memory** | **Boolean** | | [optional]
19
+ **machine_translation_enabled** | **Boolean** | | [optional]
20
+ **zero_plural_form_enabled** | **Boolean** | | [optional]
21
+ **enable_all_data_type_translation_keys_for_translators** | **Boolean** | | [optional]
22
+ **enable_icu_message_format** | **Boolean** | | [optional]
23
+ **enable_branching** | **Boolean** | | [optional]
24
+ **protect_master_branch** | **Boolean** | | [optional]
25
+ **autotranslate_enabled** | **Boolean** | | [optional]
26
+ **autotranslate_check_new_translation_keys** | **Boolean** | | [optional]
27
+ **autotranslate_check_new_uploads** | **Boolean** | | [optional]
28
+ **autotranslate_check_new_locales** | **Boolean** | | [optional]
29
+ **autotranslate_mark_as_unverified** | **Boolean** | | [optional]
30
+ **autotranslate_use_machine_translation** | **Boolean** | | [optional]
31
+ **autotranslate_use_translation_memory** | **Boolean** | | [optional]
32
+ **default_encoding** | **String** | | [optional]
19
33
 
20
34
  ## Code Sample
21
35
 
@@ -33,7 +47,21 @@ instance = Phrase::ProjectDetails.new(id: null,
33
47
  point_of_contact: null,
34
48
  created_at: null,
35
49
  updated_at: null,
36
- shares_translation_memory: null)
50
+ shares_translation_memory: null,
51
+ machine_translation_enabled: true,
52
+ zero_plural_form_enabled: true,
53
+ enable_all_data_type_translation_keys_for_translators: false,
54
+ enable_icu_message_format: false,
55
+ enable_branching: false,
56
+ protect_master_branch: false,
57
+ autotranslate_enabled: false,
58
+ autotranslate_check_new_translation_keys: false,
59
+ autotranslate_check_new_uploads: false,
60
+ autotranslate_check_new_locales: false,
61
+ autotranslate_mark_as_unverified: false,
62
+ autotranslate_use_machine_translation: false,
63
+ autotranslate_use_translation_memory: true,
64
+ default_encoding: UTF-8)
37
65
  ```
38
66
 
39
67
 
@@ -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@404ea1e4,
42
+ project_image: [B@69075512,
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@56d8f131)
20
+ filename: [B@fff7dc9)
21
21
  ```
22
22
 
23
23
 
data/docs/Translation.md CHANGED
@@ -15,6 +15,7 @@ Name | Type | Description | Notes
15
15
  **state** | **String** | | [optional]
16
16
  **created_at** | **Time** | | [optional]
17
17
  **updated_at** | **Time** | | [optional]
18
+ **linked_translation** | [**TranslationParent**](TranslationParent.md) | | [optional]
18
19
 
19
20
  ## Code Sample
20
21
 
@@ -31,7 +32,8 @@ instance = Phrase::Translation.new(id: null,
31
32
  placeholders: null,
32
33
  state: null,
33
34
  created_at: null,
34
- updated_at: null)
35
+ updated_at: null,
36
+ linked_translation: null)
35
37
  ```
36
38
 
37
39
 
@@ -15,9 +15,9 @@ Name | Type | Description | Notes
15
15
  **state** | **String** | | [optional]
16
16
  **created_at** | **Time** | | [optional]
17
17
  **updated_at** | **Time** | | [optional]
18
+ **linked_translation** | [**TranslationParent**](TranslationParent.md) | | [optional]
18
19
  **user** | [**UserPreview**](UserPreview.md) | | [optional]
19
20
  **word_count** | **Integer** | | [optional]
20
- **linked_translation** | [**TranslationParent**](TranslationParent.md) | | [optional]
21
21
 
22
22
  ## Code Sample
23
23
 
@@ -35,9 +35,9 @@ instance = Phrase::TranslationDetails.new(id: null,
35
35
  state: null,
36
36
  created_at: null,
37
37
  updated_at: null,
38
+ linked_translation: null,
38
39
  user: null,
39
- word_count: null,
40
- linked_translation: null)
40
+ word_count: null)
41
41
  ```
42
42
 
43
43
 
@@ -12,8 +12,6 @@ module Phrase
12
12
  # @param id [String] ID
13
13
  # @param [Hash] opts the optional parameters
14
14
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
15
- # @option opts [Integer] :page Page number
16
- # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
17
15
  # @return [Array<LocalePreview1>]
18
16
  def account_locales(id, opts = {})
19
17
  data, _status_code, _headers = account_locales_with_http_info(id, opts)
@@ -25,8 +23,6 @@ module Phrase
25
23
  # @param id [String] ID
26
24
  # @param [Hash] opts the optional parameters
27
25
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
28
- # @option opts [Integer] :page Page number
29
- # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
30
26
  # @return [Array<(Response<(Array<LocalePreview1>)>, Integer, Hash)>] Response<(Array<LocalePreview1>)> data, response status code and response headers
31
27
  def account_locales_with_http_info(id, opts = {})
32
28
  if @api_client.config.debugging
@@ -41,8 +37,6 @@ module Phrase
41
37
 
42
38
  # query parameters
43
39
  query_params = opts[:query_params] || {}
44
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
45
- query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
46
40
 
47
41
  # header parameters
48
42
  header_params = opts[:header_params] || {}
@@ -2,8 +2,6 @@ require 'date'
2
2
 
3
3
  module Phrase
4
4
  class LocalePreview1
5
- attr_accessor :id
6
-
7
5
  attr_accessor :name
8
6
 
9
7
  attr_accessor :code
@@ -13,7 +11,6 @@ module Phrase
13
11
  # Attribute mapping from ruby-style variable name to JSON key.
14
12
  def self.attribute_map
15
13
  {
16
- :'id' => :'id',
17
14
  :'name' => :'name',
18
15
  :'code' => :'code',
19
16
  :'project' => :'project'
@@ -23,7 +20,6 @@ module Phrase
23
20
  # Attribute type mapping.
24
21
  def self.openapi_types
25
22
  {
26
- :'id' => :'String',
27
23
  :'name' => :'String',
28
24
  :'code' => :'String',
29
25
  :'project' => :'ProjectShort'
@@ -51,10 +47,6 @@ module Phrase
51
47
  h[k.to_sym] = v
52
48
  }
53
49
 
54
- if attributes.key?(:'id')
55
- self.id = attributes[:'id']
56
- end
57
-
58
50
  if attributes.key?(:'name')
59
51
  self.name = attributes[:'name']
60
52
  end
@@ -86,7 +78,6 @@ module Phrase
86
78
  def ==(o)
87
79
  return true if self.equal?(o)
88
80
  self.class == o.class &&
89
- id == o.id &&
90
81
  name == o.name &&
91
82
  code == o.code &&
92
83
  project == o.project
@@ -101,7 +92,7 @@ module Phrase
101
92
  # Calculates hash code according to all attributes.
102
93
  # @return [Integer] Hash code
103
94
  def hash
104
- [id, name, code, project].hash
95
+ [name, code, project].hash
105
96
  end
106
97
 
107
98
  # Builds the object from hash
@@ -26,6 +26,34 @@ module Phrase
26
26
 
27
27
  attr_accessor :shares_translation_memory
28
28
 
29
+ attr_accessor :machine_translation_enabled
30
+
31
+ attr_accessor :zero_plural_form_enabled
32
+
33
+ attr_accessor :enable_all_data_type_translation_keys_for_translators
34
+
35
+ attr_accessor :enable_icu_message_format
36
+
37
+ attr_accessor :enable_branching
38
+
39
+ attr_accessor :protect_master_branch
40
+
41
+ attr_accessor :autotranslate_enabled
42
+
43
+ attr_accessor :autotranslate_check_new_translation_keys
44
+
45
+ attr_accessor :autotranslate_check_new_uploads
46
+
47
+ attr_accessor :autotranslate_check_new_locales
48
+
49
+ attr_accessor :autotranslate_mark_as_unverified
50
+
51
+ attr_accessor :autotranslate_use_machine_translation
52
+
53
+ attr_accessor :autotranslate_use_translation_memory
54
+
55
+ attr_accessor :default_encoding
56
+
29
57
  # Attribute mapping from ruby-style variable name to JSON key.
30
58
  def self.attribute_map
31
59
  {
@@ -40,7 +68,21 @@ module Phrase
40
68
  :'point_of_contact' => :'point_of_contact',
41
69
  :'created_at' => :'created_at',
42
70
  :'updated_at' => :'updated_at',
43
- :'shares_translation_memory' => :'shares_translation_memory'
71
+ :'shares_translation_memory' => :'shares_translation_memory',
72
+ :'machine_translation_enabled' => :'machine_translation_enabled',
73
+ :'zero_plural_form_enabled' => :'zero_plural_form_enabled',
74
+ :'enable_all_data_type_translation_keys_for_translators' => :'enable_all_data_type_translation_keys_for_translators',
75
+ :'enable_icu_message_format' => :'enable_icu_message_format',
76
+ :'enable_branching' => :'enable_branching',
77
+ :'protect_master_branch' => :'protect_master_branch',
78
+ :'autotranslate_enabled' => :'autotranslate_enabled',
79
+ :'autotranslate_check_new_translation_keys' => :'autotranslate_check_new_translation_keys',
80
+ :'autotranslate_check_new_uploads' => :'autotranslate_check_new_uploads',
81
+ :'autotranslate_check_new_locales' => :'autotranslate_check_new_locales',
82
+ :'autotranslate_mark_as_unverified' => :'autotranslate_mark_as_unverified',
83
+ :'autotranslate_use_machine_translation' => :'autotranslate_use_machine_translation',
84
+ :'autotranslate_use_translation_memory' => :'autotranslate_use_translation_memory',
85
+ :'default_encoding' => :'default_encoding'
44
86
  }
45
87
  end
46
88
 
@@ -58,7 +100,21 @@ module Phrase
58
100
  :'point_of_contact' => :'UserPreview',
59
101
  :'created_at' => :'DateTime',
60
102
  :'updated_at' => :'DateTime',
61
- :'shares_translation_memory' => :'Boolean'
103
+ :'shares_translation_memory' => :'Boolean',
104
+ :'machine_translation_enabled' => :'Boolean',
105
+ :'zero_plural_form_enabled' => :'Boolean',
106
+ :'enable_all_data_type_translation_keys_for_translators' => :'Boolean',
107
+ :'enable_icu_message_format' => :'Boolean',
108
+ :'enable_branching' => :'Boolean',
109
+ :'protect_master_branch' => :'Boolean',
110
+ :'autotranslate_enabled' => :'Boolean',
111
+ :'autotranslate_check_new_translation_keys' => :'Boolean',
112
+ :'autotranslate_check_new_uploads' => :'Boolean',
113
+ :'autotranslate_check_new_locales' => :'Boolean',
114
+ :'autotranslate_mark_as_unverified' => :'Boolean',
115
+ :'autotranslate_use_machine_translation' => :'Boolean',
116
+ :'autotranslate_use_translation_memory' => :'Boolean',
117
+ :'default_encoding' => :'String'
62
118
  }
63
119
  end
64
120
 
@@ -137,6 +193,62 @@ module Phrase
137
193
  if attributes.key?(:'shares_translation_memory')
138
194
  self.shares_translation_memory = attributes[:'shares_translation_memory']
139
195
  end
196
+
197
+ if attributes.key?(:'machine_translation_enabled')
198
+ self.machine_translation_enabled = attributes[:'machine_translation_enabled']
199
+ end
200
+
201
+ if attributes.key?(:'zero_plural_form_enabled')
202
+ self.zero_plural_form_enabled = attributes[:'zero_plural_form_enabled']
203
+ end
204
+
205
+ if attributes.key?(:'enable_all_data_type_translation_keys_for_translators')
206
+ self.enable_all_data_type_translation_keys_for_translators = attributes[:'enable_all_data_type_translation_keys_for_translators']
207
+ end
208
+
209
+ if attributes.key?(:'enable_icu_message_format')
210
+ self.enable_icu_message_format = attributes[:'enable_icu_message_format']
211
+ end
212
+
213
+ if attributes.key?(:'enable_branching')
214
+ self.enable_branching = attributes[:'enable_branching']
215
+ end
216
+
217
+ if attributes.key?(:'protect_master_branch')
218
+ self.protect_master_branch = attributes[:'protect_master_branch']
219
+ end
220
+
221
+ if attributes.key?(:'autotranslate_enabled')
222
+ self.autotranslate_enabled = attributes[:'autotranslate_enabled']
223
+ end
224
+
225
+ if attributes.key?(:'autotranslate_check_new_translation_keys')
226
+ self.autotranslate_check_new_translation_keys = attributes[:'autotranslate_check_new_translation_keys']
227
+ end
228
+
229
+ if attributes.key?(:'autotranslate_check_new_uploads')
230
+ self.autotranslate_check_new_uploads = attributes[:'autotranslate_check_new_uploads']
231
+ end
232
+
233
+ if attributes.key?(:'autotranslate_check_new_locales')
234
+ self.autotranslate_check_new_locales = attributes[:'autotranslate_check_new_locales']
235
+ end
236
+
237
+ if attributes.key?(:'autotranslate_mark_as_unverified')
238
+ self.autotranslate_mark_as_unverified = attributes[:'autotranslate_mark_as_unverified']
239
+ end
240
+
241
+ if attributes.key?(:'autotranslate_use_machine_translation')
242
+ self.autotranslate_use_machine_translation = attributes[:'autotranslate_use_machine_translation']
243
+ end
244
+
245
+ if attributes.key?(:'autotranslate_use_translation_memory')
246
+ self.autotranslate_use_translation_memory = attributes[:'autotranslate_use_translation_memory']
247
+ end
248
+
249
+ if attributes.key?(:'default_encoding')
250
+ self.default_encoding = attributes[:'default_encoding']
251
+ end
140
252
  end
141
253
 
142
254
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -168,7 +280,21 @@ module Phrase
168
280
  point_of_contact == o.point_of_contact &&
169
281
  created_at == o.created_at &&
170
282
  updated_at == o.updated_at &&
171
- shares_translation_memory == o.shares_translation_memory
283
+ shares_translation_memory == o.shares_translation_memory &&
284
+ machine_translation_enabled == o.machine_translation_enabled &&
285
+ zero_plural_form_enabled == o.zero_plural_form_enabled &&
286
+ enable_all_data_type_translation_keys_for_translators == o.enable_all_data_type_translation_keys_for_translators &&
287
+ enable_icu_message_format == o.enable_icu_message_format &&
288
+ enable_branching == o.enable_branching &&
289
+ protect_master_branch == o.protect_master_branch &&
290
+ autotranslate_enabled == o.autotranslate_enabled &&
291
+ autotranslate_check_new_translation_keys == o.autotranslate_check_new_translation_keys &&
292
+ autotranslate_check_new_uploads == o.autotranslate_check_new_uploads &&
293
+ autotranslate_check_new_locales == o.autotranslate_check_new_locales &&
294
+ autotranslate_mark_as_unverified == o.autotranslate_mark_as_unverified &&
295
+ autotranslate_use_machine_translation == o.autotranslate_use_machine_translation &&
296
+ autotranslate_use_translation_memory == o.autotranslate_use_translation_memory &&
297
+ default_encoding == o.default_encoding
172
298
  end
173
299
 
174
300
  # @see the `==` method
@@ -180,7 +306,7 @@ module Phrase
180
306
  # Calculates hash code according to all attributes.
181
307
  # @return [Integer] Hash code
182
308
  def hash
183
- [id, name, slug, main_format, project_image_url, media, account, space, point_of_contact, created_at, updated_at, shares_translation_memory].hash
309
+ [id, name, slug, main_format, project_image_url, media, account, space, point_of_contact, created_at, updated_at, shares_translation_memory, machine_translation_enabled, zero_plural_form_enabled, enable_all_data_type_translation_keys_for_translators, enable_icu_message_format, enable_branching, protect_master_branch, autotranslate_enabled, autotranslate_check_new_translation_keys, autotranslate_check_new_uploads, autotranslate_check_new_locales, autotranslate_mark_as_unverified, autotranslate_use_machine_translation, autotranslate_use_translation_memory, default_encoding].hash
184
310
  end
185
311
 
186
312
  # Builds the object from hash
@@ -24,6 +24,8 @@ module Phrase
24
24
 
25
25
  attr_accessor :updated_at
26
26
 
27
+ attr_accessor :linked_translation
28
+
27
29
  # Attribute mapping from ruby-style variable name to JSON key.
28
30
  def self.attribute_map
29
31
  {
@@ -37,7 +39,8 @@ module Phrase
37
39
  :'placeholders' => :'placeholders',
38
40
  :'state' => :'state',
39
41
  :'created_at' => :'created_at',
40
- :'updated_at' => :'updated_at'
42
+ :'updated_at' => :'updated_at',
43
+ :'linked_translation' => :'linked_translation'
41
44
  }
42
45
  end
43
46
 
@@ -54,7 +57,8 @@ module Phrase
54
57
  :'placeholders' => :'Array<String>',
55
58
  :'state' => :'String',
56
59
  :'created_at' => :'DateTime',
57
- :'updated_at' => :'DateTime'
60
+ :'updated_at' => :'DateTime',
61
+ :'linked_translation' => :'TranslationParent'
58
62
  }
59
63
  end
60
64
 
@@ -124,6 +128,10 @@ module Phrase
124
128
  if attributes.key?(:'updated_at')
125
129
  self.updated_at = attributes[:'updated_at']
126
130
  end
131
+
132
+ if attributes.key?(:'linked_translation')
133
+ self.linked_translation = attributes[:'linked_translation']
134
+ end
127
135
  end
128
136
 
129
137
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -154,7 +162,8 @@ module Phrase
154
162
  placeholders == o.placeholders &&
155
163
  state == o.state &&
156
164
  created_at == o.created_at &&
157
- updated_at == o.updated_at
165
+ updated_at == o.updated_at &&
166
+ linked_translation == o.linked_translation
158
167
  end
159
168
 
160
169
  # @see the `==` method
@@ -166,7 +175,7 @@ module Phrase
166
175
  # Calculates hash code according to all attributes.
167
176
  # @return [Integer] Hash code
168
177
  def hash
169
- [id, content, unverified, excluded, plural_suffix, key, locale, placeholders, state, created_at, updated_at].hash
178
+ [id, content, unverified, excluded, plural_suffix, key, locale, placeholders, state, created_at, updated_at, linked_translation].hash
170
179
  end
171
180
 
172
181
  # Builds the object from hash
@@ -24,12 +24,12 @@ module Phrase
24
24
 
25
25
  attr_accessor :updated_at
26
26
 
27
+ attr_accessor :linked_translation
28
+
27
29
  attr_accessor :user
28
30
 
29
31
  attr_accessor :word_count
30
32
 
31
- attr_accessor :linked_translation
32
-
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
@@ -44,9 +44,9 @@ module Phrase
44
44
  :'state' => :'state',
45
45
  :'created_at' => :'created_at',
46
46
  :'updated_at' => :'updated_at',
47
+ :'linked_translation' => :'linked_translation',
47
48
  :'user' => :'user',
48
- :'word_count' => :'word_count',
49
- :'linked_translation' => :'linked_translation'
49
+ :'word_count' => :'word_count'
50
50
  }
51
51
  end
52
52
 
@@ -64,9 +64,9 @@ module Phrase
64
64
  :'state' => :'String',
65
65
  :'created_at' => :'DateTime',
66
66
  :'updated_at' => :'DateTime',
67
+ :'linked_translation' => :'TranslationParent',
67
68
  :'user' => :'UserPreview',
68
- :'word_count' => :'Integer',
69
- :'linked_translation' => :'TranslationParent'
69
+ :'word_count' => :'Integer'
70
70
  }
71
71
  end
72
72
 
@@ -144,6 +144,10 @@ module Phrase
144
144
  self.updated_at = attributes[:'updated_at']
145
145
  end
146
146
 
147
+ if attributes.key?(:'linked_translation')
148
+ self.linked_translation = attributes[:'linked_translation']
149
+ end
150
+
147
151
  if attributes.key?(:'user')
148
152
  self.user = attributes[:'user']
149
153
  end
@@ -151,10 +155,6 @@ module Phrase
151
155
  if attributes.key?(:'word_count')
152
156
  self.word_count = attributes[:'word_count']
153
157
  end
154
-
155
- if attributes.key?(:'linked_translation')
156
- self.linked_translation = attributes[:'linked_translation']
157
- end
158
158
  end
159
159
 
160
160
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -186,9 +186,9 @@ module Phrase
186
186
  state == o.state &&
187
187
  created_at == o.created_at &&
188
188
  updated_at == o.updated_at &&
189
+ linked_translation == o.linked_translation &&
189
190
  user == o.user &&
190
- word_count == o.word_count &&
191
- linked_translation == o.linked_translation
191
+ word_count == o.word_count
192
192
  end
193
193
 
194
194
  # @see the `==` method
@@ -200,7 +200,7 @@ module Phrase
200
200
  # Calculates hash code according to all attributes.
201
201
  # @return [Integer] Hash code
202
202
  def hash
203
- [id, content, unverified, excluded, plural_suffix, key, locale, placeholders, state, created_at, updated_at, user, word_count, linked_translation].hash
203
+ [id, content, unverified, excluded, plural_suffix, key, locale, placeholders, state, created_at, updated_at, linked_translation, user, word_count].hash
204
204
  end
205
205
 
206
206
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '4.15.0'
2
+ VERSION = '4.16.1'
3
3
  end
@@ -20,12 +20,6 @@ describe 'LocalePreview1' do
20
20
  expect(@instance).to be_instance_of(Phrase::LocalePreview1)
21
21
  end
22
22
  end
23
- describe 'test attribute "id"' do
24
- it 'should work' do
25
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
- end
27
- end
28
-
29
23
  describe 'test attribute "name"' do
30
24
  it 'should work' do
31
25
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -92,4 +92,88 @@ describe 'ProjectDetails' do
92
92
  end
93
93
  end
94
94
 
95
+ describe 'test attribute "machine_translation_enabled"' 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
+
101
+ describe 'test attribute "zero_plural_form_enabled"' do
102
+ it 'should work' do
103
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
+ end
105
+ end
106
+
107
+ describe 'test attribute "enable_all_data_type_translation_keys_for_translators"' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
113
+ describe 'test attribute "enable_icu_message_format"' do
114
+ it 'should work' do
115
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
116
+ end
117
+ end
118
+
119
+ describe 'test attribute "enable_branching"' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
125
+ describe 'test attribute "protect_master_branch"' do
126
+ it 'should work' do
127
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
128
+ end
129
+ end
130
+
131
+ describe 'test attribute "autotranslate_enabled"' do
132
+ it 'should work' do
133
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
134
+ end
135
+ end
136
+
137
+ describe 'test attribute "autotranslate_check_new_translation_keys"' do
138
+ it 'should work' do
139
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
140
+ end
141
+ end
142
+
143
+ describe 'test attribute "autotranslate_check_new_uploads"' do
144
+ it 'should work' do
145
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
146
+ end
147
+ end
148
+
149
+ describe 'test attribute "autotranslate_check_new_locales"' do
150
+ it 'should work' do
151
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
152
+ end
153
+ end
154
+
155
+ describe 'test attribute "autotranslate_mark_as_unverified"' do
156
+ it 'should work' do
157
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
158
+ end
159
+ end
160
+
161
+ describe 'test attribute "autotranslate_use_machine_translation"' do
162
+ it 'should work' do
163
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
164
+ end
165
+ end
166
+
167
+ describe 'test attribute "autotranslate_use_translation_memory"' do
168
+ it 'should work' do
169
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
170
+ end
171
+ end
172
+
173
+ describe 'test attribute "default_encoding"' do
174
+ it 'should work' do
175
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
176
+ end
177
+ end
178
+
95
179
  end
@@ -86,19 +86,19 @@ describe 'TranslationDetails' do
86
86
  end
87
87
  end
88
88
 
89
- describe 'test attribute "user"' do
89
+ describe 'test attribute "linked_translation"' do
90
90
  it 'should work' do
91
91
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
92
  end
93
93
  end
94
94
 
95
- describe 'test attribute "word_count"' do
95
+ describe 'test attribute "user"' do
96
96
  it 'should work' do
97
97
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
98
  end
99
99
  end
100
100
 
101
- describe 'test attribute "linked_translation"' do
101
+ describe 'test attribute "word_count"' do
102
102
  it 'should work' do
103
103
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
104
104
  end
@@ -86,4 +86,10 @@ describe 'Translation' do
86
86
  end
87
87
  end
88
88
 
89
+ describe 'test attribute "linked_translation"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
89
95
  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.15.0
4
+ version: 4.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-11 00:00:00.000000000 Z
11
+ date: 2026-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus