phrase 3.7.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +63 -0
  3. data/README.md +13 -37
  4. data/docs/JobCommentCreateParameters.md +3 -1
  5. data/docs/JobCommentUpdateParameters.md +3 -1
  6. data/docs/JobCommentsApi.md +6 -6
  7. data/docs/JobDetails.md +2 -0
  8. data/docs/JobKeysDeleteParameters.md +19 -0
  9. data/docs/JobLocalesApi.md +6 -6
  10. data/docs/JobsApi.md +16 -14
  11. data/docs/KeyCreateParameters.md +1 -1
  12. data/docs/KeyUpdateParameters.md +1 -1
  13. data/docs/KeysApi.md +4 -4
  14. data/docs/KeysExcludeParameters.md +1 -1
  15. data/docs/KeysIncludeParameters.md +1 -1
  16. data/docs/KeysSearchParameters.md +1 -1
  17. data/docs/KeysTagParameters.md +1 -1
  18. data/docs/KeysUntagParameters.md +1 -1
  19. data/docs/LocalesApi.md +3 -1
  20. data/docs/ProjectCreateParameters.md +1 -1
  21. data/docs/ProjectUpdateParameters.md +4 -2
  22. data/docs/QualityPerformanceScoreApi.md +8 -8
  23. data/docs/QualityPerformanceScoreList200Response.md +21 -0
  24. data/docs/QualityPerformanceScoreList200ResponseAnyOf.md +19 -0
  25. data/docs/QualityPerformanceScoreList200ResponseAnyOfData.md +17 -0
  26. data/docs/{ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md → QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md} +2 -2
  27. data/docs/{ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md → QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md} +2 -2
  28. data/docs/{ProjectsQualityPerformanceScoreRequest.md → QualityPerformanceScoreListRequest.md} +2 -2
  29. data/docs/RepoSyncEvent.md +3 -3
  30. data/docs/RepoSyncEventsApi.md +138 -0
  31. data/docs/RepoSyncsApi.md +2 -132
  32. data/docs/ScreenshotUpdateParameters.md +1 -1
  33. data/docs/Upload.md +3 -1
  34. data/lib/phrase/api/job_comments_api.rb +6 -6
  35. data/lib/phrase/api/job_locales_api.rb +6 -6
  36. data/lib/phrase/api/jobs_api.rb +24 -16
  37. data/lib/phrase/api/keys_api.rb +4 -4
  38. data/lib/phrase/api/locales_api.rb +3 -0
  39. data/lib/phrase/api/quality_performance_score_api.rb +15 -15
  40. data/lib/phrase/api/repo_sync_events_api.rb +160 -0
  41. data/lib/phrase/api/repo_syncs_api.rb +4 -154
  42. data/lib/phrase/models/job_comment_create_parameters.rb +14 -4
  43. data/lib/phrase/models/job_comment_update_parameters.rb +14 -4
  44. data/lib/phrase/models/job_details.rb +10 -1
  45. data/lib/phrase/models/job_keys_delete_parameters.rb +214 -0
  46. data/lib/phrase/models/keys_exclude_parameters.rb +1 -1
  47. data/lib/phrase/models/keys_include_parameters.rb +1 -1
  48. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  49. data/lib/phrase/models/keys_tag_parameters.rb +1 -1
  50. data/lib/phrase/models/keys_untag_parameters.rb +1 -1
  51. data/lib/phrase/models/project_update_parameters.rb +48 -4
  52. data/lib/phrase/models/{projects_quality_performance_score200_response.rb → quality_performance_score_list200_response.rb} +6 -6
  53. data/lib/phrase/models/{projects_quality_performance_score200_response_any_of.rb → quality_performance_score_list200_response_any_of.rb} +5 -5
  54. data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_data.rb → quality_performance_score_list200_response_any_of_data.rb} +4 -4
  55. data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_data_translations_inner.rb → quality_performance_score_list200_response_any_of_data_translations_inner.rb} +3 -3
  56. data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_errors_inner.rb → quality_performance_score_list200_response_any_of_errors_inner.rb} +3 -3
  57. data/lib/phrase/models/{projects_quality_performance_score_request.rb → quality_performance_score_list_request.rb} +3 -3
  58. data/lib/phrase/models/repo_sync_event.rb +15 -15
  59. data/lib/phrase/models/upload.rb +14 -1
  60. data/lib/phrase/version.rb +1 -1
  61. data/lib/phrase.rb +8 -22
  62. data/spec/api/job_comments_api_spec.rb +3 -3
  63. data/spec/api/job_locales_api_spec.rb +3 -3
  64. data/spec/api/jobs_api_spec.rb +6 -5
  65. data/spec/api/keys_api_spec.rb +2 -2
  66. data/spec/api/quality_performance_score_api_spec.rb +4 -4
  67. data/spec/api/repo_sync_events_api_spec.rb +52 -0
  68. data/spec/api/repo_syncs_api_spec.rb +2 -31
  69. data/spec/models/job_comment_create_parameters_spec.rb +6 -0
  70. data/spec/models/job_comment_update_parameters_spec.rb +6 -0
  71. data/spec/models/job_details_spec.rb +6 -0
  72. data/spec/models/{gitlab_sync_export_spec.rb → job_keys_delete_parameters_spec.rb} +8 -8
  73. data/spec/models/project_update_parameters_spec.rb +10 -0
  74. data/spec/models/quality_performance_score_list200_response_any_of_data_spec.rb +29 -0
  75. data/spec/models/{projects_quality_performance_score200_response_any_of_data_translations_inner_spec.rb → quality_performance_score_list200_response_any_of_data_translations_inner_spec.rb} +6 -6
  76. data/spec/models/{projects_quality_performance_score200_response_any_of_errors_inner_spec.rb → quality_performance_score_list200_response_any_of_errors_inner_spec.rb} +6 -6
  77. data/spec/models/{projects_quality_performance_score200_response_any_of_spec.rb → quality_performance_score_list200_response_any_of_spec.rb} +6 -6
  78. data/spec/models/{projects_quality_performance_score200_response_spec.rb → quality_performance_score_list200_response_spec.rb} +6 -6
  79. data/spec/models/{projects_quality_performance_score_request_spec.rb → quality_performance_score_list_request_spec.rb} +6 -6
  80. data/spec/models/repo_sync_event_spec.rb +2 -2
  81. data/spec/models/upload_spec.rb +6 -0
  82. metadata +265 -321
  83. data/docs/BitbucketSync.md +0 -27
  84. data/docs/BitbucketSyncApi.md +0 -197
  85. data/docs/BitbucketSyncExportParameters.md +0 -17
  86. data/docs/BitbucketSyncExportResponse.md +0 -17
  87. data/docs/BitbucketSyncImportParameters.md +0 -17
  88. data/docs/GitHubSyncApi.md +0 -130
  89. data/docs/GitLabSyncApi.md +0 -463
  90. data/docs/GithubSyncExportParameters.md +0 -17
  91. data/docs/GithubSyncImportParameters.md +0 -17
  92. data/docs/GitlabSync.md +0 -37
  93. data/docs/GitlabSyncExport.md +0 -19
  94. data/docs/GitlabSyncExportParameters.md +0 -17
  95. data/docs/GitlabSyncHistory.md +0 -25
  96. data/docs/GitlabSyncHistoryErrorsInner.md +0 -19
  97. data/docs/GitlabSyncImportParameters.md +0 -17
  98. data/docs/ProjectsQualityPerformanceScore200Response.md +0 -21
  99. data/docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md +0 -19
  100. data/docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md +0 -17
  101. data/docs/RepoSyncEventErrorsInner.md +0 -16
  102. data/lib/phrase/api/bitbucket_sync_api.rb +0 -219
  103. data/lib/phrase/api/git_hub_sync_api.rb +0 -146
  104. data/lib/phrase/api/git_lab_sync_api.rb +0 -510
  105. data/lib/phrase/models/bitbucket_sync.rb +0 -243
  106. data/lib/phrase/models/bitbucket_sync_export_parameters.rb +0 -197
  107. data/lib/phrase/models/bitbucket_sync_export_response.rb +0 -196
  108. data/lib/phrase/models/bitbucket_sync_import_parameters.rb +0 -197
  109. data/lib/phrase/models/github_sync_export_parameters.rb +0 -197
  110. data/lib/phrase/models/github_sync_import_parameters.rb +0 -197
  111. data/lib/phrase/models/gitlab_sync.rb +0 -286
  112. data/lib/phrase/models/gitlab_sync_export.rb +0 -205
  113. data/lib/phrase/models/gitlab_sync_export_parameters.rb +0 -197
  114. data/lib/phrase/models/gitlab_sync_history.rb +0 -234
  115. data/lib/phrase/models/gitlab_sync_history_errors_inner.rb +0 -205
  116. data/lib/phrase/models/gitlab_sync_import_parameters.rb +0 -197
  117. data/lib/phrase/models/repo_sync_event_errors_inner.rb +0 -207
  118. data/spec/api/bitbucket_sync_api_spec.rb +0 -64
  119. data/spec/api/git_hub_sync_api_spec.rb +0 -49
  120. data/spec/api/git_lab_sync_api_spec.rb +0 -125
  121. data/spec/models/bitbucket_sync_export_parameters_spec.rb +0 -29
  122. data/spec/models/bitbucket_sync_export_response_spec.rb +0 -29
  123. data/spec/models/bitbucket_sync_import_parameters_spec.rb +0 -29
  124. data/spec/models/bitbucket_sync_spec.rb +0 -59
  125. data/spec/models/github_sync_export_parameters_spec.rb +0 -29
  126. data/spec/models/github_sync_import_parameters_spec.rb +0 -29
  127. data/spec/models/gitlab_sync_export_parameters_spec.rb +0 -29
  128. data/spec/models/gitlab_sync_history_errors_inner_spec.rb +0 -35
  129. data/spec/models/gitlab_sync_history_spec.rb +0 -53
  130. data/spec/models/gitlab_sync_import_parameters_spec.rb +0 -29
  131. data/spec/models/gitlab_sync_spec.rb +0 -89
  132. data/spec/models/projects_quality_performance_score200_response_any_of_data_spec.rb +0 -29
  133. data/spec/models/repo_sync_event_errors_inner_spec.rb +0 -23
