phrase 2.26.0 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +5 -5
  4. data/docs/AuthorizationCreateParameters.md +1 -1
  5. data/docs/AuthorizationsApi.md +1 -1
  6. data/docs/BlacklistedKeyCreateParameters.md +1 -1
  7. data/docs/BlacklistedKeysApi.md +1 -1
  8. data/docs/BranchCreateParameters.md +1 -1
  9. data/docs/BranchesApi.md +1 -1
  10. data/docs/DistributionCreateParameters.md +2 -2
  11. data/docs/DistributionsApi.md +1 -1
  12. data/docs/FigmaAttachmentCreateParameters.md +1 -1
  13. data/docs/FigmaAttachmentsApi.md +1 -1
  14. data/docs/GlossariesApi.md +1 -1
  15. data/docs/GlossaryCreateParameters.md +1 -1
  16. data/docs/GlossaryTermCreateParameters.md +1 -1
  17. data/docs/GlossaryTermTranslationCreateParameters.md +2 -2
  18. data/docs/GlossaryTermTranslationsApi.md +1 -1
  19. data/docs/GlossaryTermsApi.md +1 -1
  20. data/docs/ICUApi.md +4 -4
  21. data/docs/InvitationCreateParameters.md +2 -2
  22. data/docs/InvitationsApi.md +1 -1
  23. data/docs/JobCreateParameters.md +1 -1
  24. data/docs/JobsApi.md +1 -1
  25. data/docs/KeyCreateParameters.md +2 -2
  26. data/docs/KeyLink.md +7 -7
  27. data/docs/KeyLinksBatchDestroyParameters.md +3 -1
  28. data/docs/KeyUpdateParameters.md +1 -1
  29. data/docs/KeysApi.md +1 -1
  30. data/docs/LinkedKeysApi.md +4 -6
  31. data/docs/LocaleCreateParameters.md +3 -3
  32. data/docs/LocaleUpdateParameters.md +1 -1
  33. data/docs/LocalesApi.md +3 -3
  34. data/docs/OrderCreateParameters.md +4 -4
  35. data/docs/OrdersApi.md +1 -1
  36. data/docs/ProjectCreateParameters.md +2 -2
  37. data/docs/ProjectUpdateParameters.md +1 -1
  38. data/docs/ProjectsApi.md +1 -1
  39. data/docs/ScreenshotMarkerCreateParameters.md +1 -1
  40. data/docs/ScreenshotMarkersApi.md +1 -1
  41. data/docs/ScreenshotUpdateParameters.md +1 -1
  42. data/docs/SpaceCreateParameters.md +1 -1
  43. data/docs/SpacesApi.md +2 -2
  44. data/docs/SpacesProjectsCreateParameters.md +1 -1
  45. data/docs/StyleGuidesApi.md +1 -1
  46. data/docs/StyleguideCreateParameters.md +1 -1
  47. data/docs/TagCreateParameters.md +1 -1
  48. data/docs/TagsApi.md +1 -1
  49. data/docs/TeamCreateParameters.md +1 -1
  50. data/docs/TeamsApi.md +4 -4
  51. data/docs/TeamsProjectsCreateParameters.md +1 -1
  52. data/docs/TeamsSpacesCreateParameters.md +1 -1
  53. data/docs/TeamsUsersCreateParameters.md +1 -1
  54. data/docs/TranslationCreateParameters.md +1 -1
  55. data/docs/UploadsApi.md +12 -10
  56. data/docs/VariableCreateParameters.md +1 -1
  57. data/docs/VariablesApi.md +1 -1
  58. data/docs/WebhookCreateParameters.md +1 -1
  59. data/docs/WebhooksApi.md +1 -1
  60. data/lib/phrase/api/icu_api.rb +4 -4
  61. data/lib/phrase/api/linked_keys_api.rb +2 -5
  62. data/lib/phrase/api/locales_api.rb +2 -2
  63. data/lib/phrase/api/uploads_api.rb +29 -14
  64. data/lib/phrase/models/authorization_create_parameters.rb +5 -0
  65. data/lib/phrase/models/blacklisted_key_create_parameters.rb +5 -0
  66. data/lib/phrase/models/branch_create_parameters.rb +5 -0
  67. data/lib/phrase/models/distribution_create_parameters.rb +10 -0
  68. data/lib/phrase/models/figma_attachment_create_parameters.rb +5 -0
  69. data/lib/phrase/models/glossary_create_parameters.rb +5 -0
  70. data/lib/phrase/models/glossary_term_create_parameters.rb +5 -0
  71. data/lib/phrase/models/glossary_term_translation_create_parameters.rb +10 -0
  72. data/lib/phrase/models/invitation_create_parameters.rb +10 -0
  73. data/lib/phrase/models/job_create_parameters.rb +5 -0
  74. data/lib/phrase/models/key_create_parameters.rb +5 -0
  75. data/lib/phrase/models/key_link.rb +0 -35
  76. data/lib/phrase/models/key_links_batch_destroy_parameters.rb +16 -4
  77. data/lib/phrase/models/locale_create_parameters.rb +11 -1
  78. data/lib/phrase/models/locale_update_parameters.rb +1 -1
  79. data/lib/phrase/models/order_create_parameters.rb +12 -2
  80. data/lib/phrase/models/project_create_parameters.rb +5 -0
  81. data/lib/phrase/models/screenshot_marker_create_parameters.rb +5 -0
  82. data/lib/phrase/models/space_create_parameters.rb +5 -0
  83. data/lib/phrase/models/spaces_projects_create_parameters.rb +5 -0
  84. data/lib/phrase/models/styleguide_create_parameters.rb +5 -0
  85. data/lib/phrase/models/tag_create_parameters.rb +5 -0
  86. data/lib/phrase/models/team_create_parameters.rb +5 -0
  87. data/lib/phrase/models/teams_projects_create_parameters.rb +5 -0
  88. data/lib/phrase/models/teams_spaces_create_parameters.rb +5 -0
  89. data/lib/phrase/models/teams_users_create_parameters.rb +5 -0
  90. data/lib/phrase/models/translation_create_parameters.rb +1 -1
  91. data/lib/phrase/models/variable_create_parameters.rb +5 -0
  92. data/lib/phrase/models/webhook_create_parameters.rb +5 -0
  93. data/lib/phrase/version.rb +1 -1
  94. data/spec/api/icu_api_spec.rb +2 -2
  95. data/spec/api/linked_keys_api_spec.rb +1 -2
  96. data/spec/api/locales_api_spec.rb +1 -1
  97. data/spec/api/uploads_api_spec.rb +2 -2
  98. data/spec/models/key_links_batch_destroy_parameters_spec.rb +6 -0
  99. metadata +2 -2
