phrase 1.0.12 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (172) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +56 -9
  3. data/docs/Account.md +3 -1
  4. data/docs/AccountDetails.md +5 -1
  5. data/docs/AccountDetails1.md +3 -1
  6. data/docs/AccountSearchResult.md +29 -0
  7. data/docs/Branch.md +5 -1
  8. data/docs/Comment.md +3 -1
  9. data/docs/CurrentUser.md +31 -0
  10. data/docs/JobLocale.md +5 -1
  11. data/docs/JobTemplate.md +29 -0
  12. data/docs/JobTemplateCreateParameters.md +21 -0
  13. data/docs/JobTemplateLocale.md +23 -0
  14. data/docs/JobTemplateLocaleUpdateParameters.md +23 -0
  15. data/docs/JobTemplateLocalesApi.md +347 -0
  16. data/docs/JobTemplateLocalesCreateParameters.md +23 -0
  17. data/docs/JobTemplatePreview.md +19 -0
  18. data/docs/JobTemplateUpdateParameters.md +21 -0
  19. data/docs/JobTemplateUserPreview.md +23 -0
  20. data/docs/JobTemplatesApi.md +337 -0
  21. data/docs/KeysApi.md +137 -9
  22. data/docs/KeysExcludeParameters.md +23 -0
  23. data/docs/KeysIncludeParameters.md +23 -0
  24. data/docs/KeysSearchParameters.md +1 -1
  25. data/docs/KeysTagParameters.md +1 -1
  26. data/docs/KeysUntagParameters.md +1 -1
  27. data/docs/LocalePreview1.md +23 -0
  28. data/docs/LocalesApi.md +73 -6
  29. data/docs/MemberSpaces.md +2 -2
  30. data/docs/MemberUpdateParameters.md +4 -2
  31. data/docs/Notification.md +41 -0
  32. data/docs/NotificationGroup.md +23 -0
  33. data/docs/NotificationGroupDetail.md +27 -0
  34. data/docs/NotificationGroupsApi.md +194 -0
  35. data/docs/NotificationsApi.md +194 -0
  36. data/docs/OrderCreateParameters.md +2 -0
  37. data/docs/Project.md +2 -0
  38. data/docs/ProjectCreateParameters.md +35 -1
  39. data/docs/ProjectDetails.md +2 -0
  40. data/docs/ProjectUpdateParameters.md +43 -9
  41. data/docs/ProjectsApi.md +7 -1
  42. data/docs/ScreenshotCreateParameters.md +3 -1
  43. data/docs/ScreenshotMarkerCreateParameters.md +3 -1
  44. data/docs/ScreenshotMarkerUpdateParameters.md +3 -1
  45. data/docs/ScreenshotMarkersApi.md +9 -3
  46. data/docs/ScreenshotUpdateParameters.md +3 -1
  47. data/docs/ScreenshotsApi.md +8 -2
  48. data/docs/SearchApi.md +72 -0
  49. data/docs/SearchInAccountParameters.md +23 -0
  50. data/docs/Space1.md +25 -0
  51. data/docs/Subscription.md +19 -0
  52. data/docs/TranslationOrder.md +2 -0
  53. data/docs/TranslationsApi.md +25 -25
  54. data/docs/User.md +0 -2
  55. data/docs/UsersApi.md +2 -2
  56. data/docs/Variable.md +23 -0
  57. data/docs/VariableCreateParameters.md +19 -0
  58. data/docs/VariableUpdateParameters.md +19 -0
  59. data/docs/VariablesApi.md +331 -0
  60. data/lib/phrase.rb +28 -0
  61. data/lib/phrase/api/job_template_locales_api.rb +417 -0
  62. data/lib/phrase/api/job_templates_api.rb +387 -0
  63. data/lib/phrase/api/keys_api.rb +158 -10
  64. data/lib/phrase/api/locales_api.rb +76 -5
  65. data/lib/phrase/api/notification_groups_api.rb +202 -0
  66. data/lib/phrase/api/notifications_api.rb +202 -0
  67. data/lib/phrase/api/projects_api.rb +9 -0
  68. data/lib/phrase/api/screenshot_markers_api.rb +9 -0
  69. data/lib/phrase/api/screenshots_api.rb +9 -0
  70. data/lib/phrase/api/search_api.rb +84 -0
  71. data/lib/phrase/api/translations_api.rb +35 -35
  72. data/lib/phrase/api/users_api.rb +3 -3
  73. data/lib/phrase/api/variables_api.rb +378 -0
  74. data/lib/phrase/models/account.rb +13 -4
  75. data/lib/phrase/models/account_details.rb +22 -4
  76. data/lib/phrase/models/account_details1.rb +10 -1
  77. data/lib/phrase/models/account_search_result.rb +250 -0
  78. data/lib/phrase/models/branch.rb +19 -1
  79. data/lib/phrase/models/comment.rb +15 -4
  80. data/lib/phrase/models/current_user.rb +257 -0
  81. data/lib/phrase/models/job_locale.rb +22 -4
  82. data/lib/phrase/models/job_template.rb +248 -0
  83. data/lib/phrase/models/job_template_create_parameters.rb +220 -0
  84. data/lib/phrase/models/job_template_locale.rb +223 -0
  85. data/lib/phrase/models/job_template_locale_update_parameters.rb +234 -0
  86. data/lib/phrase/models/job_template_locales_create_parameters.rb +234 -0
  87. data/lib/phrase/models/job_template_preview.rb +203 -0
  88. data/lib/phrase/models/job_template_update_parameters.rb +220 -0
  89. data/lib/phrase/models/job_template_user_preview.rb +221 -0
  90. data/lib/phrase/models/keys_exclude_parameters.rb +225 -0
  91. data/lib/phrase/models/keys_include_parameters.rb +225 -0
  92. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  93. data/lib/phrase/models/keys_tag_parameters.rb +1 -1
  94. data/lib/phrase/models/keys_untag_parameters.rb +1 -1
  95. data/lib/phrase/models/locale_preview1.rb +221 -0
  96. data/lib/phrase/models/member_spaces.rb +2 -2
  97. data/lib/phrase/models/member_update_parameters.rb +12 -2
  98. data/lib/phrase/models/notification.rb +302 -0
  99. data/lib/phrase/models/notification_group.rb +221 -0
  100. data/lib/phrase/models/notification_group_detail.rb +239 -0
  101. data/lib/phrase/models/order_create_parameters.rb +11 -1
  102. data/lib/phrase/models/project.rb +10 -1
  103. data/lib/phrase/models/project_create_parameters.rb +174 -4
  104. data/lib/phrase/models/project_details.rb +10 -1
  105. data/lib/phrase/models/project_update_parameters.rb +183 -13
  106. data/lib/phrase/models/screenshot_create_parameters.rb +11 -1
  107. data/lib/phrase/models/screenshot_marker_create_parameters.rb +11 -1
  108. data/lib/phrase/models/screenshot_marker_update_parameters.rb +11 -1
  109. data/lib/phrase/models/screenshot_update_parameters.rb +11 -1
  110. data/lib/phrase/models/search_in_account_parameters.rb +225 -0
  111. data/lib/phrase/models/space1.rb +230 -0
  112. data/lib/phrase/models/subscription.rb +203 -0
  113. data/lib/phrase/models/translation_order.rb +10 -1
  114. data/lib/phrase/models/user.rb +1 -10
  115. data/lib/phrase/models/variable.rb +221 -0
  116. data/lib/phrase/models/variable_create_parameters.rb +205 -0
  117. data/lib/phrase/models/variable_update_parameters.rb +205 -0
  118. data/lib/phrase/version.rb +1 -1
  119. data/spec/api/job_template_locales_api_spec.rb +103 -0
  120. data/spec/api/job_templates_api_spec.rb +98 -0
  121. data/spec/api/keys_api_spec.rb +32 -4
  122. data/spec/api/locales_api_spec.rb +17 -2
  123. data/spec/api/notification_groups_api_spec.rb +62 -0
  124. data/spec/api/notifications_api_spec.rb +62 -0
  125. data/spec/api/projects_api_spec.rb +3 -0
  126. data/spec/api/screenshot_markers_api_spec.rb +3 -0
  127. data/spec/api/screenshots_api_spec.rb +3 -0
  128. data/spec/api/search_api_spec.rb +37 -0
  129. data/spec/api/translations_api_spec.rb +10 -10
  130. data/spec/api/users_api_spec.rb +1 -1
  131. data/spec/api/variables_api_spec.rb +95 -0
  132. data/spec/models/account_details1_spec.rb +6 -0
  133. data/spec/models/account_details_spec.rb +12 -0
  134. data/spec/models/account_search_result_spec.rb +65 -0
  135. data/spec/models/account_spec.rb +6 -0
  136. data/spec/models/branch_spec.rb +12 -0
  137. data/spec/models/comment_spec.rb +6 -0
  138. data/spec/models/current_user_spec.rb +71 -0
  139. data/spec/models/job_locale_spec.rb +12 -0
  140. data/spec/models/job_template_create_parameters_spec.rb +41 -0
  141. data/spec/models/job_template_locale_spec.rb +47 -0
  142. data/spec/models/job_template_locale_update_parameters_spec.rb +47 -0
  143. data/spec/models/job_template_locales_create_parameters_spec.rb +47 -0
  144. data/spec/models/job_template_preview_spec.rb +35 -0
  145. data/spec/models/job_template_spec.rb +65 -0
  146. data/spec/models/job_template_update_parameters_spec.rb +41 -0
  147. data/spec/models/job_template_user_preview_spec.rb +47 -0
  148. data/spec/models/keys_exclude_parameters_spec.rb +47 -0
  149. data/spec/models/keys_include_parameters_spec.rb +47 -0
  150. data/spec/models/locale_preview1_spec.rb +47 -0
  151. data/spec/models/member_update_parameters_spec.rb +6 -0
  152. data/spec/models/notification_group_detail_spec.rb +59 -0
  153. data/spec/models/notification_group_spec.rb +47 -0
  154. data/spec/models/notification_spec.rb +101 -0
  155. data/spec/models/order_create_parameters_spec.rb +6 -0
  156. data/spec/models/project_create_parameters_spec.rb +102 -0
  157. data/spec/models/project_details_spec.rb +6 -0
  158. data/spec/models/project_spec.rb +6 -0
  159. data/spec/models/project_update_parameters_spec.rb +103 -1
  160. data/spec/models/screenshot_create_parameters_spec.rb +6 -0
  161. data/spec/models/screenshot_marker_create_parameters_spec.rb +6 -0
  162. data/spec/models/screenshot_marker_update_parameters_spec.rb +6 -0
  163. data/spec/models/screenshot_update_parameters_spec.rb +6 -0
  164. data/spec/models/search_in_account_parameters_spec.rb +47 -0
  165. data/spec/models/space1_spec.rb +53 -0
  166. data/spec/models/subscription_spec.rb +35 -0
  167. data/spec/models/translation_order_spec.rb +6 -0
  168. data/spec/models/user_spec.rb +0 -6
  169. data/spec/models/variable_create_parameters_spec.rb +35 -0
  170. data/spec/models/variable_spec.rb +47 -0
  171. data/spec/models/variable_update_parameters_spec.rb +35 -0
  172. metadata +281 -169