@@ -186,7 +186,7 @@ module Phrase
186
186
  # @param id [String] ID
187
187
  # @param [Hash] opts the optional parameters
188
188
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
189
- # @option opts [String] :branch specify the branch to use
189
+ # @option opts [String] :branch Branch to use
190
190
  # @return [nil]
191
191
  def job_locale_delete(project_id, job_id, id, opts = {})
192
192
  data, _status_code, _headers = job_locale_delete_with_http_info(project_id, job_id, id, opts)
@@ -200,7 +200,7 @@ module Phrase
200
200
  # @param id [String] ID
201
201
  # @param [Hash] opts the optional parameters
202
202
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
203
- # @option opts [String] :branch specify the branch to use
203
+ # @option opts [String] :branch Branch to use
204
204
  # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
205
205
  def job_locale_delete_with_http_info(project_id, job_id, id, opts = {})
206
206
  if @api_client.config.debugging
@@ -351,7 +351,7 @@ module Phrase
351
351
  # @param id [String] ID
352
352
  # @param [Hash] opts the optional parameters
353
353
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
354
- # @option opts [String] :branch specify the branch to use
354
+ # @option opts [String] :branch Branch to use
355
355
  # @return [JobLocale]
356
356
  def job_locale_show(project_id, job_id, id, opts = {})