@@ -120,12 +120,22 @@ module Phrase
120
120
  # @return Array for valid properties with the reasons
121
121
  def list_invalid_properties
122
122
  invalid_properties = Array.new
123
+ if @email.nil?
124
+ invalid_properties.push('invalid value for "email", email cannot be nil.')
125
+ end
126
+
127
+ if @role.nil?
128
+ invalid_properties.push('invalid value for "role", role cannot be nil.')
129
+ end
130
+
123
131
  invalid_properties
124
132
  end
125
133
 
126
134
  # Check to see if the all the properties in the model are valid
127
135
  # @return true if the model is valid
128
136
  def valid?
137
+ return false if @email.nil?
138
+ return false if @role.nil?
129
139
  true
130
140
  end
131
141
 
@@ -126,12 +126,17 @@ module Phrase
126
126
  # @return Array for valid properties with the reasons
127
127
  def list_invalid_properties
128
128
  invalid_properties = Array.new
129
+ if @name.nil?
130
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
131
+ end
132
+
129
133
  invalid_properties
130
134
  end
131
135
 
132
136
  # Check to see if the all the properties in the model are valid
133
137
  # @return true if the model is valid
134
138
  def valid?
139
+ return false if @name.nil?
135
140
  true
136
141
  end
137
142
 
@@ -193,12 +193,17 @@ module Phrase
193
193
  # @return Array for valid properties with the reasons
194
194
  def list_invalid_properties
195
195
  invalid_properties = Array.new
196
+ if @name.nil?
197
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
198
+ end
199
+
196
200
  invalid_properties
197
201
  end
198
202
 
199
203
  # Check to see if the all the properties in the model are valid
200
204
  # @return true if the model is valid
201
205
  def valid?
206
+ return false if @name.nil?
202
207
  true
203
208
  end
204
209
 
@@ -101,47 +101,12 @@ module Phrase
101
101
  # @return Array for valid properties with the reasons
102
102
  def list_invalid_properties
