phrase 1.0.7 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -9
  3. data/docs/BranchName.md +17 -0
  4. data/docs/CurrentUser.md +31 -0
  5. data/docs/Invitation.md +9 -1
  6. data/docs/InvitationCreateParameters.md +4 -0
  7. data/docs/InvitationUpdateParameters.md +4 -0
  8. data/docs/InvitationUpdateSettingsParameters.md +19 -0
  9. data/docs/InvitationsApi.md +66 -0
  10. data/docs/Job.md +5 -3
  11. data/docs/JobDetails.md +4 -2
  12. data/docs/JobLocale.md +7 -1
  13. data/docs/KeysApi.md +5 -5
  14. data/docs/LocalesApi.md +7 -4
  15. data/docs/Member.md +7 -1
  16. data/docs/MemberProjectDetail.md +35 -0
  17. data/docs/MemberProjectDetailProjectRoles.md +19 -0
  18. data/docs/MemberSpaces.md +25 -0
  19. data/docs/MemberUpdateParameters.md +4 -0
  20. data/docs/MemberUpdateSettingsParameters.md +19 -0
  21. data/docs/MembersApi.md +66 -0
  22. data/docs/ProjectUpdateParameters.md +43 -9
  23. data/docs/ScreenshotCreateParameters.md +3 -1
  24. data/docs/ScreenshotMarkerCreateParameters.md +3 -1
  25. data/docs/ScreenshotMarkerUpdateParameters.md +3 -1
  26. data/docs/ScreenshotMarkersApi.md +9 -3
  27. data/docs/ScreenshotUpdateParameters.md +3 -1
  28. data/docs/ScreenshotsApi.md +8 -2
  29. data/docs/TranslationsApi.md +25 -25
  30. data/docs/UsersApi.md +2 -2
  31. data/docs/Variable.md +23 -0
  32. data/docs/VariableCreateParameters.md +19 -0
  33. data/docs/VariableUpdateParameters.md +19 -0
  34. data/docs/VariablesApi.md +331 -0
  35. data/docs/Webhook.md +2 -0
  36. data/docs/WebhookCreateParameters.md +3 -1
  37. data/docs/WebhookUpdateParameters.md +3 -1
  38. data/lib/phrase.rb +11 -0
  39. data/lib/phrase/api/invitations_api.rb +80 -0
  40. data/lib/phrase/api/keys_api.rb +6 -6
  41. data/lib/phrase/api/locales_api.rb +8 -3
  42. data/lib/phrase/api/members_api.rb +80 -0
  43. data/lib/phrase/api/screenshot_markers_api.rb +9 -0
  44. data/lib/phrase/api/screenshots_api.rb +9 -0
  45. data/lib/phrase/api/translations_api.rb +35 -35
  46. data/lib/phrase/api/users_api.rb +3 -3
  47. data/lib/phrase/api/variables_api.rb +378 -0
  48. data/lib/phrase/api_client.rb +2 -0
  49. data/lib/phrase/models/branch_name.rb +194 -0
  50. data/lib/phrase/models/current_user.rb +257 -0
  51. data/lib/phrase/models/invitation.rb +48 -4
  52. data/lib/phrase/models/invitation_create_parameters.rb +25 -1
  53. data/lib/phrase/models/invitation_update_parameters.rb +25 -1
  54. data/lib/phrase/models/invitation_update_settings_parameters.rb +207 -0
  55. data/lib/phrase/models/job.rb +22 -13
  56. data/lib/phrase/models/job_details.rb +19 -10
  57. data/lib/phrase/models/job_locale.rb +31 -4
  58. data/lib/phrase/models/member.rb +35 -4
  59. data/lib/phrase/models/member_project_detail.rb +285 -0
  60. data/lib/phrase/models/member_project_detail_project_roles.rb +203 -0
  61. data/lib/phrase/models/member_spaces.rb +230 -0
  62. data/lib/phrase/models/member_update_parameters.rb +25 -1
  63. data/lib/phrase/models/member_update_settings_parameters.rb +207 -0
  64. data/lib/phrase/models/project_update_parameters.rb +183 -13
  65. data/lib/phrase/models/screenshot_create_parameters.rb +11 -1
  66. data/lib/phrase/models/screenshot_marker_create_parameters.rb +11 -1
  67. data/lib/phrase/models/screenshot_marker_update_parameters.rb +11 -1
  68. data/lib/phrase/models/screenshot_update_parameters.rb +11 -1
  69. data/lib/phrase/models/variable.rb +221 -0
  70. data/lib/phrase/models/variable_create_parameters.rb +205 -0
  71. data/lib/phrase/models/variable_update_parameters.rb +205 -0
  72. data/lib/phrase/models/webhook.rb +10 -1
  73. data/lib/phrase/models/webhook_create_parameters.rb +14 -4
  74. data/lib/phrase/models/webhook_update_parameters.rb +14 -4
  75. data/lib/phrase/version.rb +1 -1
  76. data/spec/api/invitations_api_spec.rb +15 -0
  77. data/spec/api/keys_api_spec.rb +2 -2
  78. data/spec/api/locales_api_spec.rb +2 -1
  79. data/spec/api/members_api_spec.rb +15 -0
  80. data/spec/api/screenshot_markers_api_spec.rb +3 -0
  81. data/spec/api/screenshots_api_spec.rb +3 -0
  82. data/spec/api/translations_api_spec.rb +10 -10
  83. data/spec/api/users_api_spec.rb +1 -1
  84. data/spec/api/variables_api_spec.rb +95 -0
  85. data/spec/models/branch_name_spec.rb +29 -0
  86. data/spec/models/current_user_spec.rb +71 -0
  87. data/spec/models/invitation_create_parameters_spec.rb +12 -0
  88. data/spec/models/invitation_spec.rb +24 -0
  89. data/spec/models/invitation_update_parameters_spec.rb +12 -0
  90. data/spec/models/invitation_update_settings_parameters_spec.rb +35 -0
  91. data/spec/models/job_details_spec.rb +9 -3
  92. data/spec/models/job_locale_spec.rb +18 -0
  93. data/spec/models/job_spec.rb +9 -3
  94. data/spec/models/member_project_detail_project_roles_spec.rb +35 -0
  95. data/spec/models/member_project_detail_spec.rb +83 -0
  96. data/spec/models/member_spaces_spec.rb +53 -0
  97. data/spec/models/member_spec.rb +18 -0
  98. data/spec/models/member_update_parameters_spec.rb +12 -0
  99. data/spec/models/member_update_settings_parameters_spec.rb +35 -0
  100. data/spec/models/project_update_parameters_spec.rb +103 -1
  101. data/spec/models/screenshot_create_parameters_spec.rb +6 -0
  102. data/spec/models/screenshot_marker_create_parameters_spec.rb +6 -0
  103. data/spec/models/screenshot_marker_update_parameters_spec.rb +6 -0
  104. data/spec/models/screenshot_update_parameters_spec.rb +6 -0
  105. data/spec/models/variable_create_parameters_spec.rb +35 -0
  106. data/spec/models/variable_spec.rb +47 -0
  107. data/spec/models/variable_update_parameters_spec.rb +35 -0
  108. data/spec/models/webhook_create_parameters_spec.rb +6 -0
  109. data/spec/models/webhook_spec.rb +6 -0
  110. data/spec/models/webhook_update_parameters_spec.rb +6 -0
  111. metadata +206 -162