357
357
  data, _status_code, _headers = job_locale_show_with_http_info(project_id, job_id, id, opts)
@@ -365,7 +365,7 @@ module Phrase
365
365
  # @param id [String] ID
366
366
  # @param [Hash] opts the optional parameters
367
367
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
368
- # @option opts [String] :branch specify the branch to use
368
+ # @option opts [String] :branch Branch to use
369
369
  # @return [Array<(Response<(JobLocale)>, Integer, Hash)>] Response<(JobLocale)> data, response status code and response headers
370
370
  def job_locale_show_with_http_info(project_id, job_id, id, opts = {})
371
371
  if @api_client.config.debugging
@@ -599,7 +599,7 @@ module Phrase
599
599
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
600
600
  # @option opts [Integer] :page Page number
601
601
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
602
- # @option opts [String] :branch specify the branch to use
602
+ # @option opts [String] :branch Branch to use
603
603
  # @return [Array<JobLocale>]
604
604
  def job_locales_list(project_id, job_id, opts = {})
605
605
  data, _status_code, _headers = job_locales_list_with_http_info(project_id, job_id, opts)
@@ -614,7 +614,7 @@ module Phrase
614
614
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
615
615
  # @option opts [Integer] :page Page number
616
616
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
617
- # @option opts [String] :branch specify the branch to use
617
+ # @option opts [String] :branch Branch to use
618
618
  # @return [Array<(Response<(Array<JobLocale>)>, Integer, Hash)>] Response<(Array<JobLocale>)> data, response status code and response headers
619
619
  def job_locales_list_with_http_info(project_id, job_id, opts = {})
620
620
  if @api_client.config.debugging
@@ -318,13 +318,12 @@ module Phrase
318
318
  # Remove multiple keys from existing job.
319
319
  # @param project_id [String] Project ID
320
320
  # @param id [String] ID
321
+ # @param job_keys_delete_parameters [JobKeysDeleteParameters]
321
322
  # @param [Hash] opts the optional parameters
322
323
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
323
- # @option opts [String] :branch specify the branch to use
324
- # @option opts [Array<String>] :translation_key_ids ids of keys that should be removed from the job
325
324
  # @return [nil]
326
- def job_keys_delete(project_id, id, opts = {})
327
- data, _status_code, _headers = job_keys_delete_with_http_info(project_id, id, opts)
325
+ def job_keys_delete(project_id, id, job_keys_delete_parameters, opts = {})
326
+ data, _status_code, _headers = job_keys_delete_with_http_info(project_id, id, job_keys_delete_parameters, opts)
328
327
  data
329
328
  end
330
329
 
@@ -332,12 +331,11 @@ module Phrase
332
331
  # Remove multiple keys from existing job.
333
332
  # @param project_id [String] Project ID
334
333
  # @param id [String] ID
334
+ # @param job_keys_delete_parameters [JobKeysDeleteParameters]
335
335
  # @param [Hash] opts the optional parameters
336
336
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
337
- # @option opts [String] :branch specify the branch to use
338
- # @option opts [Array<String>] :translation_key_ids ids of keys that should be removed from the job
339
337
  # @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
340
- def job_keys_delete_with_http_info(project_id, id, opts = {})
338
+ def job_keys_delete_with_http_info(project_id, id, job_keys_delete_parameters, opts = {})
341
339
  if @api_client.config.debugging