103
103
  invalid_properties = Array.new
104
- if @created_at.nil?
105
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
106
- end
107
-
108
- if @updated_at.nil?
109
- invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
110
- end
111
-
112
- if @created_by.nil?
113
- invalid_properties.push('invalid value for "created_by", created_by cannot be nil.')
114
- end
115
-
116
- if @updated_by.nil?
117
- invalid_properties.push('invalid value for "updated_by", updated_by cannot be nil.')
118
- end
119
-
120
- if @account.nil?
121
- invalid_properties.push('invalid value for "account", account cannot be nil.')
122
- end
123
-
124
- if @parent.nil?
125
- invalid_properties.push('invalid value for "parent", parent cannot be nil.')
126
- end
127
-
128
- if @children.nil?
129
- invalid_properties.push('invalid value for "children", children cannot be nil.')
130
- end
131
-
132
104
  invalid_properties
133
105
  end
134
106
 
135
107
  # Check to see if the all the properties in the model are valid
136
108
  # @return true if the model is valid
137
109
  def valid?
138
- return false if @created_at.nil?
139
- return false if @updated_at.nil?
140
- return false if @created_by.nil?
141
- return false if @updated_by.nil?
142
- return false if @account.nil?
143
- return false if @parent.nil?
144
- return false if @children.nil?
145
110
  true
146
111
  end
147
112
 
@@ -5,17 +5,22 @@ module Phrase
5
5
  # The IDs of the child keys to unlink from the parent key.
6
6
  attr_accessor :child_key_ids
7
7
 
8
+ # Whether to unlink the parent key as well and unmark it as linked-key.
9
+ attr_accessor :unlink_parent
10
+
8
11
  # Attribute mapping from ruby-style variable name to JSON key.
9
12
  def self.attribute_map
10
13
  {
11
- :'child_key_ids' => :'child_key_ids'
14
+ :'child_key_ids' => :'child_key_ids',
15
+ :'unlink_parent' => :'unlink_parent'
12
16
  }
13
17
  end
14
18
 
15
19
  # Attribute type mapping.
16
20
  def self.openapi_types
17
21
  {
18
- :'child_key_ids' => :'Array<String>'
22
+ :'child_key_ids' => :'Array<String>',
23
+ :'unlink_parent' => :'Boolean'
19
24
  }
20
25
  end
21
26
 
@@ -45,6 +50,12 @@ module Phrase
45
50
  self.child_key_ids = value
46
51
  end
47
52
  end
53
+
54
+ if attributes.key?(:'unlink_parent')
55
+ self.unlink_parent = attributes[:'unlink_parent']
56
+ else
57
+ self.unlink_parent = false
58
+ end
48
59
  end
49
60
 
50
61
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -70,7 +81,8 @@ module Phrase
70
81
  def ==(o)
71
82
  return true if self.equal?(o)
72
83
  self.class == o.class &&
73
- child_key_ids == o.child_key_ids
84
+ child_key_ids == o.child_key_ids &&
85
+ unlink_parent == o.unlink_parent
74
86
  end
75
87
 
76
88
  # @see the `==` method
@@ -82,7 +94,7 @@ module Phrase
82
94
  # Calculates hash code according to all attributes.
83
95
  # @return [Integer] Hash code
84
96
  def hash
85
- [child_key_ids].hash
97
+ [child_key_ids, unlink_parent].hash
86
98
  end
87
99
 
88
100
  # Builds the object from hash
@@ -20,7 +20,7 @@ module Phrase
20
20
  # Indicates whether locale is a RTL (Right-to-Left) locale.
21
21
  attr_accessor :rtl
22
22
 
23
- # Source locale. Can be the name or public id of the locale. Preferred is the public id.
23
+ # Source locale. Can be the name or id of the locale. Preferred is id.
24
24
  attr_accessor :source_locale_id
25
25
 
26
26
  # Fallback locale for empty translations. Can be a locale name or id.
@@ -139,12 +139,22 @@ module Phrase
139
139
  # @return Array for valid properties with the reasons
140
140
  def list_invalid_properties
141
141
  invalid_properties = Array.new
142
+ if @name.nil?
143
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
144
+ end
145
+
146
+ if @code.nil?
147
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
148
+ end
149
+
142
150
  invalid_properties
143
151
  end
144
152
 
145
153
  # Check to see if the all the properties in the model are valid