data/docs/LocalesApi.md CHANGED
@@ -142,7 +142,7 @@ Response<(nil (empty response body))>
142
142
 
143
143
  ## locale_download
144
144
 
145
- > locale_download(project_id, id, opts)
145
+ > File locale_download(project_id, id, opts)
146
146
 
147
147
  Download a locale
148
148
 
@@ -174,6 +174,7 @@ opts = {
174
174
  tags: 'feature1,feature2', # String | Limit results to keys tagged with a list of comma separated tag names.
175
175
  tag: 'feature', # String | Limit download to tagged keys. This parameter is deprecated. Please use the \"tags\" parameter instead
176
176
  include_empty_translations: true, # Boolean | Indicates whether keys without translations should be included in the output as well.
177
+ exclude_empty_zero_forms: true, # Boolean | Indicates whether zero forms should be included when empty in pluralized keys.
177
178
  include_translated_keys: true, # Boolean | Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
178
179
  keep_notranslate_tags: true, # Boolean | Indicates whether [NOTRANSLATE] tags should be kept.
179
180
  convert_emoji: true, # Boolean | This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
@@ -187,7 +188,8 @@ opts = {
187
188
 
188
189
  begin
189
190
  #Download a locale
190
- api_instance.locale_download(project_id, id, opts)
191
+ result = api_instance.locale_download(project_id, id, opts)
192
+ pp result
191
193
  rescue Phrase::ApiError => e
192
194
  puts "Exception when calling LocalesApi->locale_download: #{e}"
193
195
  end
@@ -206,6 +208,7 @@ Name | Type | Description | Notes
206
208
  **tags** | **String**| Limit results to keys tagged with a list of comma separated tag names. | [optional]
207
209
  **tag** | **String**| Limit download to tagged keys. This parameter is deprecated. Please use the \&quot;tags\&quot; parameter instead | [optional]
208
210
  **include_empty_translations** | **Boolean**| Indicates whether keys without translations should be included in the output as well. | [optional]
211
+ **exclude_empty_zero_forms** | **Boolean**| Indicates whether zero forms should be included when empty in pluralized keys. | [optional]
209
212
  **include_translated_keys** | **Boolean**| Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys. | [optional]
210
213
  **keep_notranslate_tags** | **Boolean**| Indicates whether [NOTRANSLATE] tags should be kept. | [optional]
211
214
  **convert_emoji** | **Boolean**| This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively. | [optional]
@@ -218,7 +221,7 @@ Name | Type | Description | Notes
218
221
 
219
222
  ### Return type
220
223
 
221
- Response<(nil (empty response body))>
224
+ Response<(**File**)>
222
225
 
223
226
  ### Authorization
224
227
 
@@ -227,7 +230,7 @@ Response<(nil (empty response body))>
227
230
  ### HTTP request headers
228
231
 
229
232
  - **Content-Type**: Not defined
230
- - **Accept**: Not defined
233
+ - **Accept**: *
231
234
 
232
235
 
233
236
  ## locale_show
data/docs/Member.md CHANGED
@@ -9,6 +9,9 @@ Name | Type | Description | Notes
9
9
  **username** | **String** | | [optional]
10
10
  **role** | **String** | | [optional]
11
11
  **projects** | [**Array&lt;ProjectLocales&gt;**](ProjectLocales.md) | | [optional]
12
+ **permissions** | [**Object**](.md) | | [optional]
13
+ **default_locale_codes** | **Array&lt;String&gt;** | | [optional]
14
+ **spaces** | [**Array&lt;MemberSpaces&gt;**](MemberSpaces.md) | | [optional]
12
15
 
13
16
  ## Code Sample
14
17
 
@@ -19,7 +22,10 @@ instance = Phrase::Member.new(id: null,
19
22
  email: null,
20
23
  username: null,
21
24
  role: null,
22
- projects: null)
25
+ projects: null,
26
+ permissions: null,
27
+ default_locale_codes: null,
28
+ spaces: null)
23
29
  ```
24
30
 
25
31
 
@@ -0,0 +1,35 @@
1
+ # Phrase::MemberProjectDetail
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | | [optional]
8
+ **email** | **String** | | [optional]
9
+ **username** | **String** | | [optional]
10
+ **role** | **String** | | [optional]
11
+ **projects** | [**Array&lt;ProjectLocales&gt;**](ProjectLocales.md) | | [optional]
12
+ **permissions** | [**Object**](.md) | | [optional]
13
+ **locale_ids** | **Array&lt;String&gt;** | | [optional]
14
+ **default_locale_codes** | **Array&lt;String&gt;** | | [optional]
15
+ **spaces** | [**Array&lt;MemberSpaces&gt;**](MemberSpaces.md) | | [optional]
16
+ **project_roles** | [**Array&lt;MemberProjectDetailProjectRoles&gt;**](MemberProjectDetailProjectRoles.md) | | [optional]
17
+
18
+ ## Code Sample
19
+
20
+ ```ruby
21
+ require 'Phrase'
22
+
23
+ instance = Phrase::MemberProjectDetail.new(id: null,
24
+ email: null,
25
+ username: null,
26
+ role: null,
27
+ projects: null,
28
+ permissions: null,
29
+ locale_ids: null,
30
+ default_locale_codes: null,
31
+ spaces: null,
32
+ project_roles: null)
33
+ ```
34
+
35
+
@@ -0,0 +1,19 @@
1
+ # Phrase::MemberProjectDetailProjectRoles
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **project_id** | **String** | | [optional]
8
+ **role** | **String** | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'Phrase'
14
+
15
+ instance = Phrase::MemberProjectDetailProjectRoles.new(project_id: null,
16
+ role: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,25 @@
1
+ # Phrase::MemberSpaces
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | | [optional]
8
+ **name** | **String** | | [optional]
9
+ **created_at** | [**AnyType**](.md) | | [optional]
10
+ **updated_at** | [**AnyType**](.md) | | [optional]
11
+ **projects_count** | **Integer** | | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'Phrase'
17
+
18
+ instance = Phrase::MemberSpaces.new(id: null,
19
+ name: null,
20
+ created_at: null,
21
+ updated_at: null,
22
+ projects_count: null)
23
+ ```
24
+
25
+
@@ -7,6 +7,8 @@ Name | Type | Description | Notes
7
7
  **role** | **String** | Member role, can be any of of Manager, Developer, Translator | [optional]
8
8
  **project_ids** | **String** | List of project ids the user has access to. | [optional]
9
9
  **locale_ids** | **String** | List of locale ids the user has access to. | [optional]
10
+ **default_locale_codes** | **Array&lt;String&gt;** | List of default locales for the user. | [optional]
11
+ **space_ids** | **Array&lt;String&gt;** | List of spaces the user is assigned to. | [optional]
10
12
  **permissions** | **Hash&lt;String, String&gt;** | Additional permissions depending on member role. Available permissions are &lt;code&gt;create_upload&lt;/code&gt; and &lt;code&gt;review_translations&lt;/code&gt; | [optional]
11
13
 
12
14
  ## Code Sample
@@ -17,6 +19,8 @@ require 'Phrase'
17
19
  instance = Phrase::MemberUpdateParameters.new(role: Developer,
18
20
  project_ids: abcd1234abcd1234abcd1234,abcd1234abcd1234abcd1235,
19
21
  locale_ids: abcd1234abcd1234abcd1234,abcd1234abcd1234abcd1235,
22
+ default_locale_codes: [&quot;en&quot;,&quot;fi&quot;],
23
+ space_ids: [&quot;abcd1234abcd1234abcd1234&quot;,&quot;abcd1234abcd1234abcd1235&quot;],
20
24
  permissions: {&quot;create_upload&quot;:true,&quot;review_translations&quot;:true})
21
25
  ```
22
26
 
@@ -0,0 +1,19 @@
1
+ # Phrase::MemberUpdateSettingsParameters
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **project_role** | **String** | Member role, can be any of of Manager, Developer, Translator | [optional]
8
+ **locale_ids** | **Array&lt;String&gt;** | List of locale ids the user has access to. | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'Phrase'
14
+
15
+ instance = Phrase::MemberUpdateSettingsParameters.new(project_role: Developer,
16
+ locale_ids: [&quot;abcd1234abcd1234abcd1234&quot;,&quot;abcd1234abcd1234abcd1235&quot;])
17
+ ```
18
+
19
+
data/docs/MembersApi.md CHANGED
@@ -7,6 +7,7 @@ Method | HTTP request | Description
7
7
  [**member_delete**](MembersApi.md#member_delete) | **DELETE** /accounts/{account_id}/members/{id} | Remove a user from the account
8
8
  [**member_show**](MembersApi.md#member_show) | **GET** /accounts/{account_id}/members/{id} | Get single member
9
9
  [**member_update**](MembersApi.md#member_update) | **PATCH** /accounts/{account_id}/members/{id} | Update a member
10
+ [**member_update_settings**](MembersApi.md#member_update_settings) | **PATCH** /projects/{project_id}/members/{id} | Update a member&#39;s project settings
10
11
  [**members_list**](MembersApi.md#members_list) | **GET** /accounts/{account_id}/members | List members
11
12
 
12
13
 
@@ -201,6 +202,71 @@ Response<([**Member**](Member.md))>
201
202
  - **Accept**: application/json
202
203
 
203
204
 
205
+ ## member_update_settings
206
+
207
+ > MemberProjectDetail member_update_settings(project_id, id, member_update_settings_parameters, opts)
208
+
209
+ Update a member's project settings
210
+
211
+ Update user settings in the project. Access token scope must include <code>team.manage</code>.
212
+
213
+ ### Example
214
+
215
+ ```ruby
216
+ # load the gem
217
+ require 'phrase'
218
+ # setup authorization
219
+ Phrase.configure do |config|
220
+ # Configure HTTP basic authorization: Basic
221
+ config.username = 'YOUR USERNAME'
222
+ config.password = 'YOUR PASSWORD'
223
+
224
+ # Configure API key authorization: Token
225
+ config.api_key['Authorization'] = 'YOUR API KEY'
226
+ config.api_key_prefix['Authorization'] = 'token'
227
+ end
228
+
229
+ api_instance = Phrase::MembersApi.new
230
+ project_id = 'project_id_example' # String | Project ID
231
+ id = 'id_example' # String | ID
232
+ member_update_settings_parameters = Phrase::MemberUpdateSettingsParameters.new # MemberUpdateSettingsParameters |
233
+ opts = {
234
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
235
+ }
236
+
237
+ begin
238
+ #Update a member's project settings
239
+ result = api_instance.member_update_settings(project_id, id, member_update_settings_parameters, opts)
240
+ pp result
241
+ rescue Phrase::ApiError => e
242
+ puts "Exception when calling MembersApi->member_update_settings: #{e}"
243
+ end
244
+ ```
245
+
246
+ ### Parameters
247
+
248
+
249
+ Name | Type | Description | Notes
250
+ ------------- | ------------- | ------------- | -------------
251
+ **project_id** | **String**| Project ID |
252
+ **id** | **String**| ID |
253
+ **member_update_settings_parameters** | [**MemberUpdateSettingsParameters**](MemberUpdateSettingsParameters.md)| |
254
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
255
+
256
+ ### Return type
257
+
258
+ Response<([**MemberProjectDetail**](MemberProjectDetail.md))>
259
+
260
+ ### Authorization
261
+
262
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
263
+
264
+ ### HTTP request headers
265
+
266
+ - **Content-Type**: application/json
267
+ - **Accept**: application/json
268
+
269
+
204
270
  ## members_list
205
271
 
206
272
  > Array&lt;Member&gt; members_list(account_id, opts)
@@ -4,24 +4,58 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | Name of the project | [optional]
8
- **main_format** | **String** | Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see &lt;a href&#x3D;\&quot;https://help.phrase.com/help/supported-platforms-and-formats\&quot;&gt;Format Guide&lt;/a&gt; or our &lt;a href&#x3D;\&quot;#formats\&quot;&gt;Formats API Endpoint&lt;/a&gt;. | [optional]
9
- **shares_translation_memory** | **Boolean** | Indicates whether the project should share the account&#39;s translation memory | [optional]
10
- **project_image** | **File** | Image to identify the project | [optional]
11
- **remove_project_image** | **Boolean** | Indicates whether the project image should be deleted. | [optional]
12
- **account_id** | **String** | Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
7
+ **account_id** | **String** | Required if the requesting user is a member of multiple accounts. Account ID to specify the actual account the project should be created in. | [optional]
8
+ **name** | **String** | (Optional) Name of the project | [optional]
9
+ **main_format** | **String** | (Optional) Main file format specified by its API Extension name. Used for locale downloads if no format is specified. For API Extension names of available file formats see &lt;a href&#x3D;\&quot;https://help.phrase.com/help/supported-platforms-and-formats\&quot;&gt;Format Guide&lt;/a&gt; or our &lt;a href&#x3D;\&quot;#formats\&quot;&gt;Formats API Endpoint&lt;/a&gt;. | [optional]
10
+ **shares_translation_memory** | **Boolean** | (Optional) Indicates whether the project should share the account&#39;s translation memory | [optional]
11
+ **project_image** | **File** | (Optional) Image to identify the project | [optional]
12
+ **remove_project_image** | **Boolean** | (Optional) Indicates whether the project image should be deleted. | [optional]
13
+ **workflow** | **String** | (Optional) Review Workflow. \&quot;simple\&quot; / \&quot;review\&quot;. &lt;a href&#x3D;\&quot;https://help.phrase.com/help/advanced-review-workflow\&quot;&gt;Read more&lt;/a&gt; | [optional]
14
+ **machine_translation_enabled** | **Boolean** | (Optional) Enable machine translation support in the project. Required for Autopilot and Smart Suggest | [optional]
15
+ **enable_branching** | **Boolean** | (Optional) Enable branching in the project | [optional]
16
+ **protect_master_branch** | **Boolean** | (Optional) Protect the master branch in project where branching is enabled | [optional]
17
+ **enable_all_data_type_translation_keys_for_translators** | **Boolean** | (Optional) Otherwise, translators are not allowed to edit translations other than strings | [optional]
18
+ **enable_icu_message_format** | **Boolean** | (Optional) We can validate and highlight your ICU messages. &lt;a href&#x3D;\&quot;https://help.phrase.com/help/icu-message-format\&quot;&gt;Read more&lt;/a&gt; | [optional]
19
+ **zero_plural_form_enabled** | **Boolean** | (Optional) Displays the input fields for the &#39;ZERO&#39; plural form for every key as well although only some languages require the &#39;ZERO&#39; explicitly. | [optional]
20
+ **autotranslate_enabled** | **Boolean** | (Optional) Autopilot, requires machine_translation_enabled. &lt;a href&#x3D;\&quot;https://help.phrase.com/help/autopilot\&quot;&gt;Read more&lt;/a&gt; | [optional]
21
+ **autotranslate_check_new_translation_keys** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
22
+ **autotranslate_check_new_uploads** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
23
+ **autotranslate_check_new_locales** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
24
+ **autotranslate_mark_as_unverified** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
25
+ **autotranslate_use_machine_translation** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
26
+ **autotranslate_use_translation_memory** | **Boolean** | (Optional) Requires autotranslate_enabled to be true | [optional]
27
+ **smart_suggest_enabled** | **Boolean** | (Optional) Smart Suggest, requires machine_translation_enabled | [optional]
28
+ **smart_suggest_use_glossary** | **Boolean** | (Optional) Requires smart_suggest_enabled to be true | [optional]
29
+ **smart_suggest_use_machine_translation** | **Boolean** | (Optional) Requires smart_suggest_enabled to be true | [optional]
13
30
 
14
31
  ## Code Sample
15
32
 
16
33
  ```ruby
17
34
  require 'Phrase'
18
35
 
19
- instance = Phrase::ProjectUpdateParameters.new(name: My Android Project,
36
+ instance = Phrase::ProjectUpdateParameters.new(account_id: abcd1234,
37
+ name: My Android Project,
20
38
  main_format: yml,
21
39
  shares_translation_memory: true,
22
40
  project_image: null,
23
- remove_project_image: null,
24
- account_id: abcd1234)
41
+ remove_project_image: false,
42
+ workflow: review,
43
+ machine_translation_enabled: true,
44
+ enable_branching: true,
45
+ protect_master_branch: true,
46
+ enable_all_data_type_translation_keys_for_translators: true,
47
+ enable_icu_message_format: true,
48
+ zero_plural_form_enabled: true,
49
+ autotranslate_enabled: true,
50
+ autotranslate_check_new_translation_keys: true,
51
+ autotranslate_check_new_uploads: true,
52
+ autotranslate_check_new_locales: true,
53
+ autotranslate_mark_as_unverified: true,
54
+ autotranslate_use_machine_translation: true,
55
+ autotranslate_use_translation_memory: true,
56
+ smart_suggest_enabled: true,
57
+ smart_suggest_use_glossary: true,
58
+ smart_suggest_use_machine_translation: true)
25
59
  ```
26
60
 
27
61
 
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **branch** | **String** | specify the branch to use | [optional]
7
8
  **name** | **String** | Name of the screenshot | [optional]
8
9
  **description** | **String** | Description of the screenshot | [optional]
9
10
  **filename** | **File** | Screenshot file | [optional]
@@ -13,7 +14,8 @@ Name | Type | Description | Notes
13
14
  ```ruby
14
15
  require 'Phrase'
15
16
 
16
- instance = Phrase::ScreenshotCreateParameters.new(name: A screenshot name,
17
+ instance = Phrase::ScreenshotCreateParameters.new(branch: my-feature-branch,
18
+ name: A screenshot name,
17
19
  description: A screenshot description,
18
20
  filename: null)
19
21
  ```
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **branch** | **String** | specify the branch to use | [optional]
7
8
  **key_id** | **String** | Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project. | [optional]
8
9
  **presentation** | **String** | Presentation details of the screenshot marker in JSON format.&lt;br/&gt;&lt;br/&gt;Each Screenshot Marker is represented as a rectangular shaped highlight box with the name of the specified Key attached. You can specify the marker position on the screenshot (&lt;code&gt;x&lt;/code&gt;-axis and &lt;code&gt;y&lt;/code&gt;-axis in pixels) from the top left corner of the screenshot and the dimensions of the marker itself (&lt;code&gt;w&lt;/code&gt; and &lt;code&gt;h&lt;/code&gt; in pixels). | [optional]
9
10
 
@@ -12,7 +13,8 @@ Name | Type | Description | Notes
12
13
  ```ruby
13
14
  require 'Phrase'
14
15
 
15
- instance = Phrase::ScreenshotMarkerCreateParameters.new(key_id: abcd1234abcd1234abcd1234abcd1234,
16
+ instance = Phrase::ScreenshotMarkerCreateParameters.new(branch: my-feature-branch,
17
+ key_id: abcd1234abcd1234abcd1234abcd1234,
16
18
  presentation: { &quot;x&quot;: 100, &quot;y&quot;: 100, &quot;w&quot;: 100, &quot;h&quot;: 100 })
17
19
  ```
18
20
 
@@ -4,6 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **branch** | **String** | specify the branch to use | [optional]
7
8
  **key_id** | **String** | Specify the Key ID which should be highlighted on the specified screenshot. The Key must belong to the project. | [optional]
8
9
  **presentation** | **String** | Presentation details of the screenshot marker in JSON format.&lt;br/&gt;&lt;br/&gt;Each Screenshot Marker is represented as a rectangular shaped highlight box with the name of the specified Key attached. You can specify the marker position on the screenshot (&lt;code&gt;x&lt;/code&gt;-axis and &lt;code&gt;y&lt;/code&gt;-axis in pixels) from the top left corner of the screenshot and the dimensions of the marker itself (&lt;code&gt;w&lt;/code&gt; and &lt;code&gt;h&lt;/code&gt; in pixels). | [optional]
9
10
 
@@ -12,7 +13,8 @@ Name | Type | Description | Notes
12
13
  ```ruby
13
14
  require 'Phrase'
14
15
 
15
- instance = Phrase::ScreenshotMarkerUpdateParameters.new(key_id: abcd1234abcd1234abcd1234abcd1234,
16
+ instance = Phrase::ScreenshotMarkerUpdateParameters.new(branch: my-feature-branch,
17
+ key_id: abcd1234abcd1234abcd1234abcd1234,
16
18
  presentation: { &quot;x&quot;: 100, &quot;y&quot;: 100, &quot;w&quot;: 100, &quot;h&quot;: 100 })
17
19
  ```
18
20
 
@@ -105,7 +105,8 @@ api_instance = Phrase::ScreenshotMarkersApi.new
105
105
  project_id = 'project_id_example' # String | Project ID
106
106
  screenshot_id = 'screenshot_id_example' # String | Screenshot ID
107
107
  opts = {
108
- x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
108
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
109
+ branch: 'my-feature-branch' # String | specify the branch to use
109
110
  }
110
111
 
111
112
  begin
@@ -124,6 +125,7 @@ Name | Type | Description | Notes
124
125
  **project_id** | **String**| Project ID |
125
126
  **screenshot_id** | **String**| Screenshot ID |
126
127
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
128
+ **branch** | **String**| specify the branch to use | [optional]
127
129
 
128
130
  ### Return type
129
131
 
@@ -168,7 +170,8 @@ project_id = 'project_id_example' # String | Project ID
168
170
  screenshot_id = 'screenshot_id_example' # String | Screenshot ID
169
171
  id = 'id_example' # String | ID
170
172
  opts = {
171
- x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
173
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
174
+ branch: 'my-feature-branch' # String | specify the branch to use
172
175
  }
173
176
 
174
177
  begin
@@ -189,6 +192,7 @@ Name | Type | Description | Notes
189
192
  **screenshot_id** | **String**| Screenshot ID |
190
193
  **id** | **String**| ID |
191
194
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
195
+ **branch** | **String**| specify the branch to use | [optional]
192
196
 
193
197
  ### Return type
194
198
 
@@ -299,7 +303,8 @@ id = 'id_example' # String | ID
299
303
  opts = {
300
304
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
301
305
  page: 1, # Integer | Page number
302
- per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
306
+ per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
307
+ branch: 'my-feature-branch' # String | specify the branch to use
303
308
  }
304
309
 
305
310
  begin
@@ -321,6 +326,7 @@ Name | Type | Description | Notes
321
326
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
322
327
  **page** | **Integer**| Page number | [optional]
323
328
  **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
329
+ **branch** | **String**| specify the branch to use | [optional]
324
330
 
325
331
  ### Return type
326
332