342
340
  @api_client.config.logger.debug 'Calling API: JobsApi.job_keys_delete ...'
343
341
  end
@@ -349,23 +347,27 @@ module Phrase
349
347
  if @api_client.config.client_side_validation && id.nil?
350
348
  fail ArgumentError, "Missing the required parameter 'id' when calling JobsApi.job_keys_delete"
351
349
  end
350
+ # verify the required parameter 'job_keys_delete_parameters' is set
351
+ if @api_client.config.client_side_validation && job_keys_delete_parameters.nil?
352
+ fail ArgumentError, "Missing the required parameter 'job_keys_delete_parameters' when calling JobsApi.job_keys_delete"
353
+ end
352
354
  # resource path
353
355
  local_var_path = '/projects/{project_id}/jobs/{id}/keys'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
354
356
 
355
357
  # query parameters
356
358
  query_params = opts[:query_params] || {}
357
- query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
358
- query_params[:'translation_key_ids'] = @api_client.build_collection_param(opts[:'translation_key_ids'], :multi) if !opts[:'translation_key_ids'].nil?
359
359
 
360
360
  # header parameters
361
361
  header_params = opts[:header_params] || {}
362
+ # HTTP header 'Content-Type'
363
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
362
364
  header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
363
365
 
364
366
  # form parameters
365
367
  form_params = opts[:form_params] || {}
366
368
 
367
369
  # http body (model)
368
- post_body = opts[:body]
370
+ post_body = opts[:body] || @api_client.object_to_http_body(job_keys_delete_parameters)
369
371
 
370
372
  # return_type
371
373
  return_type = opts[:return_type]
@@ -860,7 +862,8 @@ module Phrase
860
862
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
861
863
  # @option opts [String] :owned_by filter by user owning job
862
864
  # @option opts [String] :assigned_to filter by user assigned to job
863
- # @option opts [String] :state filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
865
+ # @option opts [String] :state filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
866
+ # @option opts [String] :updated_since filter by jobs updated since given date
864
867
  # @return [Array<Job>]
865
868
  def jobs_by_account(account_id, opts = {})
866
869
  data, _status_code, _headers = jobs_by_account_with_http_info(account_id, opts)
@@ -876,7 +879,8 @@ module Phrase
876
879
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
877
880
  # @option opts [String] :owned_by filter by user owning job
878
881
  # @option opts [String] :assigned_to filter by user assigned to job
879
- # @option opts [String] :state filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
882
+ # @option opts [String] :state filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
883
+ # @option opts [String] :updated_since filter by jobs updated since given date
880
884
  # @return [Array<(Response<(Array<Job>)>, Integer, Hash)>] Response<(Array<Job>)> data, response status code and response headers
881
885
  def jobs_by_account_with_http_info(account_id, opts = {})
882
886
  if @api_client.config.debugging
@@ -896,6 +900,7 @@ module Phrase
896
900
  query_params[:'owned_by'] = opts[:'owned_by'] if !opts[:'owned_by'].nil?
897
901
  query_params[:'assigned_to'] = opts[:'assigned_to'] if !opts[:'assigned_to'].nil?
898
902
  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
903
+ query_params[:'updated_since'] = opts[:'updated_since'] if !opts[:'updated_since'].nil?
899
904
 
900
905
  # header parameters
901
906
  header_params = opts[:header_params] || {}
@@ -939,10 +944,11 @@ module Phrase
939
944
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
940
945
  # @option opts [Integer] :page Page number
941
946
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
942
- # @option opts [String] :branch specify the branch to use
947
+ # @option opts [String] :branch Branch to use
943
948
  # @option opts [String] :owned_by filter by user owning job
944
949
  # @option opts [String] :assigned_to filter by user assigned to job
945
- # @option opts [String] :state filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
950
+ # @option opts [String] :state filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
951
+ # @option opts [String] :updated_since filter by jobs updated since given date
946
952
  # @return [Array<Job>]
947
953
  def jobs_list(project_id, opts = {})
948
954
  data, _status_code, _headers = jobs_list_with_http_info(project_id, opts)
@@ -956,10 +962,11 @@ module Phrase
956
962
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
957
963
  # @option opts [Integer] :page Page number
958
964
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
959
- # @option opts [String] :branch specify the branch to use
965
+ # @option opts [String] :branch Branch to use
960
966
  # @option opts [String] :owned_by filter by user owning job
961
967
  # @option opts [String] :assigned_to filter by user assigned to job
962
- # @option opts [String] :state filter by state of job Valid states are &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
968
+ # @option opts [String] :state filter by state of job; valid states are: &lt;code&gt;draft&lt;/code&gt;, &lt;code&gt;in_progress&lt;/code&gt;, &lt;code&gt;completed&lt;/code&gt;
969
+ # @option opts [String] :updated_since filter by jobs updated since given date
963
970
  # @return [Array<(Response<(Array<Job>)>, Integer, Hash)>] Response<(Array<Job>)> data, response status code and response headers
964
971
  def jobs_list_with_http_info(project_id, opts = {})
965
972
  if @api_client.config.debugging
@@ -980,6 +987,7 @@ module Phrase
980
987
  query_params[:'owned_by'] = opts[:'owned_by'] if !opts[:'owned_by'].nil?
981
988
  query_params[:'assigned_to'] = opts[:'assigned_to'] if !opts[:'assigned_to'].nil?
982
989
  query_params[:'state'] = opts[:'state'] if !opts[:'state'].nil?
990
+ query_params[:'updated_since'] = opts[:'updated_since'] if !opts[:'updated_since'].nil?
983
991
 
984
992
  # header parameters
985
993
  header_params = opts[:header_params] || {}
@@ -315,7 +315,7 @@ module Phrase
315
315
  # @param [Hash] opts the optional parameters
316
316
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
317
317
  # @option opts [String] :branch specify the branch to use
318
- # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; &lt;br/&gt; &lt;p&gt;&lt;strong&gt;Caution:&lt;/strong&gt; Query parameters with empty values will be treated as though they are not included in the request and will be ignored.&lt;/p&gt; &lt;br/&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
318
+ # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id,...&lt;/code&gt; to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in &lt;strong&gt;all&lt;/strong&gt; uploads&lt;/li&gt; &lt;/ul&gt; &lt;br/&gt; &lt;p&gt;&lt;strong&gt;Caution:&lt;/strong&gt; Query parameters with empty values will be treated as though they are not included in the request and will be ignored.&lt;/p&gt; &lt;br/&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
319
319
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
320
320
  # @return [AffectedResources]
321
321
  def keys_delete_collection(project_id, opts = {})
@@ -329,7 +329,7 @@ module Phrase
329
329
  # @param [Hash] opts the optional parameters
330
330
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
331
331
  # @option opts [String] :branch specify the branch to use
332
- # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; &lt;br/&gt; &lt;p&gt;&lt;strong&gt;Caution:&lt;/strong&gt; Query parameters with empty values will be treated as though they are not included in the request and will be ignored.&lt;/p&gt; &lt;br/&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
332
+ # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id,...&lt;/code&gt; to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in &lt;strong&gt;all&lt;/strong&gt; uploads&lt;/li&gt; &lt;/ul&gt; &lt;br/&gt; &lt;p&gt;&lt;strong&gt;Caution:&lt;/strong&gt; Query parameters with empty values will be treated as though they are not included in the request and will be ignored.&lt;/p&gt; &lt;br/&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
333
333
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
334
334
  # @return [Array<(Response<(AffectedResources)>, Integer, Hash)>] Response<(AffectedResources)> data, response status code and response headers
335
335
  def keys_delete_collection_with_http_info(project_id, opts = {})
@@ -542,7 +542,7 @@ module Phrase
542
542
  # @option opts [String] :branch specify the branch to use
543
543
  # @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
544
544
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
545
- # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name,...&lt;/code&gt; for text queries on a comma-seperated list of exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name,...&lt;/code&gt; to filter for keys with certain comma-seperated list of tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;uploads:upload_id,...&lt;/code&gt; to filter for keys with certain comma-seperated list of uploads&lt;/li&gt; &lt;li&gt;&lt;code&gt;job:{true|false}&lt;/code&gt; to filter for keys mentioned in an active job&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&amp;gt;&#x3D;|&amp;lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
545
+ # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id,...&lt;/code&gt; to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in &lt;strong&gt;all&lt;/strong&gt; uploads&lt;/li&gt; &lt;/ul&gt; &lt;br/&gt; &lt;p&gt;&lt;strong&gt;Caution:&lt;/strong&gt; Query parameters with empty values will be treated as though they are not included in the request and will be ignored.&lt;/p&gt; &lt;br/&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
546
546
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
547
547
  # @return [Array<TranslationKey>]
548
548
  def keys_list(project_id, opts = {})
@@ -560,7 +560,7 @@ module Phrase
560
560
  # @option opts [String] :branch specify the branch to use
561
561
  # @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