146
154
  # @return true if the model is valid
147
155
  def valid?
156
+ return false if @name.nil?
157
+ return false if @code.nil?
148
158
  true
149
159
  end
150
160
 
@@ -20,7 +20,7 @@ module Phrase
20
20
  # Indicates whether locale is a RTL (Right-to-Left) locale.
21
21
  attr_accessor :rtl
22
22
 
23
- # Source locale. Can be the name or public id of the locale. Preferred is the public id.
23
+ # Source locale. Can be the name or id of the locale. Preferred is id.
24
24
  attr_accessor :source_locale_id
25
25
 
26
26
  # Fallback locale for empty translations. Can be a locale name or id.
@@ -11,10 +11,10 @@ module Phrase
11
11
  # Name of the LSP that should process this order. Can be one of gengo, textmaster.
12
12
  attr_accessor :lsp
13
13
 
14
- # Source locale for the order. Can be the name or public id of the source locale. Preferred is the public id.
14
+ # Source locale for the order. Can be the name or id of the source locale. Preferred is id.
15
15
  attr_accessor :source_locale_id
16
16
 
17
- # List of target locales you want the source content translate to. Can be the name or public id of the target locales. Preferred is the public id.
17
+ # List of target locales you want the source content translate to. Can be the name or id of the target locales. Preferred is id.
18
18
  attr_accessor :target_locale_ids
19
19
 
20
20
  # Name of the quality level, availability depends on the LSP. Can be one of: standard, pro (for orders processed by Gengo) and one of regular, premium, enterprise (for orders processed by TextMaster)
@@ -177,12 +177,22 @@ module Phrase
177
177
  # @return Array for valid properties with the reasons
178
178
  def list_invalid_properties
179
179
  invalid_properties = Array.new
180
+ if @name.nil?
181
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
182
+ end
183
+
184
+ if @lsp.nil?
185
+ invalid_properties.push('invalid value for "lsp", lsp cannot be nil.')
186
+ end
187
+
180
188
  invalid_properties
181
189
  end
182
190
 
183
191
  # Check to see if the all the properties in the model are valid
184
192
  # @return true if the model is valid
185
193
  def valid?
194
+ return false if @name.nil?
195
+ return false if @lsp.nil?
186
196
  true
187
197
  end
188
198
 
@@ -274,12 +274,17 @@ module Phrase
274
274
  # @return Array for valid properties with the reasons
275
275
  def list_invalid_properties
276
276
  invalid_properties = Array.new
277
+ if @name.nil?
278
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
279
+ end
280
+
277
281
  invalid_properties
278
282
  end
279
283
 
280
284
  # Check to see if the all the properties in the model are valid
281
285
  # @return true if the model is valid
282
286
  def valid?
287
+ return false if @name.nil?
283
288
  true
284
289
  end
285
290
 
@@ -67,12 +67,17 @@ module Phrase
67
67
  # @return Array for valid properties with the reasons
68
68
  def list_invalid_properties
69
69
  invalid_properties = Array.new
70
+ if @key_id.nil?
71
+ invalid_properties.push('invalid value for "key_id", key_id cannot be nil.')
72
+ end
73
+
70
74
  invalid_properties
71
75
  end
72
76
 
73
77
  # Check to see if the all the properties in the model are valid
74
78
  # @return true if the model is valid
75
79
  def valid?
80
+ return false if @key_id.nil?
76
81
  true
77
82
  end
78
83
 
@@ -49,12 +49,17 @@ module Phrase
49
49
  # @return Array for valid properties with the reasons
50
50
  def list_invalid_properties
51
51
  invalid_properties = Array.new
52
+ if @name.nil?
53
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
54
+ end
55
+
52
56
  invalid_properties
53
57
  end
54
58
 
55
59
  # Check to see if the all the properties in the model are valid
56
60
  # @return true if the model is valid
57
61
  def valid?
62
+ return false if @name.nil?
58
63
  true
59
64
  end
60
65
 
@@ -49,12 +49,17 @@ module Phrase
49
49
  # @return Array for valid properties with the reasons
50
50
  def list_invalid_properties
51
51
  invalid_properties = Array.new
52
+ if @id.nil?
53
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
54
+ end
55
+
52
56
  invalid_properties
53
57
  end
54
58
 
55
59
  # Check to see if the all the properties in the model are valid
56
60
  # @return true if the model is valid
57
61
  def valid?
