phrase 1.0.1 → 1.0.2

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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +50 -387
  3. data/docs/AccountsApi.md +2 -4
  4. data/docs/AuthorizationsApi.md +10 -14
  5. data/docs/BitbucketSyncApi.md +3 -6
  6. data/docs/BlacklistedKeysApi.md +10 -14
  7. data/docs/BranchesApi.md +12 -18
  8. data/docs/CommentsApi.md +13 -20
  9. data/docs/DistributionsApi.md +10 -14
  10. data/docs/FormatsApi.md +1 -2
  11. data/docs/GitLabSyncApi.md +7 -14
  12. data/docs/{GlossaryApi.md → GlossariesApi.md} +26 -30
  13. data/docs/GlossaryTermTranslationsApi.md +8 -10
  14. data/docs/GlossaryTermsApi.md +10 -14
  15. data/docs/InvitationsApi.md +11 -16
  16. data/docs/JobLocalesApi.md +12 -18
  17. data/docs/JobsApi.md +15 -24
  18. data/docs/KeysApi.md +18 -26
  19. data/docs/KeysSearchParameters.md +1 -1
  20. data/docs/KeysTagParameters.md +1 -1
  21. data/docs/KeysUntagParameters.md +1 -1
  22. data/docs/LocalesApi.md +13 -18
  23. data/docs/MembersApi.md +4 -8
  24. data/docs/OrdersApi.md +10 -14
  25. data/docs/ProjectCreateParameters.md +3 -1
  26. data/docs/ProjectsApi.md +10 -14
  27. data/docs/ReleasesApi.md +11 -16
  28. data/docs/ScreenshotMarkersApi.md +10 -14
  29. data/docs/ScreenshotsApi.md +10 -14
  30. data/docs/SpacesApi.md +13 -20
  31. data/docs/StyleGuidesApi.md +10 -14
  32. data/docs/TagsApi.md +9 -12
  33. data/docs/Team.md +29 -0
  34. data/docs/TeamCreateParameters.md +17 -0
  35. data/docs/TeamDetail.md +29 -0
  36. data/docs/TeamUpdateParameters.md +17 -0
  37. data/docs/TeamsApi.md +721 -0
  38. data/docs/TeamsProjectsCreateParameters.md +17 -0
  39. data/docs/TeamsSpacesCreateParameters.md +17 -0
  40. data/docs/TeamsUsersCreateParameters.md +17 -0
  41. data/docs/TranslationsApi.md +28 -44
  42. data/docs/TranslationsExcludeParameters.md +1 -1
  43. data/docs/TranslationsIncludeParameters.md +1 -1
  44. data/docs/TranslationsReviewParameters.md +1 -1
  45. data/docs/TranslationsSearchParameters.md +1 -1
  46. data/docs/TranslationsUnverifyParameters.md +1 -1
  47. data/docs/TranslationsVerifyParameters.md +1 -1
  48. data/docs/UploadCreateParameters.md +2 -2
  49. data/docs/UploadsApi.md +12 -10
  50. data/docs/UsersApi.md +1 -2
  51. data/docs/VersionsHistoryApi.md +2 -4
  52. data/docs/WebhooksApi.md +11 -16
  53. data/git_push.sh +2 -2
  54. data/lib/phrase.rb +9 -1
  55. data/lib/phrase/api/authorizations_api.rb +10 -8
  56. data/lib/phrase/api/bitbucket_sync_api.rb +3 -3
  57. data/lib/phrase/api/blacklisted_keys_api.rb +10 -8
  58. data/lib/phrase/api/branches_api.rb +16 -14
  59. data/lib/phrase/api/comments_api.rb +19 -17
  60. data/lib/phrase/api/distributions_api.rb +10 -8
  61. data/lib/phrase/api/git_lab_sync_api.rb +3 -3
  62. data/lib/phrase/api/{glossary_api.rb → glossaries_api.rb} +31 -29
  63. data/lib/phrase/api/glossary_term_translations_api.rb +10 -8
  64. data/lib/phrase/api/glossary_terms_api.rb +10 -8
  65. data/lib/phrase/api/invitations_api.rb +10 -8
  66. data/lib/phrase/api/job_locales_api.rb +10 -8
  67. data/lib/phrase/api/jobs_api.rb +13 -11
  68. data/lib/phrase/api/keys_api.rb +14 -12
  69. data/lib/phrase/api/locales_api.rb +15 -13
  70. data/lib/phrase/api/members_api.rb +3 -3
  71. data/lib/phrase/api/orders_api.rb +10 -8
  72. data/lib/phrase/api/projects_api.rb +10 -8
  73. data/lib/phrase/api/releases_api.rb +10 -8
  74. data/lib/phrase/api/screenshot_markers_api.rb +10 -8
  75. data/lib/phrase/api/screenshots_api.rb +10 -8
  76. data/lib/phrase/api/spaces_api.rb +16 -14
  77. data/lib/phrase/api/style_guides_api.rb +10 -8
  78. data/lib/phrase/api/tags_api.rb +10 -8
  79. data/lib/phrase/api/teams_api.rb +840 -0
  80. data/lib/phrase/api/translations_api.rb +13 -11
  81. data/lib/phrase/api/uploads_api.rb +13 -5
  82. data/lib/phrase/api/webhooks_api.rb +13 -11
  83. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  84. data/lib/phrase/models/keys_tag_parameters.rb +1 -1
  85. data/lib/phrase/models/keys_untag_parameters.rb +1 -1
  86. data/lib/phrase/models/project_create_parameters.rb +14 -4
  87. data/lib/phrase/models/team.rb +254 -0
  88. data/lib/phrase/models/team_create_parameters.rb +195 -0
  89. data/lib/phrase/models/team_detail.rb +254 -0
  90. data/lib/phrase/models/team_update_parameters.rb +195 -0
  91. data/lib/phrase/models/teams_projects_create_parameters.rb +195 -0
  92. data/lib/phrase/models/teams_spaces_create_parameters.rb +195 -0
  93. data/lib/phrase/models/teams_users_create_parameters.rb +195 -0
  94. data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
  95. data/lib/phrase/models/translations_include_parameters.rb +1 -1
  96. data/lib/phrase/models/translations_review_parameters.rb +1 -1
  97. data/lib/phrase/models/translations_search_parameters.rb +1 -1
  98. data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
  99. data/lib/phrase/models/translations_verify_parameters.rb +1 -1
  100. data/lib/phrase/models/upload_create_parameters.rb +4 -8
  101. data/lib/phrase/version.rb +1 -1
  102. data/spec/api/authorizations_api_spec.rb +1 -1
  103. data/spec/api/blacklisted_keys_api_spec.rb +1 -1
  104. data/spec/api/branches_api_spec.rb +1 -1
  105. data/spec/api/comments_api_spec.rb +1 -1
  106. data/spec/api/distributions_api_spec.rb +1 -1
  107. data/spec/api/{glossary_api_spec.rb → glossaries_api_spec.rb} +7 -7
  108. data/spec/api/glossary_term_translations_api_spec.rb +1 -1
  109. data/spec/api/glossary_terms_api_spec.rb +1 -1
  110. data/spec/api/invitations_api_spec.rb +1 -1
  111. data/spec/api/job_locales_api_spec.rb +1 -1
  112. data/spec/api/jobs_api_spec.rb +1 -1
  113. data/spec/api/keys_api_spec.rb +3 -3
  114. data/spec/api/locales_api_spec.rb +2 -2
  115. data/spec/api/orders_api_spec.rb +1 -1
  116. data/spec/api/projects_api_spec.rb +1 -1
  117. data/spec/api/releases_api_spec.rb +1 -1
  118. data/spec/api/screenshot_markers_api_spec.rb +1 -1
  119. data/spec/api/screenshots_api_spec.rb +1 -1
  120. data/spec/api/spaces_api_spec.rb +1 -1
  121. data/spec/api/style_guides_api_spec.rb +1 -1
  122. data/spec/api/tags_api_spec.rb +1 -1
  123. data/spec/api/teams_api_spec.rb +185 -0
  124. data/spec/api/translations_api_spec.rb +4 -4
  125. data/spec/api/uploads_api_spec.rb +3 -1
  126. data/spec/api/webhooks_api_spec.rb +1 -1
  127. data/spec/models/project_create_parameters_spec.rb +6 -0
  128. data/spec/models/team_create_parameters_spec.rb +29 -0
  129. data/spec/models/team_detail_spec.rb +65 -0
  130. data/spec/models/team_spec.rb +65 -0
  131. data/spec/models/team_update_parameters_spec.rb +29 -0
  132. data/spec/models/teams_projects_create_parameters_spec.rb +29 -0
  133. data/spec/models/teams_spaces_create_parameters_spec.rb +29 -0
  134. data/spec/models/teams_users_create_parameters_spec.rb +29 -0
  135. metadata +183 -151
@@ -29,8 +29,7 @@ Phrase.configure do |config|
29
29
 
30
30
  # Configure API key authorization: Token
31
31
  config.api_key['Authorization'] = 'YOUR API KEY'
32
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
33
- #config.api_key_prefix['Authorization'] = 'Bearer'
32
+ config.api_key_prefix['Authorization'] = 'token'
34
33
  end
35
34
 
36
35
  api_instance = Phrase::UsersApi.new
@@ -30,8 +30,7 @@ Phrase.configure do |config|
30
30
 
31
31
  # Configure API key authorization: Token
32
32
  config.api_key['Authorization'] = 'YOUR API KEY'
33
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
34
- #config.api_key_prefix['Authorization'] = 'Bearer'
33
+ config.api_key_prefix['Authorization'] = 'token'
35
34
  end
36
35
 
37
36
  api_instance = Phrase::VersionsHistoryApi.new
@@ -98,8 +97,7 @@ Phrase.configure do |config|
98
97
 
99
98
  # Configure API key authorization: Token
100
99
  config.api_key['Authorization'] = 'YOUR API KEY'
101
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
102
- #config.api_key_prefix['Authorization'] = 'Bearer'
100
+ config.api_key_prefix['Authorization'] = 'token'
103
101
  end
104
102
 
105
103
  api_instance = Phrase::VersionsHistoryApi.new
@@ -15,7 +15,7 @@ Method | HTTP request | Description
15
15
 
16
16
  ## webhook_create
17
17
 
18
- > webhook_create(project_id, webhook_create_parameters, opts)
18
+ > Webhook webhook_create(project_id, webhook_create_parameters, opts)
19
19
 
20
20
  Create a webhook
21
21
 
@@ -34,8 +34,7 @@ Phrase.configure do |config|
34
34
 
35
35
  # Configure API key authorization: Token
36
36
  config.api_key['Authorization'] = 'YOUR API KEY'
37
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
38
- #config.api_key_prefix['Authorization'] = 'Bearer'
37
+ config.api_key_prefix['Authorization'] = 'token'
39
38
  end
40
39
 
41
40
  api_instance = Phrase::WebhooksApi.new
@@ -47,7 +46,8 @@ opts = {
47
46
 
48
47
  begin
49
48
  #Create a webhook
50
- api_instance.webhook_create(project_id, webhook_create_parameters, opts)
49
+ result = api_instance.webhook_create(project_id, webhook_create_parameters, opts)
50
+ pp result
51
51
  rescue Phrase::ApiError => e
52
52
  puts "Exception when calling WebhooksApi->webhook_create: #{e}"
53
53
  end
@@ -64,7 +64,7 @@ Name | Type | Description | Notes
64
64
 
65
65
  ### Return type
66
66
 
67
- Response<(nil (empty response body))>
67
+ Response<([**Webhook**](Webhook.md))>
68
68
 
69
69
  ### Authorization
70
70
 
@@ -73,7 +73,7 @@ Response<(nil (empty response body))>
73
73
  ### HTTP request headers
74
74
 
75
75
  - **Content-Type**: application/json
76
- - **Accept**: Not defined
76
+ - **Accept**: application/json
77
77
 
78
78
 
79
79
  ## webhook_delete
@@ -97,8 +97,7 @@ Phrase.configure do |config|
97
97
 
98
98
  # Configure API key authorization: Token
99
99
  config.api_key['Authorization'] = 'YOUR API KEY'
100
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
101
- #config.api_key_prefix['Authorization'] = 'Bearer'
100
+ config.api_key_prefix['Authorization'] = 'token'
102
101
  end
103
102
 
104
103
  api_instance = Phrase::WebhooksApi.new
@@ -160,8 +159,7 @@ Phrase.configure do |config|
160
159
 
161
160
  # Configure API key authorization: Token
162
161
  config.api_key['Authorization'] = 'YOUR API KEY'
163
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
164
- #config.api_key_prefix['Authorization'] = 'Bearer'
162
+ config.api_key_prefix['Authorization'] = 'token'
165
163
  end
166
164
 
167
165
  api_instance = Phrase::WebhooksApi.new
@@ -224,8 +222,7 @@ Phrase.configure do |config|
224
222
 
225
223
  # Configure API key authorization: Token
226
224
  config.api_key['Authorization'] = 'YOUR API KEY'
227
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
228
- #config.api_key_prefix['Authorization'] = 'Bearer'
225
+ config.api_key_prefix['Authorization'] = 'token'
229
226
  end
230
227
 
231
228
  api_instance = Phrase::WebhooksApi.new
@@ -287,8 +284,7 @@ Phrase.configure do |config|
287
284
 
288
285
  # Configure API key authorization: Token
289
286
  config.api_key['Authorization'] = 'YOUR API KEY'
290
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
291
- #config.api_key_prefix['Authorization'] = 'Bearer'
287
+ config.api_key_prefix['Authorization'] = 'token'
292
288
  end
293
289
 
294
290
  api_instance = Phrase::WebhooksApi.new
@@ -353,8 +349,7 @@ Phrase.configure do |config|
353
349
 
354
350
  # Configure API key authorization: Token
355
351
  config.api_key['Authorization'] = 'YOUR API KEY'
356
- # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
357
- #config.api_key_prefix['Authorization'] = 'Bearer'
352
+ config.api_key_prefix['Authorization'] = 'token'
358
353
  end
359
354
 
360
355
  api_instance = Phrase::WebhooksApi.new
@@ -14,12 +14,12 @@ if [ "$git_host" = "" ]; then
14
14
  fi
15
15
 
16
16
  if [ "$git_user_id" = "" ]; then
17
- git_user_id="GIT_USER_ID"
17
+ git_user_id="phrase"
18
18
  echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
19
  fi
20
20
 
21
21
  if [ "$git_repo_id" = "" ]; then
22
- git_repo_id="GIT_REPO_ID"
22
+ git_repo_id="phrase-ruby"
23
23
  echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
24
  fi
25
25
 
@@ -121,6 +121,13 @@ require 'phrase/models/tag_with_stats'
121
121
  require 'phrase/models/tag_with_stats1'
122
122
  require 'phrase/models/tag_with_stats1_statistics'
123
123
  require 'phrase/models/tag_with_stats1_statistics1'
124
+ require 'phrase/models/team'
125
+ require 'phrase/models/team_create_parameters'
126
+ require 'phrase/models/team_detail'
127
+ require 'phrase/models/team_update_parameters'
128
+ require 'phrase/models/teams_projects_create_parameters'
129
+ require 'phrase/models/teams_spaces_create_parameters'
130
+ require 'phrase/models/teams_users_create_parameters'
124
131
  require 'phrase/models/translation'
125
132
  require 'phrase/models/translation_create_parameters'
126
133
  require 'phrase/models/translation_details'
@@ -163,7 +170,7 @@ require 'phrase/api/comments_api'
163
170
  require 'phrase/api/distributions_api'
164
171
  require 'phrase/api/formats_api'
165
172
  require 'phrase/api/git_lab_sync_api'
166
- require 'phrase/api/glossary_api'
173
+ require 'phrase/api/glossaries_api'
167
174
  require 'phrase/api/glossary_term_translations_api'
168
175
  require 'phrase/api/glossary_terms_api'
169
176
  require 'phrase/api/invitations_api'
@@ -180,6 +187,7 @@ require 'phrase/api/screenshots_api'
180
187
  require 'phrase/api/spaces_api'
181
188
  require 'phrase/api/style_guides_api'
182
189
  require 'phrase/api/tags_api'
190
+ require 'phrase/api/teams_api'
183
191
  require 'phrase/api/translations_api'
184
192
  require 'phrase/api/uploads_api'
185
193
  require 'phrase/api/users_api'
@@ -12,10 +12,10 @@ module Phrase
12
12
  # @param authorization_create_parameters [AuthorizationCreateParameters]
13
13
  # @param [Hash] opts the optional parameters
14
14
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
15
- # @return [nil]
15
+ # @return [AuthorizationWithToken]
16
16
  def authorization_create(authorization_create_parameters, opts = {})
17
- authorization_create_with_http_info(authorization_create_parameters, opts)
18
- nil
17
+ data, _status_code, _headers = authorization_create_with_http_info(authorization_create_parameters, opts)
18
+ data
19
19
  end
20
20
 
21
21
  # Create an authorization
@@ -23,7 +23,7 @@ module Phrase
23
23
  # @param authorization_create_parameters [AuthorizationCreateParameters]
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
26
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
26
+ # @return [Array<(Response<(AuthorizationWithToken)>, Integer, Hash)>] Response<(AuthorizationWithToken)> data, response status code and response headers
27
27
  def authorization_create_with_http_info(authorization_create_parameters, opts = {})
28
28
  if @api_client.config.debugging
29
29
  @api_client.config.logger.debug 'Calling API: AuthorizationsApi.authorization_create ...'
@@ -40,6 +40,8 @@ module Phrase
40
40
 
41
41
  # header parameters
42
42
  header_params = opts[:header_params] || {}
43
+ # HTTP header 'Accept' (if needed)
44
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
43
45
  # HTTP header 'Content-Type'
44
46
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
45
47
  header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
@@ -51,7 +53,7 @@ module Phrase
51
53
  post_body = opts[:body] || @api_client.object_to_http_body(authorization_create_parameters)
52
54
 
53
55
  # return_type
54
- return_type = opts[:return_type]
56
+ return_type = opts[:return_type] || 'AuthorizationWithToken'
55
57
 
56
58
  # auth_names
57
59
  auth_names = opts[:auth_names] || ['Basic', 'Token']
@@ -80,8 +82,8 @@ module Phrase
80
82
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
81
83
  # @return [nil]
82
84
  def authorization_delete(id, opts = {})
83
- authorization_delete_with_http_info(id, opts)
84
- nil
85
+ data, _status_code, _headers = authorization_delete_with_http_info(id, opts)
86
+ data
85
87
  end
86
88
 
87
89
  # Delete an authorization
@@ -89,7 +91,7 @@ module Phrase
89
91
  # @param id [String] ID
90
92
  # @param [Hash] opts the optional parameters
91
93
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
92
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
94
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
93
95
  def authorization_delete_with_http_info(id, opts = {})
94
96
  if @api_client.config.debugging
95
97
  @api_client.config.logger.debug 'Calling API: AuthorizationsApi.authorization_delete ...'
@@ -89,8 +89,8 @@ module Phrase
89
89
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
90
90
  # @return [nil]
91
91
  def bitbucket_sync_import(id, bitbucket_sync_import_parameters, opts = {})
92
- bitbucket_sync_import_with_http_info(id, bitbucket_sync_import_parameters, opts)
93
- nil
92
+ data, _status_code, _headers = bitbucket_sync_import_with_http_info(id, bitbucket_sync_import_parameters, opts)
93
+ data
94
94
  end
95
95
 
96
96
  # Import to Phrase from Bitbucket
@@ -99,7 +99,7 @@ module Phrase
99
99
  # @param bitbucket_sync_import_parameters [BitbucketSyncImportParameters]
100
100
  # @param [Hash] opts the optional parameters
101
101
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
102
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
102
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
103
103
  def bitbucket_sync_import_with_http_info(id, bitbucket_sync_import_parameters, opts = {})
104
104
  if @api_client.config.debugging
105
105
  @api_client.config.logger.debug 'Calling API: BitbucketSyncApi.bitbucket_sync_import ...'
@@ -13,10 +13,10 @@ module Phrase
13
13
  # @param blacklisted_key_create_parameters [BlacklistedKeyCreateParameters]
14
14
  # @param [Hash] opts the optional parameters
15
15
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
16
- # @return [nil]
16
+ # @return [BlacklistedKey]
17
17
  def blacklisted_key_create(project_id, blacklisted_key_create_parameters, opts = {})
18
- blacklisted_key_create_with_http_info(project_id, blacklisted_key_create_parameters, opts)
19
- nil
18
+ data, _status_code, _headers = blacklisted_key_create_with_http_info(project_id, blacklisted_key_create_parameters, opts)
19
+ data
20
20
  end
21
21
 
22
22
  # Create a blacklisted key
@@ -25,7 +25,7 @@ module Phrase
25
25
  # @param blacklisted_key_create_parameters [BlacklistedKeyCreateParameters]
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
28
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
28
+ # @return [Array<(Response<(BlacklistedKey)>, Integer, Hash)>] Response<(BlacklistedKey)> data, response status code and response headers
29
29
  def blacklisted_key_create_with_http_info(project_id, blacklisted_key_create_parameters, opts = {})
30
30
  if @api_client.config.debugging
31
31
  @api_client.config.logger.debug 'Calling API: BlacklistedKeysApi.blacklisted_key_create ...'
@@ -46,6 +46,8 @@ module Phrase
46
46
 
47
47
  # header parameters
48
48
  header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
49
51
  # HTTP header 'Content-Type'
50
52
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
51
53
  header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
@@ -57,7 +59,7 @@ module Phrase
57
59
  post_body = opts[:body] || @api_client.object_to_http_body(blacklisted_key_create_parameters)
58
60
 
59
61
  # return_type
60
- return_type = opts[:return_type]
62
+ return_type = opts[:return_type] || 'BlacklistedKey'
61
63
 
62
64
  # auth_names
63
65
  auth_names = opts[:auth_names] || ['Basic', 'Token']
@@ -87,8 +89,8 @@ module Phrase
87
89
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
88
90
  # @return [nil]
89
91
  def blacklisted_key_delete(project_id, id, opts = {})
90
- blacklisted_key_delete_with_http_info(project_id, id, opts)
91
- nil
92
+ data, _status_code, _headers = blacklisted_key_delete_with_http_info(project_id, id, opts)
93
+ data
92
94
  end
93
95
 
94
96
  # Delete a blacklisted key
@@ -97,7 +99,7 @@ module Phrase
97
99
  # @param id [String] ID
98
100
  # @param [Hash] opts the optional parameters
99
101
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
100
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
102
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
101
103
  def blacklisted_key_delete_with_http_info(project_id, id, opts = {})
102
104
  if @api_client.config.debugging
103
105
  @api_client.config.logger.debug 'Calling API: BlacklistedKeysApi.blacklisted_key_delete ...'
@@ -15,8 +15,8 @@ module Phrase
15
15
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
16
16
  # @return [nil]
17
17
  def branch_compare(project_id, name, opts = {})
18
- branch_compare_with_http_info(project_id, name, opts)
19
- nil
18
+ data, _status_code, _headers = branch_compare_with_http_info(project_id, name, opts)
19
+ data
20
20
  end
21
21
 
22
22
  # Compare branches
@@ -25,7 +25,7 @@ module Phrase
25
25
  # @param name [String] name
26
26
  # @param [Hash] opts the optional parameters
27
27
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
28
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
28
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
29
29
  def branch_compare_with_http_info(project_id, name, opts = {})
30
30
  if @api_client.config.debugging
31
31
  @api_client.config.logger.debug 'Calling API: BranchesApi.branch_compare ...'
@@ -83,10 +83,10 @@ module Phrase
83
83
  # @param branch_create_parameters [BranchCreateParameters]
84
84
  # @param [Hash] opts the optional parameters
85
85
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
86
- # @return [nil]
86
+ # @return [Branch]
87
87
  def branch_create(project_id, branch_create_parameters, opts = {})
88
- branch_create_with_http_info(project_id, branch_create_parameters, opts)
89
- nil
88
+ data, _status_code, _headers = branch_create_with_http_info(project_id, branch_create_parameters, opts)
89
+ data
90
90
  end
91
91
 
92
92
  # Create a branch
@@ -95,7 +95,7 @@ module Phrase
95
95
  # @param branch_create_parameters [BranchCreateParameters]
96
96
  # @param [Hash] opts the optional parameters
97
97
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
98
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
98
+ # @return [Array<(Response<(Branch)>, Integer, Hash)>] Response<(Branch)> data, response status code and response headers
99
99
  def branch_create_with_http_info(project_id, branch_create_parameters, opts = {})
100
100
  if @api_client.config.debugging
101
101
  @api_client.config.logger.debug 'Calling API: BranchesApi.branch_create ...'
@@ -116,6 +116,8 @@ module Phrase
116
116
 
117
117
  # header parameters
118
118
  header_params = opts[:header_params] || {}
119
+ # HTTP header 'Accept' (if needed)
120
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
121
  # HTTP header 'Content-Type'
120
122
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
121
123
  header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
@@ -127,7 +129,7 @@ module Phrase
127
129
  post_body = opts[:body] || @api_client.object_to_http_body(branch_create_parameters)
128
130
 
129
131
  # return_type
130
- return_type = opts[:return_type]
132
+ return_type = opts[:return_type] || 'Branch'
131
133
 
132
134
  # auth_names
133
135
  auth_names = opts[:auth_names] || ['Basic', 'Token']
@@ -157,8 +159,8 @@ module Phrase
157
159
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
158
160
  # @return [nil]
159
161
  def branch_delete(project_id, name, opts = {})
160
- branch_delete_with_http_info(project_id, name, opts)
161
- nil
162
+ data, _status_code, _headers = branch_delete_with_http_info(project_id, name, opts)
163
+ data
162
164
  end
163
165
 
164
166
  # Delete a branch
@@ -167,7 +169,7 @@ module Phrase
167
169
  # @param name [String] name
168
170
  # @param [Hash] opts the optional parameters
169
171
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
170
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
172
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
171
173
  def branch_delete_with_http_info(project_id, name, opts = {})
172
174
  if @api_client.config.debugging
173
175
  @api_client.config.logger.debug 'Calling API: BranchesApi.branch_delete ...'
@@ -228,8 +230,8 @@ module Phrase
228
230
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
229
231
  # @return [nil]
230
232
  def branch_merge(project_id, name, branch_merge_parameters, opts = {})
231
- branch_merge_with_http_info(project_id, name, branch_merge_parameters, opts)
232
- nil
233
+ data, _status_code, _headers = branch_merge_with_http_info(project_id, name, branch_merge_parameters, opts)
234
+ data
233
235
  end
234
236
 
235
237
  # Merge a branch
@@ -239,7 +241,7 @@ module Phrase
239
241
  # @param branch_merge_parameters [BranchMergeParameters]
240
242
  # @param [Hash] opts the optional parameters
241
243
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
242
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
244
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
243
245
  def branch_merge_with_http_info(project_id, name, branch_merge_parameters, opts = {})
244
246
  if @api_client.config.debugging
245
247
  @api_client.config.logger.debug 'Calling API: BranchesApi.branch_merge ...'
@@ -14,10 +14,10 @@ module Phrase
14
14
  # @param comment_create_parameters [CommentCreateParameters]
15
15
  # @param [Hash] opts the optional parameters
16
16
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
17
- # @return [nil]
17
+ # @return [Comment]
18
18
  def comment_create(project_id, key_id, comment_create_parameters, opts = {})
19
- comment_create_with_http_info(project_id, key_id, comment_create_parameters, opts)
20
- nil
19
+ data, _status_code, _headers = comment_create_with_http_info(project_id, key_id, comment_create_parameters, opts)
20
+ data
21
21
  end
22
22
 
23
23
  # Create a comment
@@ -27,7 +27,7 @@ module Phrase
27
27
  # @param comment_create_parameters [CommentCreateParameters]
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
30
+ # @return [Array<(Response<(Comment)>, Integer, Hash)>] Response<(Comment)> data, response status code and response headers
31
31
  def comment_create_with_http_info(project_id, key_id, comment_create_parameters, opts = {})
32
32
  if @api_client.config.debugging
33
33
  @api_client.config.logger.debug 'Calling API: CommentsApi.comment_create ...'
@@ -52,6 +52,8 @@ module Phrase
52
52
 
53
53
  # header parameters
54
54
  header_params = opts[:header_params] || {}
55
+ # HTTP header 'Accept' (if needed)
56
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
57
  # HTTP header 'Content-Type'
56
58
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
57
59
  header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
@@ -63,7 +65,7 @@ module Phrase
63
65
  post_body = opts[:body] || @api_client.object_to_http_body(comment_create_parameters)
64
66
 
65
67
  # return_type
66
- return_type = opts[:return_type]
68
+ return_type = opts[:return_type] || 'Comment'
67
69
 
68
70
  # auth_names
69
71
  auth_names = opts[:auth_names] || ['Basic', 'Token']
@@ -95,8 +97,8 @@ module Phrase
95
97
  # @option opts [String] :branch specify the branch to use
96
98
  # @return [nil]
97
99
  def comment_delete(project_id, key_id, id, opts = {})
98
- comment_delete_with_http_info(project_id, key_id, id, opts)
99
- nil
100
+ data, _status_code, _headers = comment_delete_with_http_info(project_id, key_id, id, opts)
101
+ data
100
102
  end
101
103
 
102
104
  # Delete a comment
@@ -107,7 +109,7 @@ module Phrase
107
109
  # @param [Hash] opts the optional parameters
108
110
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
109
111
  # @option opts [String] :branch specify the branch to use
110
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
112
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
111
113
  def comment_delete_with_http_info(project_id, key_id, id, opts = {})
112
114
  if @api_client.config.debugging
113
115
  @api_client.config.logger.debug 'Calling API: CommentsApi.comment_delete ...'
@@ -174,8 +176,8 @@ module Phrase
174
176
  # @option opts [String] :branch specify the branch to use
175
177
  # @return [nil]
176
178
  def comment_mark_check(project_id, key_id, id, opts = {})
177
- comment_mark_check_with_http_info(project_id, key_id, id, opts)
178
- nil
179
+ data, _status_code, _headers = comment_mark_check_with_http_info(project_id, key_id, id, opts)
180
+ data
179
181
  end
180
182
 
181
183
  # Check if comment is read
@@ -186,7 +188,7 @@ module Phrase
186
188
  # @param [Hash] opts the optional parameters
187
189
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
188
190
  # @option opts [String] :branch specify the branch to use
189
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
191
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
190
192
  def comment_mark_check_with_http_info(project_id, key_id, id, opts = {})
191
193
  if @api_client.config.debugging
192
194
  @api_client.config.logger.debug 'Calling API: CommentsApi.comment_mark_check ...'
@@ -253,8 +255,8 @@ module Phrase
253
255
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
254
256
  # @return [nil]
255
257
  def comment_mark_read(project_id, key_id, id, comment_mark_read_parameters, opts = {})
256
- comment_mark_read_with_http_info(project_id, key_id, id, comment_mark_read_parameters, opts)
257
- nil
258
+ data, _status_code, _headers = comment_mark_read_with_http_info(project_id, key_id, id, comment_mark_read_parameters, opts)
259
+ data
258
260
  end
259
261
 
260
262
  # Mark a comment as read
@@ -265,7 +267,7 @@ module Phrase
265
267
  # @param comment_mark_read_parameters [CommentMarkReadParameters]
266
268
  # @param [Hash] opts the optional parameters
267
269
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
268
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
270
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
269
271
  def comment_mark_read_with_http_info(project_id, key_id, id, comment_mark_read_parameters, opts = {})
270
272
  if @api_client.config.debugging
271
273
  @api_client.config.logger.debug 'Calling API: CommentsApi.comment_mark_read ...'
@@ -337,8 +339,8 @@ module Phrase
337
339
  # @option opts [String] :branch specify the branch to use
338
340
  # @return [nil]
339
341
  def comment_mark_unread(project_id, key_id, id, opts = {})
340
- comment_mark_unread_with_http_info(project_id, key_id, id, opts)
341
- nil
342
+ data, _status_code, _headers = comment_mark_unread_with_http_info(project_id, key_id, id, opts)
343
+ data
342
344
  end
343
345
 
344
346
  # Mark a comment as unread
@@ -349,7 +351,7 @@ module Phrase
349
351
  # @param [Hash] opts the optional parameters
350
352
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
351
353
  # @option opts [String] :branch specify the branch to use
352
- # @return [Array<(Response<(nil)>, Integer, Hash)>] Response<(nil, response status code and response headers
354
+ # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
353
355
  def comment_mark_unread_with_http_info(project_id, key_id, id, opts = {})
354
356
  if @api_client.config.debugging
355
357
  @api_client.config.logger.debug 'Calling API: CommentsApi.comment_mark_unread ...'