@@ -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::ScreenshotUpdateParameters.new(name: A screenshot name,
17
+ instance = Phrase::ScreenshotUpdateParameters.new(branch: my-feature-branch,
18
+ name: A screenshot name,
17
19
  description: A screenshot description,
18
20
  filename: null)
19
21
  ```
@@ -103,7 +103,8 @@ api_instance = Phrase::ScreenshotsApi.new
103
103
  project_id = 'project_id_example' # String | Project ID
104
104
  id = 'id_example' # String | ID
105
105
  opts = {
106
- x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
106
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
107
+ branch: 'my-feature-branch' # String | specify the branch to use
107
108
  }
108
109
 
109
110
  begin
@@ -122,6 +123,7 @@ Name | Type | Description | Notes
122
123
  **project_id** | **String**| Project ID |
123
124
  **id** | **String**| ID |
124
125
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
126
+ **branch** | **String**| specify the branch to use | [optional]
125
127
 
126
128
  ### Return type
127
129
 
@@ -165,7 +167,8 @@ api_instance = Phrase::ScreenshotsApi.new
165
167
  project_id = 'project_id_example' # String | Project ID
166
168
  id = 'id_example' # String | ID
167
169
  opts = {
168
- x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
170
+ x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
171
+ branch: 'my-feature-branch' # String | specify the branch to use
169
172
  }
170
173
 
171
174
  begin
@@ -185,6 +188,7 @@ Name | Type | Description | Notes
185
188
  **project_id** | **String**| Project ID |
186
189
  **id** | **String**| ID |
187
190
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
191
+ **branch** | **String**| specify the branch to use | [optional]
188
192
 
189
193
  ### Return type
190
194
 
@@ -295,6 +299,7 @@ opts = {
295
299
  x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
296
300
  page: 1, # Integer | Page number
297
301
  per_page: 25, # Integer | allows you to specify a page size up to 100 items, 25 by default
302
+ branch: 'my-feature-branch', # String | specify the branch to use
298
303
  key_id: 'abcd1234cdef1234abcd1234cdef1234' # String | filter by key
299
304
  }
300
305
 
@@ -316,6 +321,7 @@ Name | Type | Description | Notes
316
321
  **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
317
322
  **page** | **Integer**| Page number | [optional]
318
323
  **per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
324
+ **branch** | **String**| specify the branch to use | [optional]
319
325
  **key_id** | **String**| filter by key | [optional]
320
326
 
321
327
  ### Return type
data/docs/SearchApi.md ADDED
@@ -0,0 +1,72 @@
1
+ # Phrase::SearchApi
2
+
3
+ All URIs are relative to *https://api.phrase.com/v2*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**search_in_account**](SearchApi.md#search_in_account) | **POST** /accounts/{account_id}/search | Search across projects
8
+
9
+
10
+
11
+ ## search_in_account
12
+
13
+ > AccountSearchResult search_in_account(account_id, search_in_account_parameters, opts)
14
+
15
+ Search across projects
16
+
17
+ Search for keys and translations in all account projects
18
+
19
+ ### Example
20
+
21
+ ```ruby
22
+ # load the gem
23
+ require 'phrase'
24
+ # setup authorization
25
+ Phrase.configure do |config|
26
+ # Configure HTTP basic authorization: Basic
27
+ config.username = 'YOUR USERNAME'
28
+ config.password = 'YOUR PASSWORD'
29
+
30
+ # Configure API key authorization: Token
31
+ config.api_key['Authorization'] = 'YOUR API KEY'
32
+ config.api_key_prefix['Authorization'] = 'token'
33
+ end
34
+
35
+ api_instance = Phrase::SearchApi.new
36
+ account_id = 'account_id_example' # String | Account ID
37
+ search_in_account_parameters = Phrase::SearchInAccountParameters.new # SearchInAccountParameters |
38
+ opts = {
39
+ x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
40
+ }
41
+
42
+ begin
43
+ #Search across projects
44
+ result = api_instance.search_in_account(account_id, search_in_account_parameters, opts)
45
+ pp result
46
+ rescue Phrase::ApiError => e
47
+ puts "Exception when calling SearchApi->search_in_account: #{e}"
48
+ end
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+
54
+ Name | Type | Description | Notes
55
+ ------------- | ------------- | ------------- | -------------
56
+ **account_id** | **String**| Account ID |
57
+ **search_in_account_parameters** | [**SearchInAccountParameters**](SearchInAccountParameters.md)| |
58
+ **x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
59
+
60
+ ### Return type
61
+
62
+ Response<([**AccountSearchResult**](AccountSearchResult.md))>
63
+
64
+ ### Authorization
65
+
66
+ [Basic](../README.md#Basic), [Token](../README.md#Token)
67
+
68
+ ### HTTP request headers
69
+
70
+ - **Content-Type**: application/json
71
+ - **Accept**: application/json
72
+
@@ -0,0 +1,23 @@
1
+ # Phrase::SearchInAccountParameters
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **query** | **String** | Search query | [optional]
8
+ **locale_code** | **String** | Locale code | [optional]
9
+ **page** | **Integer** | Page | [optional]
10
+ **per_page** | **Integer** | Number of results per page | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'Phrase'
16
+
17
+ instance = Phrase::SearchInAccountParameters.new(query: keyword,
18
+ locale_code: de_DE,
19
+ page: 1,
20
+ per_page: 25)
21
+ ```
22
+
23
+
data/docs/Space1.md ADDED
@@ -0,0 +1,25 @@
1
+ # Phrase::Space1
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **id** | **String** | | [optional]
8
+ **name** | **String** | | [optional]
9
+ **created_at** | **DateTime** | | [optional]
10
+ **updated_at** | **DateTime** | | [optional]
11
+ **projects_count** | **Integer** | | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'Phrase'
17
+
18
+ instance = Phrase::Space1.new(id: null,
19
+ name: null,
20
+ created_at: null,
21
+ updated_at: null,
22
+ projects_count: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,19 @@
1
+ # Phrase::Subscription
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **is_current** | **Boolean** | | [optional]
8
+ **trial_expired** | **Boolean** | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'Phrase'
14
+
15
+ instance = Phrase::Subscription.new(is_current: null,
16
+ trial_expired: null)
17
+ ```
18
+
19
+
@@ -5,6 +5,7 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **id** | **String** | | [optional]
8
+ **name** | **String** | | [optional]
8
9
  **lsp** | **String** | | [optional]
9
10
  **amount_in_cents** | **Integer** | | [optional]
10
11
  **currency** | **String** | | [optional]
@@ -28,6 +29,7 @@ Name | Type | Description | Notes
28
29
  require 'Phrase'
29
30
 
30
31
  instance = Phrase::TranslationOrder.new(id: null,
32
+ name: null,
31
33
  lsp: null,
32
34
  amount_in_cents: null,
33
35
  currency: null,
@@ -14,13 +14,13 @@ Method | HTTP request | Description
14
14
  [**translation_verify**](TranslationsApi.md#translation_verify) | **PATCH** /projects/{project_id}/translations/{id}/verify | Verify a translation
15
15
  [**translations_by_key**](TranslationsApi.md#translations_by_key) | **GET** /projects/{project_id}/keys/{key_id}/translations | List translations by key
16
16
  [**translations_by_locale**](TranslationsApi.md#translations_by_locale) | **GET** /projects/{project_id}/locales/{locale_id}/translations | List translations by locale
17
- [**translations_exclude**](TranslationsApi.md#translations_exclude) | **PATCH** /projects/{project_id}/translations/exclude | Set exclude from export flag on translations selected by query
18
- [**translations_include**](TranslationsApi.md#translations_include) | **PATCH** /projects/{project_id}/translations/include | Remove exlude from import flag from translations selected by query
17
+ [**translations_exclude_collection**](TranslationsApi.md#translations_exclude_collection) | **PATCH** /projects/{project_id}/translations/exclude | Set exclude from export flag on translations selected by query
18
+ [**translations_include_collection**](TranslationsApi.md#translations_include_collection) | **PATCH** /projects/{project_id}/translations/include | Remove exlude from import flag from translations selected by query
19
19
  [**translations_list**](TranslationsApi.md#translations_list) | **GET** /projects/{project_id}/translations | List all translations
20
- [**translations_review**](TranslationsApi.md#translations_review) | **PATCH** /projects/{project_id}/translations/review | Review translations selected by query
20
+ [**translations_review_collection**](TranslationsApi.md#translations_review_collection) | **PATCH** /projects/{project_id}/translations/review | Review translations selected by query
21
21
  [**translations_search**](TranslationsApi.md#translations_search) | **POST** /projects/{project_id}/translations/search | Search translations
22
- [**translations_unverify**](TranslationsApi.md#translations_unverify) | **PATCH** /projects/{project_id}/translations/unverify | Mark translations selected by query as unverified
23
- [**translations_verify**](TranslationsApi.md#translations_verify) | **PATCH** /projects/{project_id}/translations/verify | Verify translations selected by query
22
+ [**translations_unverify_collection**](TranslationsApi.md#translations_unverify_collection) | **PATCH** /projects/{project_id}/translations/unverify | Mark translations selected by query as unverified
23
+ [**translations_verify_collection**](TranslationsApi.md#translations_verify_collection) | **PATCH** /projects/{project_id}/translations/verify | Verify translations selected by query
24
24
 
25
25
 
26
26
 
@@ -692,9 +692,9 @@ Response<([**Array&lt;Translation&gt;**](Translation.md))>
692
692
  - **Accept**: application/json
693
693
 
694
694
 
695
- ## translations_exclude
695
+ ## translations_exclude_collection
696
696
 
697
- > AffectedCount translations_exclude(project_id, translations_exclude_parameters, opts)
697
+ > AffectedCount translations_exclude_collection(project_id, translations_exclude_parameters, opts)
698
698
 
699
699
  Set exclude from export flag on translations selected by query
700
700
 
@@ -725,10 +725,10 @@ opts = {
725
725
 
726
726
  begin
727
727
  #Set exclude from export flag on translations selected by query
728
- result = api_instance.translations_exclude(project_id, translations_exclude_parameters, opts)
728
+ result = api_instance.translations_exclude_collection(project_id, translations_exclude_parameters, opts)
729
729
  pp result
730
730
  rescue Phrase::ApiError => e
731
- puts "Exception when calling TranslationsApi->translations_exclude: #{e}"
731
+ puts "Exception when calling TranslationsApi->translations_exclude_collection: #{e}"
732
732
  end
733
733
  ```
734
734
 
@@ -755,9 +755,9 @@ Response<([**AffectedCount**](AffectedCount.md))>
755
755
  - **Accept**: application/json
756
756
 
757
757
 
758
- ## translations_include
758
+ ## translations_include_collection
759
759
 
760
- > AffectedCount translations_include(project_id, translations_include_parameters, opts)
760
+ > AffectedCount translations_include_collection(project_id, translations_include_parameters, opts)
761
761
 
762
762
  Remove exlude from import flag from translations selected by query
763
763
 
@@ -788,10 +788,10 @@ opts = {
788
788
 
789
789
  begin
790
790
  #Remove exlude from import flag from translations selected by query
791
- result = api_instance.translations_include(project_id, translations_include_parameters, opts)
791
+ result = api_instance.translations_include_collection(project_id, translations_include_parameters, opts)
792
792
  pp result
793
793
  rescue Phrase::ApiError => e
794
- puts "Exception when calling TranslationsApi->translations_include: #{e}"
794
+ puts "Exception when calling TranslationsApi->translations_include_collection: #{e}"
795
795
  end
796
796
  ```
797
797
 
@@ -891,9 +891,9 @@ Response<([**Array&lt;Translation&gt;**](Translation.md))>
891
891
  - **Accept**: application/json
892
892
 
893
893
 
894
- ## translations_review
894
+ ## translations_review_collection
895
895
 
896
- > AffectedCount translations_review(project_id, translations_review_parameters, opts)
896
+ > AffectedCount translations_review_collection(project_id, translations_review_parameters, opts)
897
897
 
898
898
  Review translations selected by query
899
899
 
@@ -924,10 +924,10 @@ opts = {
924
924
 
925
925
  begin
926
926
  #Review translations selected by query
927
- result = api_instance.translations_review(project_id, translations_review_parameters, opts)
927
+ result = api_instance.translations_review_collection(project_id, translations_review_parameters, opts)
928
928
  pp result
929
929
  rescue Phrase::ApiError => e
930
- puts "Exception when calling TranslationsApi->translations_review: #{e}"
930
+ puts "Exception when calling TranslationsApi->translations_review_collection: #{e}"
931
931
  end
932
932
  ```
933
933
 
@@ -1021,9 +1021,9 @@ Response<([**Array&lt;Translation&gt;**](Translation.md))>
1021
1021
  - **Accept**: application/json
1022
1022
 
1023
1023
 
1024
- ## translations_unverify
1024
+ ## translations_unverify_collection
1025
1025
 
1026
- > AffectedCount translations_unverify(project_id, translations_unverify_parameters, opts)
1026
+ > AffectedCount translations_unverify_collection(project_id, translations_unverify_parameters, opts)
1027
1027
 
1028
1028
  Mark translations selected by query as unverified
1029
1029
 
@@ -1054,10 +1054,10 @@ opts = {
1054
1054
 
1055
1055
  begin
1056
1056
  #Mark translations selected by query as unverified
1057
- result = api_instance.translations_unverify(project_id, translations_unverify_parameters, opts)
1057
+ result = api_instance.translations_unverify_collection(project_id, translations_unverify_parameters, opts)
1058
1058
  pp result
1059
1059
  rescue Phrase::ApiError => e
1060
- puts "Exception when calling TranslationsApi->translations_unverify: #{e}"
1060
+ puts "Exception when calling TranslationsApi->translations_unverify_collection: #{e}"
1061
1061
  end
1062
1062
  ```
1063
1063
 
@@ -1084,9 +1084,9 @@ Response<([**AffectedCount**](AffectedCount.md))>
1084
1084
  - **Accept**: application/json
1085
1085
 
1086
1086
 
1087
- ## translations_verify
1087
+ ## translations_verify_collection
1088
1088
 
1089
- > AffectedCount translations_verify(project_id, translations_verify_parameters, opts)
1089
+ > AffectedCount translations_verify_collection(project_id, translations_verify_parameters, opts)
1090
1090
 
1091
1091
  Verify translations selected by query
1092
1092
 
@@ -1117,10 +1117,10 @@ opts = {
1117
1117
 
1118
1118
  begin
1119
1119
  #Verify translations selected by query
1120
- result = api_instance.translations_verify(project_id, translations_verify_parameters, opts)
1120
+ result = api_instance.translations_verify_collection(project_id, translations_verify_parameters, opts)
1121
1121
  pp result
1122
1122
  rescue Phrase::ApiError => e
1123
- puts "Exception when calling TranslationsApi->translations_verify: #{e}"
1123
+ puts "Exception when calling TranslationsApi->translations_verify_collection: #{e}"
1124
1124
  end
1125
1125
  ```
1126
1126
 
data/docs/User.md CHANGED
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
7
7
  **id** | **String** | | [optional]
8
8
  **username** | **String** | | [optional]
9
9
  **name** | **String** | | [optional]
10
- **email** | **String** | | [optional]
11
10
  **position** | **String** | | [optional]
12
11
  **created_at** | **DateTime** | | [optional]
13
12
  **updated_at** | **DateTime** | | [optional]
@@ -20,7 +19,6 @@ require 'Phrase'
20
19
  instance = Phrase::User.new(id: null,
21
20
  username: null,
22
21
  name: null,
23
- email: null,
24
22
  position: null,
25
23
  created_at: null,
26
24
  updated_at: null)
data/docs/UsersApi.md CHANGED
@@ -10,7 +10,7 @@ Method | HTTP request | Description
10
10
 
11
11
  ## show_user
12
12
 
13
- > User show_user(opts)
13
+ > CurrentUser show_user(opts)
14
14
 
15
15
  Show current User
16
16
 
@@ -55,7 +55,7 @@ Name | Type | Description | Notes
55
55
 
56
56
  ### Return type
57
57
 
58
- Response<([**User**](User.md))>
58
+ Response<([**CurrentUser**](CurrentUser.md))>
59
59
 
60
60
  ### Authorization
61
61
 
data/docs/Variable.md ADDED
@@ -0,0 +1,23 @@
1
+ # Phrase::Variable
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | | [optional]
8
+ **value** | **String** | | [optional]
9
+ **created_at** | **DateTime** | | [optional]
10
+ **updated_at** | **DateTime** | | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'Phrase'
16
+
17
+ instance = Phrase::Variable.new(name: null,
18
+ value: null,
19
+ created_at: null,
20
+ updated_at: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,19 @@
1
+ # Phrase::VariableCreateParameters
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **name** | **String** | Name of the variable | [optional]
8
+ **value** | **String** | Value of the variable | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'Phrase'
14
+
15
+ instance = Phrase::VariableCreateParameters.new(name: MY_VARIABLE,
16
+ value: Hello World)
17
+ ```
18
+
19
+