62
+ return false if @id.nil?
58
63
  true
59
64
  end
60
65
 
@@ -157,12 +157,17 @@ module Phrase
157
157
  # @return Array for valid properties with the reasons
158
158
  def list_invalid_properties
159
159
  invalid_properties = Array.new
160
+ if @title.nil?
161
+ invalid_properties.push('invalid value for "title", title cannot be nil.')
162
+ end
163
+
160
164
  invalid_properties
161
165
  end
162
166
 
163
167
  # Check to see if the all the properties in the model are valid
164
168
  # @return true if the model is valid
165
169
  def valid?
170
+ return false if @title.nil?
166
171
  true
167
172
  end
168
173
 
@@ -58,12 +58,17 @@ module Phrase
58
58
  # @return Array for valid properties with the reasons
59
59
  def list_invalid_properties
60
60
  invalid_properties = Array.new
61
+ if @name.nil?
62
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
63
+ end
64
+
61
65
  invalid_properties
62
66
  end
63
67
 
64
68
  # Check to see if the all the properties in the model are valid
65
69
  # @return true if the model is valid
66
70
  def valid?
71
+ return false if @name.nil?
67
72
  true
68
73
  end
69
74
 
@@ -49,12 +49,17 @@ module Phrase
49
49
  # @return Array for valid properties with the reasons
50
50
  def list_invalid_properties
51
51
  invalid_properties = Array.new
52
+ if @name.nil?
53
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
54
+ end
55
+
52
56
  invalid_properties
53
57
  end
54
58
 
55
59
  # Check to see if the all the properties in the model are valid
56
60
  # @return true if the model is valid
57
61
  def valid?
62
+ return false if @name.nil?
58
63
  true
59
64
  end
60
65
 
@@ -49,12 +49,17 @@ module Phrase
49
49
  # @return Array for valid properties with the reasons
50
50
  def list_invalid_properties
51
51
  invalid_properties = Array.new
52
+ if @id.nil?
53
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
54
+ end
55
+
52
56
  invalid_properties
53
57
  end
54
58
 
55
59
  # Check to see if the all the properties in the model are valid
56
60
  # @return true if the model is valid
57
61
  def valid?
62
+ return false if @id.nil?
58
63
  true
59
64
  end
60
65
 
@@ -49,12 +49,17 @@ module Phrase
49
49
  # @return Array for valid properties with the reasons
50
50
  def list_invalid_properties
51
51
  invalid_properties = Array.new
52
+ if @id.nil?
53
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
54
+ end
55
+
52
56
  invalid_properties
53
57
  end
54
58
 
55
59
  # Check to see if the all the properties in the model are valid
56
60
  # @return true if the model is valid
57
61
  def valid?
62
+ return false if @id.nil?
58
63
  true
59
64
  end
60
65
 
@@ -49,12 +49,17 @@ module Phrase
49
49
  # @return Array for valid properties with the reasons
50
50
  def list_invalid_properties
51
51
  invalid_properties = Array.new
52
+ if @id.nil?
53
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
54
+ end
55
+
52
56
  invalid_properties
53
57
  end
54
58
 
55
59
  # Check to see if the all the properties in the model are valid
56
60
  # @return true if the model is valid
57
61
  def valid?
62
+ return false if @id.nil?
58
63
  true
59
64
  end
60
65
 
@@ -5,7 +5,7 @@ module Phrase
5
5
  # specify the branch to use
6
6
  attr_accessor :branch
7
7
 
8
- # Locale. Can be the name or public id of the locale. Preferred is the public id.
8
+ # Locale. Can be the name or id of the locale. Preferred is id
9
9
  attr_accessor :locale_id
10
10
 
11
11
  # Key
@@ -58,12 +58,17 @@ module Phrase
58
58
  # @return Array for valid properties with the reasons
59
59
  def list_invalid_properties
60
60
  invalid_properties = Array.new
61
+ if @name.nil?
62
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
63
+ end
64
+
61
65
  invalid_properties
62
66
  end
63
67
 
64
68
  # Check to see if the all the properties in the model are valid
65
69
  # @return true if the model is valid
66
70
  def valid?
71
+ return false if @name.nil?
67
72
  true
68
73
  end
69
74
 
@@ -94,12 +94,17 @@ module Phrase
94
94
  # @return Array for valid properties with the reasons
95
95
  def list_invalid_properties