562
562
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
563
- # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name,...&lt;/code&gt; for text queries on a comma-seperated list of exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name,...&lt;/code&gt; to filter for keys with certain comma-seperated list of tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;uploads:upload_id,...&lt;/code&gt; to filter for keys with certain comma-seperated list of uploads&lt;/li&gt; &lt;li&gt;&lt;code&gt;job:{true|false}&lt;/code&gt; to filter for keys mentioned in an active job&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&amp;gt;&#x3D;|&amp;lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id&lt;/code&gt; to filter keys unmentioned within upload&lt;/li&gt; &lt;/ul&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
563
+ # @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).&lt;br&gt;&lt;br&gt; The following qualifiers are also supported in the search term:&lt;br&gt; &lt;ul&gt; &lt;li&gt;&lt;code&gt;ids:key_id,...&lt;/code&gt; for queries on a comma-separated list of ids&lt;/li&gt; &lt;li&gt;&lt;code&gt;name:key_name&lt;/code&gt; for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes&lt;/li&gt; &lt;li&gt;&lt;code&gt;tags:tag_name&lt;/code&gt; to filter for keys with certain tags&lt;/li&gt; &lt;li&gt;&lt;code&gt;translated:{true|false}&lt;/code&gt; for translation status (also requires &lt;code&gt;locale_id&lt;/code&gt; to be specified)&lt;/li&gt; &lt;li&gt;&lt;code&gt;updated_at:{&gt;&#x3D;|&lt;&#x3D;}2013-02-21T00:00:00Z&lt;/code&gt; for date range queries&lt;/li&gt; &lt;li&gt;&lt;code&gt;unmentioned_in_upload:upload_id,...&lt;/code&gt; to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in &lt;strong&gt;all&lt;/strong&gt; uploads&lt;/li&gt; &lt;/ul&gt; &lt;br/&gt; &lt;p&gt;&lt;strong&gt;Caution:&lt;/strong&gt; Query parameters with empty values will be treated as though they are not included in the request and will be ignored.&lt;/p&gt; &lt;br/&gt; Find more examples &lt;a href&#x3D;\&quot;#overview--usage-examples\&quot;&gt;here&lt;/a&gt;.
564
564
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
565
565
  # @return [Array<(Response<(Array<TranslationKey>)>, Integer, Hash)>] Response<(Array<TranslationKey>)> data, response status code and response headers
566
566
  def keys_list_with_http_info(project_id, opts = {})
@@ -253,6 +253,7 @@ module Phrase
253
253
  # @option opts [String] :translation_key_prefix Download all translation keys, and remove the specified prefix where possible. Warning: this may create duplicate key names if other keys share the same name after the prefix is removed.
254
254
  # @option opts [Boolean] :filter_by_prefix Only download translation keys containing the specified prefix, and remove the prefix from the generated file.
255
255
  # @option opts [Object] :custom_metadata_filters Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
256
+ # @option opts [Array<String>] :locale_ids Locale IDs or locale names
256
257
  # @return [File]
257
258
  def locale_download(project_id, id, opts = {})
258
259
  data, _status_code, _headers = locale_download_with_http_info(project_id, id, opts)
@@ -286,6 +287,7 @@ module Phrase
286
287
  # @option opts [String] :translation_key_prefix Download all translation keys, and remove the specified prefix where possible. Warning: this may create duplicate key names if other keys share the same name after the prefix is removed.
287
288
  # @option opts [Boolean] :filter_by_prefix Only download translation keys containing the specified prefix, and remove the prefix from the generated file.
288
289
  # @option opts [Object] :custom_metadata_filters Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
290
+ # @option opts [Array<String>] :locale_ids Locale IDs or locale names
289
291
  # @return [Array<(Response<(File)>, Integer, Hash)>] Response<(File)> data, response status code and response headers
290
292
  def locale_download_with_http_info(project_id, id, opts = {})
291
293
  if @api_client.config.debugging
@@ -323,6 +325,7 @@ module Phrase
323
325
  query_params[:'translation_key_prefix'] = opts[:'translation_key_prefix'] if !opts[:'translation_key_prefix'].nil?
324
326
  query_params[:'filter_by_prefix'] = opts[:'filter_by_prefix'] if !opts[:'filter_by_prefix'].nil?
325
327
  query_params[:'custom_metadata_filters'] = opts[:'custom_metadata_filters'] if !opts[:'custom_metadata_filters'].nil?
328
+ query_params[:'locale_ids'] = @api_client.build_collection_param(opts[:'locale_ids'], :multi) if !opts[:'locale_ids'].nil?
326
329
 
327
330
  # header parameters
328
331
  header_params = opts[:header_params] || {}
@@ -10,33 +10,33 @@ module Phrase
10
10
  # Get Translation Quality
11
11
  # Retrieves the quality scores for your Strings translations. Returns a score, measured by Phrase QPS
12
12
  # @param project_id [String] Project ID
13
- # @param projects_quality_performance_score_request [ProjectsQualityPerformanceScoreRequest]
13
+ # @param quality_performance_score_list_request [QualityPerformanceScoreListRequest]
14
14
  # @param [Hash] opts the optional parameters
15
15
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
16
- # @return [ProjectsQualityPerformanceScore200Response]
17
- def projects_quality_performance_score(project_id, projects_quality_performance_score_request, opts = {})
18
- data, _status_code, _headers = projects_quality_performance_score_with_http_info(project_id, projects_quality_performance_score_request, opts)
16
+ # @return [QualityPerformanceScoreList200Response]
17
+ def quality_performance_score_list(project_id, quality_performance_score_list_request, opts = {})
18
+ data, _status_code, _headers = quality_performance_score_list_with_http_info(project_id, quality_performance_score_list_request, opts)
19
19
  data
20
20
  end
21
21
 
22
22
  # Get Translation Quality
23
23
  # Retrieves the quality scores for your Strings translations. Returns a score, measured by Phrase QPS
24
24
  # @param project_id [String] Project ID
25
- # @param projects_quality_performance_score_request [ProjectsQualityPerformanceScoreRequest]
25
+ # @param quality_performance_score_list_request [QualityPerformanceScoreListRequest]
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<(ProjectsQualityPerformanceScore200Response)>, Integer, Hash)>] Response<(ProjectsQualityPerformanceScore200Response)> data, response status code and response headers
29
- def projects_quality_performance_score_with_http_info(project_id, projects_quality_performance_score_request, opts = {})
28
+ # @return [Array<(Response<(QualityPerformanceScoreList200Response)>, Integer, Hash)>] Response<(QualityPerformanceScoreList200Response)> data, response status code and response headers
29
+ def quality_performance_score_list_with_http_info(project_id, quality_performance_score_list_request, opts = {})
30
30
  if @api_client.config.debugging
31
- @api_client.config.logger.debug 'Calling API: QualityPerformanceScoreApi.projects_quality_performance_score ...'
31
+ @api_client.config.logger.debug 'Calling API: QualityPerformanceScoreApi.quality_performance_score_list ...'
32
32
  end
33
33
  # verify the required parameter 'project_id' is set
34
34
  if @api_client.config.client_side_validation && project_id.nil?
35
- fail ArgumentError, "Missing the required parameter 'project_id' when calling QualityPerformanceScoreApi.projects_quality_performance_score"
35
+ fail ArgumentError, "Missing the required parameter 'project_id' when calling QualityPerformanceScoreApi.quality_performance_score_list"
36
36
  end
37
- # verify the required parameter 'projects_quality_performance_score_request' is set
38
- if @api_client.config.client_side_validation && projects_quality_performance_score_request.nil?
39
- fail ArgumentError, "Missing the required parameter 'projects_quality_performance_score_request' when calling QualityPerformanceScoreApi.projects_quality_performance_score"
37
+ # verify the required parameter 'quality_performance_score_list_request' is set
38
+ if @api_client.config.client_side_validation && quality_performance_score_list_request.nil?
39
+ fail ArgumentError, "Missing the required parameter 'quality_performance_score_list_request' when calling QualityPerformanceScoreApi.quality_performance_score_list"
40
40
  end
41
41
  # resource path
42
42
  local_var_path = '/projects/{project_id}/quality_performance_score'.sub('{' + 'project_id' + '}', CGI.escape(project_id.to_s))
@@ -56,10 +56,10 @@ module Phrase
56
56
  form_params = opts[:form_params] || {}
57
57
 
58
58
  # http body (model)
59
- post_body = opts[:body] || @api_client.object_to_http_body(projects_quality_performance_score_request)
59
+ post_body = opts[:body] || @api_client.object_to_http_body(quality_performance_score_list_request)
60
60
 
61
61
  # return_type
62
- return_type = opts[:return_type] || 'ProjectsQualityPerformanceScore200Response'
62
+ return_type = opts[:return_type] || 'QualityPerformanceScoreList200Response'
63
63
 
64
64
  # auth_names
65
65
  auth_names = opts[:auth_names] || ['Basic', 'Token']
@@ -75,7 +75,7 @@ module Phrase
75
75
 
76
76
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
77
77
  if @api_client.config.debugging
78
- @api_client.config.logger.debug "API called: QualityPerformanceScoreApi#projects_quality_performance_score\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
78
+ @api_client.config.logger.debug "API called: QualityPerformanceScoreApi#quality_performance_score_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
79
  end
80
80
  response = ::Phrase::Response.new(data, headers)
81
81
  return response, status_code, headers
@@ -0,0 +1,160 @@
1
+ require 'cgi'
2
+
3
+ module Phrase
4
+ class RepoSyncEventsApi
5
+ attr_accessor :api_client
6
+
7
+ def initialize(api_client = ApiClient.default)
8
+ @api_client = api_client
9
+ end
10
+ # Repository Syncs History
11
+ # Get the history of a single Repo Sync. The history includes all imports and exports performed by the Repo Sync.
12
+ # @param account_id [String] Account ID
13
+ # @param id [String] ID
14
+ # @param [Hash] opts the optional parameters
15
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
16
+ # @return [Array<RepoSyncEvent>]
17
+ def repo_sync_event_list(account_id, id, opts = {})
18
+ data, _status_code, _headers = repo_sync_event_list_with_http_info(account_id, id, opts)
19
+ data
20
+ end
21
+
22
+ # Repository Syncs History
23
+ # Get the history of a single Repo Sync. The history includes all imports and exports performed by the Repo Sync.
24
+ # @param account_id [String] Account ID
25
+ # @param id [String] ID
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
28
+ # @return [Array<(Response<(Array<RepoSyncEvent>)>, Integer, Hash)>] Response<(Array<RepoSyncEvent>)> data, response status code and response headers
29
+ def repo_sync_event_list_with_http_info(account_id, id, opts = {})
30
+ if @api_client.config.debugging
31
+ @api_client.config.logger.debug 'Calling API: RepoSyncEventsApi.repo_sync_event_list ...'
32
+ end
33
+ # verify the required parameter 'account_id' is set
34
+ if @api_client.config.client_side_validation && account_id.nil?
35
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling RepoSyncEventsApi.repo_sync_event_list"
36
+ end
37
+ # verify the required parameter 'id' is set
38
+ if @api_client.config.client_side_validation && id.nil?
39
+ fail ArgumentError, "Missing the required parameter 'id' when calling RepoSyncEventsApi.repo_sync_event_list"
40
+ end
41
+ # resource path
42
+ local_var_path = '/accounts/{account_id}/repo_syncs/{id}/events'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
+ header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
52
+
53
+ # form parameters
54
+ form_params = opts[:form_params] || {}
55
+
56
+ # http body (model)
57
+ post_body = opts[:body]
58
+
59
+ # return_type
60
+ return_type = opts[:return_type] || 'Array<RepoSyncEvent>'
61
+
62
+ # auth_names
63
+ auth_names = opts[:auth_names] || ['Basic', 'Token']
64
+
65
+ new_options = opts.merge(
66
+ :header_params => header_params,
67
+ :query_params => query_params,
68
+ :form_params => form_params,
69
+ :body => post_body,
70
+ :auth_names => auth_names,
71
+ :return_type => return_type
72
+ )
73
+
74
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
75
+ if @api_client.config.debugging
76
+ @api_client.config.logger.debug "API called: RepoSyncEventsApi#repo_sync_event_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
77
+ end
78
+ response = ::Phrase::Response.new(data, headers)
79
+ return response, status_code, headers
80
+ end
81
+
82
+ # Get a single Repo Sync Event
83
+ # Shows a single Repo Sync event.
84
+ # @param account_id [String] Account ID
85
+ # @param repo_sync_id [String] Repo Sync ID
86
+ # @param id [String] ID
87
+ # @param [Hash] opts the optional parameters
88
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
89
+ # @return [RepoSyncEvent]
90
+ def repo_sync_event_show(account_id, repo_sync_id, id, opts = {})
91
+ data, _status_code, _headers = repo_sync_event_show_with_http_info(account_id, repo_sync_id, id, opts)
92
+ data
93
+ end
94
+
95
+ # Get a single Repo Sync Event
96
+ # Shows a single Repo Sync event.
97
+ # @param account_id [String] Account ID
98
+ # @param repo_sync_id [String] Repo Sync ID
99
+ # @param id [String] ID
100
+ # @param [Hash] opts the optional parameters
101
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
102
+ # @return [Array<(Response<(RepoSyncEvent)>, Integer, Hash)>] Response<(RepoSyncEvent)> data, response status code and response headers
103
+ def repo_sync_event_show_with_http_info(account_id, repo_sync_id, id, opts = {})
104
+ if @api_client.config.debugging
105
+ @api_client.config.logger.debug 'Calling API: RepoSyncEventsApi.repo_sync_event_show ...'
106
+ end
107
+ # verify the required parameter 'account_id' is set
108
+ if @api_client.config.client_side_validation && account_id.nil?
109
+ fail ArgumentError, "Missing the required parameter 'account_id' when calling RepoSyncEventsApi.repo_sync_event_show"
110
+ end
111
+ # verify the required parameter 'repo_sync_id' is set
112
+ if @api_client.config.client_side_validation && repo_sync_id.nil?
113
+ fail ArgumentError, "Missing the required parameter 'repo_sync_id' when calling RepoSyncEventsApi.repo_sync_event_show"
114
+ end
115
+ # verify the required parameter 'id' is set
116
+ if @api_client.config.client_side_validation && id.nil?
117
+ fail ArgumentError, "Missing the required parameter 'id' when calling RepoSyncEventsApi.repo_sync_event_show"
118
+ end
119
+ # resource path
120
+ local_var_path = '/accounts/{account_id}/repo_syncs/{repo_sync_id}/events/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'repo_sync_id' + '}', CGI.escape(repo_sync_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
121
+
122
+ # query parameters
123
+ query_params = opts[:query_params] || {}
124
+
125
+ # header parameters
126
+ header_params = opts[:header_params] || {}
127
+ # HTTP header 'Accept' (if needed)
128
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
129
+ header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
130
+
131
+ # form parameters
132
+ form_params = opts[:form_params] || {}
133
+
134
+ # http body (model)
135
+ post_body = opts[:body]
136
+
137
+ # return_type
138
+ return_type = opts[:return_type] || 'RepoSyncEvent'
139
+
140
+ # auth_names
141
+ auth_names = opts[:auth_names] || ['Basic', 'Token']
142
+
143
+ new_options = opts.merge(
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names,
149
+ :return_type => return_type
150
+ )
151
+
152
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug "API called: RepoSyncEventsApi#repo_sync_event_show\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
+ end
156
+ response = ::Phrase::Response.new(data, headers)
157
+ return response, status_code, headers
158
+ end
159
+ end
160
+ end