96
96
  invalid_properties = Array.new
97
+ if @callback_url.nil?
98
+ invalid_properties.push('invalid value for "callback_url", callback_url cannot be nil.')
99
+ end
100
+
97
101
  invalid_properties
98
102
  end
99
103
 
100
104
  # Check to see if the all the properties in the model are valid
101
105
  # @return true if the model is valid
102
106
  def valid?
107
+ return false if @callback_url.nil?
103
108
  true
104
109
  end
105
110
 
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '2.26.0'
2
+ VERSION = '3.1.0'
3
3
  end
@@ -21,8 +21,8 @@ describe 'ICUApi' do
21
21
  end
22
22
 
23
23
  # unit tests for icu_skeleton
24
- # Build icu skeletons
25
- # Returns icu skeletons for multiple locale codes based on a source content.
24
+ # Build ICU skeletons
25
+ # Returns ICU skeletons for multiple locale codes based on a source content.
26
26
  # @param icu_skeleton_parameters
27
27
  # @param [Hash] opts the optional parameters
28
28
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
@@ -28,7 +28,6 @@ describe 'LinkedKeysApi' do
28
28
  # @param key_links_batch_destroy_parameters
29
29
  # @param [Hash] opts the optional parameters
30
30
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
31
- # @option opts [Boolean] :unlink_parent Whether to unlink the parent key as well and unmark it as linked-key.
32
31
  # @return [nil]
33
32
  describe 'key_links_batch_destroy test' do
34
33
  it 'should work' do
@@ -67,7 +66,7 @@ describe 'LinkedKeysApi' do
67
66
  end
68
67
 
69
68
  # unit tests for key_links_index
70
- # Retrieve all child keys linked to a specific parent key
69
+ # List child keys of a parent key
71
70
  # Returns detailed information about a parent key, including its linked child keys.
72
71
  # @param project_id Project ID
73
72
  # @param id Parent Translation Key ID
@@ -87,7 +87,7 @@ describe 'LocalesApi' do
87
87
  # @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with &lt;code&gt;include_unverified_translations&lt;/code&gt;.
88
88
  # @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
89
89
  # @option opts [Boolean] :use_last_reviewed_version If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project.
90
- # @option opts [String] :fallback_locale_id If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the public ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to &lt;code&gt;true&lt;/code&gt;.
90
+ # @option opts [String] :fallback_locale_id If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to &lt;code&gt;true&lt;/code&gt;.
91
91
  # @option opts [String] :source_locale_id Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a &lt;code&gt;tag&lt;/code&gt; parameter indicating a specific job.
92
92
  # @return [File]
93
93
  describe 'locale_download test' do
@@ -29,7 +29,7 @@ describe 'UploadsApi' do
29
29
  # @option opts [String] :branch specify the branch to use
30
30
  # @option opts [File] :file File to be imported
31
31
  # @option opts [String] :file_format File format. Auto-detected when possible and not specified.
32
- # @option opts [String] :locale_id Locale of the file&#39;s content. Can be the name or public id of the locale. Preferred is the public id.
32
+ # @option opts [String] :locale_id Locale of the file&#39;s content. Can be the name or id of the locale. Preferred is id.
33
33
  # @option opts [String] :tags List of tags separated by comma to be associated with the new keys contained in the upload.
34
34
  # @option opts [Boolean] :update_translations Indicates whether existing translations should be updated with the file content.
35
35
  # @option opts [Boolean] :update_descriptions Existing key descriptions will be updated with the file content. Empty descriptions overwrite existing descriptions.
@@ -53,7 +53,7 @@ describe 'UploadsApi' do
53
53
  end
54
54
 
55
55
  it 'should work' do
56
- @api_instance.upload_create('project_id', file: File.new('Gemfile'))
56
+ @api_instance.upload_create('project_id', File.new('Gemfile'), "yml", "en")
57
57
 
58
58
  expect(a_request(:post, 'https://api.phrase.com/v2/projects/project_id/uploads')
59
59
  .with { |req|
@@ -26,4 +26,10 @@ describe 'KeyLinksBatchDestroyParameters' do
26
26
  end
27
27
  end
28
28
 
29
+ describe 'test attribute "unlink_parent"' do
30
+ it 'should work' do
31
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
+ end
33
+ end
34
+
29
35
  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: 2.26.0
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phrase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-22 00:00:00.000000000 Z
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus