phrase 3.7.1 → 4.4.0

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 (124) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +63 -0
  3. data/README.md +13 -37
  4. data/docs/AccountDetails.md +3 -1
  5. data/docs/JobDetails.md +2 -0
  6. data/docs/JobKeysDeleteParameters.md +19 -0
  7. data/docs/JobsApi.md +16 -14
  8. data/docs/KeyCreateParameters.md +1 -1
  9. data/docs/KeyUpdateParameters.md +1 -1
  10. data/docs/KeysApi.md +4 -4
  11. data/docs/KeysExcludeParameters.md +1 -1
  12. data/docs/KeysIncludeParameters.md +1 -1
  13. data/docs/KeysSearchParameters.md +1 -1
  14. data/docs/KeysTagParameters.md +1 -1
  15. data/docs/KeysUntagParameters.md +1 -1
  16. data/docs/LocalesApi.md +3 -1
  17. data/docs/ProjectCreateParameters.md +1 -1
  18. data/docs/ProjectUpdateParameters.md +4 -2
  19. data/docs/QualityPerformanceScoreApi.md +8 -8
  20. data/docs/QualityPerformanceScoreList200Response.md +21 -0
  21. data/docs/QualityPerformanceScoreList200ResponseAnyOf.md +19 -0
  22. data/docs/QualityPerformanceScoreList200ResponseAnyOfData.md +17 -0
  23. data/docs/{ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md → QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md} +2 -2
  24. data/docs/{ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md → QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md} +2 -2
  25. data/docs/{ProjectsQualityPerformanceScoreRequest.md → QualityPerformanceScoreListRequest.md} +2 -2
  26. data/docs/RepoSyncEvent.md +3 -3
  27. data/docs/RepoSyncEventsApi.md +138 -0
  28. data/docs/RepoSyncsApi.md +2 -132
  29. data/docs/ScreenshotUpdateParameters.md +1 -1
  30. data/docs/Upload.md +3 -1
  31. data/lib/phrase/api/jobs_api.rb +24 -16
  32. data/lib/phrase/api/keys_api.rb +4 -4
  33. data/lib/phrase/api/locales_api.rb +3 -0
  34. data/lib/phrase/api/quality_performance_score_api.rb +15 -15
  35. data/lib/phrase/api/repo_sync_events_api.rb +160 -0
  36. data/lib/phrase/api/repo_syncs_api.rb +4 -154
  37. data/lib/phrase/models/account_details.rb +15 -4
  38. data/lib/phrase/models/job_details.rb +10 -1
  39. data/lib/phrase/models/job_keys_delete_parameters.rb +214 -0
  40. data/lib/phrase/models/keys_exclude_parameters.rb +1 -1
  41. data/lib/phrase/models/keys_include_parameters.rb +1 -1
  42. data/lib/phrase/models/keys_search_parameters.rb +1 -1
  43. data/lib/phrase/models/keys_tag_parameters.rb +1 -1
  44. data/lib/phrase/models/keys_untag_parameters.rb +1 -1
  45. data/lib/phrase/models/project_update_parameters.rb +48 -4
  46. data/lib/phrase/models/{projects_quality_performance_score200_response.rb → quality_performance_score_list200_response.rb} +6 -6
  47. data/lib/phrase/models/{projects_quality_performance_score200_response_any_of.rb → quality_performance_score_list200_response_any_of.rb} +5 -5
  48. data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_data.rb → quality_performance_score_list200_response_any_of_data.rb} +4 -4
  49. 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
  50. 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
  51. data/lib/phrase/models/{projects_quality_performance_score_request.rb → quality_performance_score_list_request.rb} +3 -3
  52. data/lib/phrase/models/repo_sync_event.rb +15 -15
  53. data/lib/phrase/models/upload.rb +14 -1
  54. data/lib/phrase/version.rb +1 -1
  55. data/lib/phrase.rb +8 -22
  56. data/spec/api/jobs_api_spec.rb +6 -5
  57. data/spec/api/keys_api_spec.rb +2 -2
  58. data/spec/api/quality_performance_score_api_spec.rb +4 -4
  59. data/spec/api/repo_sync_events_api_spec.rb +52 -0
  60. data/spec/api/repo_syncs_api_spec.rb +2 -31
  61. data/spec/models/account_details_spec.rb +6 -0
  62. data/spec/models/job_details_spec.rb +6 -0
  63. data/spec/models/{gitlab_sync_export_spec.rb → job_keys_delete_parameters_spec.rb} +8 -8
  64. data/spec/models/project_update_parameters_spec.rb +10 -0
  65. data/spec/models/quality_performance_score_list200_response_any_of_data_spec.rb +29 -0
  66. 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
  67. 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
  68. data/spec/models/{projects_quality_performance_score200_response_any_of_spec.rb → quality_performance_score_list200_response_any_of_spec.rb} +6 -6
  69. data/spec/models/{projects_quality_performance_score200_response_spec.rb → quality_performance_score_list200_response_spec.rb} +6 -6
  70. data/spec/models/{projects_quality_performance_score_request_spec.rb → quality_performance_score_list_request_spec.rb} +6 -6
  71. data/spec/models/repo_sync_event_spec.rb +2 -2
  72. data/spec/models/upload_spec.rb +6 -0
  73. metadata +259 -315
  74. data/docs/BitbucketSync.md +0 -27
  75. data/docs/BitbucketSyncApi.md +0 -197
  76. data/docs/BitbucketSyncExportParameters.md +0 -17
  77. data/docs/BitbucketSyncExportResponse.md +0 -17
  78. data/docs/BitbucketSyncImportParameters.md +0 -17
  79. data/docs/GitHubSyncApi.md +0 -130
  80. data/docs/GitLabSyncApi.md +0 -463
  81. data/docs/GithubSyncExportParameters.md +0 -17
  82. data/docs/GithubSyncImportParameters.md +0 -17
  83. data/docs/GitlabSync.md +0 -37
  84. data/docs/GitlabSyncExport.md +0 -19
  85. data/docs/GitlabSyncExportParameters.md +0 -17
  86. data/docs/GitlabSyncHistory.md +0 -25
  87. data/docs/GitlabSyncHistoryErrorsInner.md +0 -19
  88. data/docs/GitlabSyncImportParameters.md +0 -17
  89. data/docs/ProjectsQualityPerformanceScore200Response.md +0 -21
  90. data/docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md +0 -19
  91. data/docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md +0 -17
  92. data/docs/RepoSyncEventErrorsInner.md +0 -16
  93. data/lib/phrase/api/bitbucket_sync_api.rb +0 -219
  94. data/lib/phrase/api/git_hub_sync_api.rb +0 -146
  95. data/lib/phrase/api/git_lab_sync_api.rb +0 -510
  96. data/lib/phrase/models/bitbucket_sync.rb +0 -243
  97. data/lib/phrase/models/bitbucket_sync_export_parameters.rb +0 -197
  98. data/lib/phrase/models/bitbucket_sync_export_response.rb +0 -196
  99. data/lib/phrase/models/bitbucket_sync_import_parameters.rb +0 -197
  100. data/lib/phrase/models/github_sync_export_parameters.rb +0 -197
  101. data/lib/phrase/models/github_sync_import_parameters.rb +0 -197
  102. data/lib/phrase/models/gitlab_sync.rb +0 -286
  103. data/lib/phrase/models/gitlab_sync_export.rb +0 -205
  104. data/lib/phrase/models/gitlab_sync_export_parameters.rb +0 -197
  105. data/lib/phrase/models/gitlab_sync_history.rb +0 -234
  106. data/lib/phrase/models/gitlab_sync_history_errors_inner.rb +0 -205
  107. data/lib/phrase/models/gitlab_sync_import_parameters.rb +0 -197
  108. data/lib/phrase/models/repo_sync_event_errors_inner.rb +0 -207
  109. data/spec/api/bitbucket_sync_api_spec.rb +0 -64
  110. data/spec/api/git_hub_sync_api_spec.rb +0 -49
  111. data/spec/api/git_lab_sync_api_spec.rb +0 -125
  112. data/spec/models/bitbucket_sync_export_parameters_spec.rb +0 -29
  113. data/spec/models/bitbucket_sync_export_response_spec.rb +0 -29
  114. data/spec/models/bitbucket_sync_import_parameters_spec.rb +0 -29
  115. data/spec/models/bitbucket_sync_spec.rb +0 -59
  116. data/spec/models/github_sync_export_parameters_spec.rb +0 -29
  117. data/spec/models/github_sync_import_parameters_spec.rb +0 -29
  118. data/spec/models/gitlab_sync_export_parameters_spec.rb +0 -29
  119. data/spec/models/gitlab_sync_history_errors_inner_spec.rb +0 -35
  120. data/spec/models/gitlab_sync_history_spec.rb +0 -53
  121. data/spec/models/gitlab_sync_import_parameters_spec.rb +0 -29
  122. data/spec/models/gitlab_sync_spec.rb +0 -89
  123. data/spec/models/projects_quality_performance_score200_response_any_of_data_spec.rb +0 -29
  124. data/spec/models/repo_sync_event_errors_inner_spec.rb +0 -23
@@ -4,7 +4,7 @@ module Phrase
4
4
  class RepoSyncEvent
5
5
  attr_accessor :id
6
6
 
7
- attr_accessor :event_type
7
+ attr_accessor :type
8
8
 
9
9
  attr_accessor :created_at
10
10
 
@@ -45,7 +45,7 @@ module Phrase
45
45
  def self.attribute_map
46
46
  {
47
47
  :'id' => :'id',
48
- :'event_type' => :'event_type',
48
+ :'type' => :'type',
49
49
  :'created_at' => :'created_at',
50
50
  :'status' => :'status',
51
51
  :'pull_request_url' => :'pull_request_url',
@@ -58,12 +58,12 @@ module Phrase
58
58
  def self.openapi_types
59
59
  {
60
60
  :'id' => :'String',
61
- :'event_type' => :'String',
61
+ :'type' => :'String',
62
62
  :'created_at' => :'DateTime',
63
63
  :'status' => :'String',
64
64
  :'pull_request_url' => :'String',
65
65
  :'auto_import' => :'Boolean',
66
- :'errors' => :'Array<RepoSyncEventErrorsInner>'
66
+ :'errors' => :'Array<String>'
67
67
  }
68
68
  end
69
69
 
@@ -92,8 +92,8 @@ module Phrase
92
92
  self.id = attributes[:'id']
93
93
  end
94
94
 
95
- if attributes.key?(:'event_type')
96
- self.event_type = attributes[:'event_type']
95
+ if attributes.key?(:'type')
96
+ self.type = attributes[:'type']
97
97
  end
98
98
 
99
99
  if attributes.key?(:'created_at')
@@ -129,21 +129,21 @@ module Phrase
129
129
  # Check to see if the all the properties in the model are valid
130
130
  # @return true if the model is valid
131
131
  def valid?
132
- event_type_validator = EnumAttributeValidator.new('String', ["import", "export"])
133
- return false unless event_type_validator.valid?(@event_type)
132
+ type_validator = EnumAttributeValidator.new('String', ["import", "export"])
133
+ return false unless type_validator.valid?(@type)
134
134
  status_validator = EnumAttributeValidator.new('String', ["running", "success", "failure"])
135
135
  return false unless status_validator.valid?(@status)
136
136
  true
137
137
  end
138
138
 
139
139
  # Custom attribute writer method checking allowed values (enum).
140
- # @param [Object] event_type Object to be assigned
141
- def event_type=(event_type)
140
+ # @param [Object] type Object to be assigned
141
+ def type=(type)
142
142
  validator = EnumAttributeValidator.new('String', ["import", "export"])
143
- unless validator.valid?(event_type)
144
- fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
143
+ unless validator.valid?(type)
144
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
145
145
  end
146
- @event_type = event_type
146
+ @type = type
147
147
  end
148
148
 
149
149
  # Custom attribute writer method checking allowed values (enum).
@@ -162,7 +162,7 @@ module Phrase
162
162
  return true if self.equal?(o)
163
163
  self.class == o.class &&
164
164
  id == o.id &&
165
- event_type == o.event_type &&
165
+ type == o.type &&
166
166
  created_at == o.created_at &&
167
167
  status == o.status &&
168
168
  pull_request_url == o.pull_request_url &&
@@ -179,7 +179,7 @@ module Phrase
179
179
  # Calculates hash code according to all attributes.
180
180
  # @return [Integer] Hash code
181
181
  def hash
182
- [id, event_type, created_at, status, pull_request_url, auto_import, errors].hash
182
+ [id, type, created_at, status, pull_request_url, auto_import, errors].hash
183
183
  end
184
184
 
185
185
  # Builds the object from hash
@@ -10,8 +10,12 @@ module Phrase
10
10
 
11
11
  attr_accessor :state
12
12
 
13
+ # Unique tag of the upload
13
14
  attr_accessor :tag
14
15
 
16
+ # List of tags that were assigned to the uploaded keys
17
+ attr_accessor :tags
18
+
15
19
  # The URL to the upload in Phrase Strings app.
16
20
  attr_accessor :url
17
21
 
@@ -29,6 +33,7 @@ module Phrase
29
33
  :'format' => :'format',
30
34
  :'state' => :'state',
31
35
  :'tag' => :'tag',
36
+ :'tags' => :'tags',
32
37
  :'url' => :'url',
33
38
  :'summary' => :'summary',
34
39
  :'created_at' => :'created_at',
@@ -44,6 +49,7 @@ module Phrase
44
49
  :'format' => :'String',
45
50
  :'state' => :'String',
46
51
  :'tag' => :'String',
52
+ :'tags' => :'Array<String>',
47
53
  :'url' => :'String',
48
54
  :'summary' => :'UploadSummary',
49
55
  :'created_at' => :'DateTime',
@@ -92,6 +98,12 @@ module Phrase
92
98
  self.tag = attributes[:'tag']
93
99
  end
94
100
 
101
+ if attributes.key?(:'tags')
102
+ if (value = attributes[:'tags']).is_a?(Array)
103
+ self.tags = value
104
+ end
105
+ end
106
+
95
107
  if attributes.key?(:'url')
96
108
  self.url = attributes[:'url']
97
109
  end
@@ -132,6 +144,7 @@ module Phrase
132
144
  format == o.format &&
133
145
  state == o.state &&
134
146
  tag == o.tag &&
147
+ tags == o.tags &&
135
148
  url == o.url &&
136
149
  summary == o.summary &&
137
150
  created_at == o.created_at &&
@@ -147,7 +160,7 @@ module Phrase
147
160
  # Calculates hash code according to all attributes.
148
161
  # @return [Integer] Hash code
149
162
  def hash
150
- [id, filename, format, state, tag, url, summary, created_at, updated_at].hash
163
+ [id, filename, format, state, tag, tags, url, summary, created_at, updated_at].hash
151
164
  end
152
165
 
153
166
  # Builds the object from hash
@@ -1,3 +1,3 @@
1
1
  module Phrase
2
- VERSION = '3.7.1'
2
+ VERSION = '4.4.0'
3
3
  end
data/lib/phrase.rb CHANGED
@@ -17,10 +17,6 @@ require 'phrase/models/authorization'
17
17
  require 'phrase/models/authorization_create_parameters'
18
18
  require 'phrase/models/authorization_update_parameters'
19
19
  require 'phrase/models/authorization_with_token'
20
- require 'phrase/models/bitbucket_sync'
21
- require 'phrase/models/bitbucket_sync_export_parameters'
22
- require 'phrase/models/bitbucket_sync_export_response'
23
- require 'phrase/models/bitbucket_sync_import_parameters'
24
20
  require 'phrase/models/blacklisted_key'
25
21
  require 'phrase/models/blacklisted_key_create_parameters'
26
22
  require 'phrase/models/blacklisted_key_update_parameters'
@@ -54,14 +50,6 @@ require 'phrase/models/figma_attachment'
54
50
  require 'phrase/models/figma_attachment_create_parameters'
55
51
  require 'phrase/models/figma_attachment_update_parameters'
56
52
  require 'phrase/models/format'
57
- require 'phrase/models/github_sync_export_parameters'
58
- require 'phrase/models/github_sync_import_parameters'
59
- require 'phrase/models/gitlab_sync'
60
- require 'phrase/models/gitlab_sync_export'
61
- require 'phrase/models/gitlab_sync_export_parameters'
62
- require 'phrase/models/gitlab_sync_history'
63
- require 'phrase/models/gitlab_sync_history_errors_inner'
64
- require 'phrase/models/gitlab_sync_import_parameters'
65
53
  require 'phrase/models/glossary'
66
54
  require 'phrase/models/glossary_create_parameters'
67
55
  require 'phrase/models/glossary_term'
@@ -85,6 +73,7 @@ require 'phrase/models/job_complete_parameters'
85
73
  require 'phrase/models/job_create_parameters'
86
74
  require 'phrase/models/job_details'
87
75
  require 'phrase/models/job_keys_create_parameters'
76
+ require 'phrase/models/job_keys_delete_parameters'
88
77
  require 'phrase/models/job_locale'
89
78
  require 'phrase/models/job_locale_complete_parameters'
90
79
  require 'phrase/models/job_locale_complete_review_parameters'
@@ -153,12 +142,12 @@ require 'phrase/models/project_locales'
153
142
  require 'phrase/models/project_report'
154
143
  require 'phrase/models/project_short'
155
144
  require 'phrase/models/project_update_parameters'
156
- require 'phrase/models/projects_quality_performance_score200_response'
157
- require 'phrase/models/projects_quality_performance_score200_response_any_of'
158
- require 'phrase/models/projects_quality_performance_score200_response_any_of_data'
159
- require 'phrase/models/projects_quality_performance_score200_response_any_of_data_translations_inner'
160
- require 'phrase/models/projects_quality_performance_score200_response_any_of_errors_inner'
161
- require 'phrase/models/projects_quality_performance_score_request'
145
+ require 'phrase/models/quality_performance_score_list200_response'
146
+ require 'phrase/models/quality_performance_score_list200_response_any_of'
147
+ require 'phrase/models/quality_performance_score_list200_response_any_of_data'
148
+ require 'phrase/models/quality_performance_score_list200_response_any_of_data_translations_inner'
149
+ require 'phrase/models/quality_performance_score_list200_response_any_of_errors_inner'
150
+ require 'phrase/models/quality_performance_score_list_request'
162
151
  require 'phrase/models/release'
163
152
  require 'phrase/models/release_create_parameters'
164
153
  require 'phrase/models/release_create_parameters1'
@@ -169,7 +158,6 @@ require 'phrase/models/release_update_parameters1'
169
158
  require 'phrase/models/replies_list_parameters'
170
159
  require 'phrase/models/repo_sync'
171
160
  require 'phrase/models/repo_sync_event'
172
- require 'phrase/models/repo_sync_event_errors_inner'
173
161
  require 'phrase/models/screenshot'
174
162
  require 'phrase/models/screenshot_marker'
175
163
  require 'phrase/models/screenshot_marker_create_parameters'
@@ -236,7 +224,6 @@ require 'phrase/models/webhook_update_parameters'
236
224
  # APIs
237
225
  require 'phrase/api/accounts_api'
238
226
  require 'phrase/api/authorizations_api'
239
- require 'phrase/api/bitbucket_sync_api'
240
227
  require 'phrase/api/blacklisted_keys_api'
241
228
  require 'phrase/api/branches_api'
242
229
  require 'phrase/api/comment_reactions_api'
@@ -247,8 +234,6 @@ require 'phrase/api/distributions_api'
247
234
  require 'phrase/api/documents_api'
248
235
  require 'phrase/api/figma_attachments_api'
249
236
  require 'phrase/api/formats_api'
250
- require 'phrase/api/git_hub_sync_api'
251
- require 'phrase/api/git_lab_sync_api'
252
237
  require 'phrase/api/glossaries_api'
253
238
  require 'phrase/api/glossary_term_translations_api'
254
239
  require 'phrase/api/glossary_terms_api'
@@ -274,6 +259,7 @@ require 'phrase/api/projects_api'
274
259
  require 'phrase/api/quality_performance_score_api'
275
260
  require 'phrase/api/release_triggers_api'
276
261
  require 'phrase/api/releases_api'
262
+ require 'phrase/api/repo_sync_events_api'
277
263
  require 'phrase/api/repo_syncs_api'
278
264
  require 'phrase/api/reports_api'
279
265
  require 'phrase/api/screenshot_markers_api'
@@ -84,10 +84,9 @@ describe 'JobsApi' do
84
84
  # Remove multiple keys from existing job.
85
85
  # @param project_id Project ID
86
86
  # @param id ID
87
+ # @param job_keys_delete_parameters
87
88
  # @param [Hash] opts the optional parameters
88
89
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
89
- # @option opts [String] :branch specify the branch to use
90
- # @option opts [Array<String>] :translation_key_ids ids of keys that should be removed from the job
91
90
  # @return [nil]
92
91
  describe 'job_keys_delete test' do
93
92
  it 'should work' do
@@ -195,7 +194,8 @@ describe 'JobsApi' do
195
194
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
196
195
  # @option opts [String] :owned_by filter by user owning job
197
196
  # @option opts [String] :assigned_to filter by user assigned to job
198
- # @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;
197
+ # @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;
198
+ # @option opts [String] :updated_since filter by jobs updated since given date
199
199
  # @return [Array<Job>]
200
200
  describe 'jobs_by_account test' do
201
201
  it 'should work' do
@@ -211,10 +211,11 @@ describe 'JobsApi' do
211
211
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
212
212
  # @option opts [Integer] :page Page number
213
213
  # @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
214
- # @option opts [String] :branch specify the branch to use
214
+ # @option opts [String] :branch Branch to use
215
215
  # @option opts [String] :owned_by filter by user owning job
216
216
  # @option opts [String] :assigned_to filter by user assigned to job
217
- # @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;
217
+ # @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;
218
+ # @option opts [String] :updated_since filter by jobs updated since given date
218
219
  # @return [Array<Job>]
219
220
  describe 'jobs_list test' do
220
221
  it 'should work' do
@@ -86,7 +86,7 @@ describe 'KeysApi' do
86
86
  # @param [Hash] opts the optional parameters
87
87
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
88
88
  # @option opts [String] :branch specify the branch to use
89
- # @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;.
89
+ # @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;.
90
90
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
91
91
  # @return [AffectedResources]
92
92
  describe 'keys_delete_collection test' do
@@ -134,7 +134,7 @@ describe 'KeysApi' do
134
134
  # @option opts [String] :branch specify the branch to use
135
135
  # @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
136
136
  # @option opts [String] :order Order direction. Can be one of: asc, desc.
137
- # @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;.
137
+ # @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;.
138
138
  # @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
139
139
  # @return [Array<TranslationKey>]
140
140
  describe 'keys_list test' do
@@ -20,15 +20,15 @@ describe 'QualityPerformanceScoreApi' do
20
20
  end
21
21
  end
22
22
 
23
- # unit tests for projects_quality_performance_score
23
+ # unit tests for quality_performance_score_list
24
24
  # Get Translation Quality
25
25
  # Retrieves the quality scores for your Strings translations. Returns a score, measured by Phrase QPS
26
26
  # @param project_id Project ID
27
- # @param projects_quality_performance_score_request
27
+ # @param quality_performance_score_list_request
28
28
  # @param [Hash] opts the optional parameters
29
29
  # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
- # @return [ProjectsQualityPerformanceScore200Response]
31
- describe 'projects_quality_performance_score test' do
30
+ # @return [QualityPerformanceScoreList200Response]
31
+ describe 'quality_performance_score_list test' do
32
32
  it 'should work' do
33
33
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
34
34
  end
@@ -0,0 +1,52 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+
4
+ # Unit tests for Phrase::RepoSyncEventsApi
5
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
6
+ # Please update as you see appropriate
7
+ describe 'RepoSyncEventsApi' do
8
+ before do
9
+ # run before each test
10
+ @api_instance = Phrase::RepoSyncEventsApi.new
11
+ end
12
+
13
+ after do
14
+ # run after each test
15
+ end
16
+
17
+ describe 'test an instance of RepoSyncEventsApi' do
18
+ it 'should create an instance of RepoSyncEventsApi' do
19
+ expect(@api_instance).to be_instance_of(Phrase::RepoSyncEventsApi)
20
+ end
21
+ end
22
+
23
+ # unit tests for repo_sync_event_list
24
+ # Repository Syncs History
25
+ # Get the history of a single Repo Sync. The history includes all imports and exports performed by the Repo Sync.
26
+ # @param account_id Account ID
27
+ # @param id ID
28
+ # @param [Hash] opts the optional parameters
29
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
30
+ # @return [Array<RepoSyncEvent>]
31
+ describe 'repo_sync_event_list test' do
32
+ it 'should work' do
33
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
34
+ end
35
+ end
36
+
37
+ # unit tests for repo_sync_event_show
38
+ # Get a single Repo Sync Event
39
+ # Shows a single Repo Sync event.
40
+ # @param account_id Account ID
41
+ # @param repo_sync_id Repo Sync ID
42
+ # @param id ID
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
45
+ # @return [RepoSyncEvent]
46
+ describe 'repo_sync_event_show test' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ end
@@ -48,38 +48,9 @@ describe 'RepoSyncsApi' do
48
48
  end
49
49
  end
50
50
 
51
- # unit tests for repo_sync_event_show
52
- # Get a single Repo Sync Event
53
- # Shows a single Repo Sync event.
54
- # @param account_id Account ID
55
- # @param repo_sync_id Repo Sync ID
56
- # @param id ID
57
- # @param [Hash] opts the optional parameters
58
- # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
59
- # @return [RepoSyncEvent]
60
- describe 'repo_sync_event_show test' do
61
- it 'should work' do
62
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
63
- end
64
- end
65
-
66
- # unit tests for repo_sync_events
67
- # Repository Syncs History
68
- # Get the history of a single Repo Sync. The history includes all imports and exports performed by the Repo Sync.
69
- # @param account_id Account ID
70
- # @param id ID
71
- # @param [Hash] opts the optional parameters
72
- # @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
73
- # @return [Array<RepoSyncEvent>]
74
- describe 'repo_sync_events test' do
75
- it 'should work' do
76
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
- end
78
- end
79
-
80
51
  # unit tests for repo_sync_export
81
52
  # Export to code repository
82
- # &gt; Beta: this feature will change in the future. Export translations from Phrase Strings to repository provider according to the .phrase.yml file within the code repository. *Export is done asynchronously and may take several seconds depending on the project size.*
53
+ # Export translations from Phrase Strings to repository provider according to the .phrase.yml file within the code repository. *Export is done asynchronously and may take several seconds depending on the project size.*
83
54
  # @param account_id Account ID
84
55
  # @param id ID
85
56
  # @param [Hash] opts the optional parameters
@@ -93,7 +64,7 @@ describe 'RepoSyncsApi' do
93
64
 
94
65
  # unit tests for repo_sync_import
95
66
  # Import from code repository
96
- # &gt; Beta: this feature will change in the future. Import translations from repository provider to Phrase Strings according to the .phrase.yml file within the code repository. _Import is done asynchronously and may take several seconds depending on the project size._
67
+ # Import translations from repository provider to Phrase Strings according to the .phrase.yml file within the code repository. _Import is done asynchronously and may take several seconds depending on the project size._
97
68
  # @param account_id Account ID
98
69
  # @param id ID
99
70
  # @param [Hash] opts the optional parameters
@@ -68,4 +68,10 @@ describe 'AccountDetails' do
68
68
  end
69
69
  end
70
70
 
71
+ describe 'test attribute "roles"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
71
77
  end
@@ -92,6 +92,12 @@ describe 'JobDetails' do
92
92
  end
93
93
  end
94
94
 
95
+ describe 'test attribute "source_translations_updated_at"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
95
101
  describe 'test attribute "source_locale"' do
96
102
  it 'should work' do
97
103
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -2,31 +2,31 @@ require 'spec_helper'
2
2
  require 'json'
3
3
  require 'date'
4
4
 
5
- # Unit tests for Phrase::GitlabSyncExport
5
+ # Unit tests for Phrase::JobKeysDeleteParameters
6
6
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
7
  # Please update as you see appropriate
8
- describe 'GitlabSyncExport' do
8
+ describe 'JobKeysDeleteParameters' do
9
9
  before do
10
10
  # run before each test
11
- @instance = Phrase::GitlabSyncExport.new
11
+ @instance = Phrase::JobKeysDeleteParameters.new
12
12
  end
13
13
 
14
14
  after do
15
15
  # run after each test
16
16
  end
17
17
 
18
- describe 'test an instance of GitlabSyncExport' do
19
- it 'should create an instance of GitlabSyncExport' do
20
- expect(@instance).to be_instance_of(Phrase::GitlabSyncExport)
18
+ describe 'test an instance of JobKeysDeleteParameters' do
19
+ it 'should create an instance of JobKeysDeleteParameters' do
20
+ expect(@instance).to be_instance_of(Phrase::JobKeysDeleteParameters)
21
21
  end
22
22
  end
23
- describe 'test attribute "merge_request_id"' do
23
+ describe 'test attribute "branch"' do
24
24
  it 'should work' do
25
25
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
26
  end
27
27
  end
28
28
 
29
- describe 'test attribute "merge_request_web_url"' do
29
+ describe 'test attribute "translation_key_ids"' do
30
30
  it 'should work' do
31
31
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
32
32
  end
@@ -152,4 +152,14 @@ describe 'ProjectUpdateParameters' do
152
152
  end
153
153
  end
154
154
 
155
+ describe 'test attribute "default_encoding"' do
156
+ it 'should work' do
157
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
158
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["UTF-8", "UTF-16", "UTF-16BE", "UTF-16LE", "ISO-8859-1"])
159
+ # validator.allowable_values.each do |value|
160
+ # expect { @instance.default_encoding = value }.not_to raise_error
161
+ # end
162
+ end
163
+ end
164
+
155
165
  end
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+ require 'json'
3
+ require 'date'
4
+
5
+ # Unit tests for Phrase::QualityPerformanceScoreList200ResponseAnyOfData
6
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
+ # Please update as you see appropriate
8
+ describe 'QualityPerformanceScoreList200ResponseAnyOfData' do
9
+ before do
10
+ # run before each test
11
+ @instance = Phrase::QualityPerformanceScoreList200ResponseAnyOfData.new
12
+ end
13
+
14
+ after do
15
+ # run after each test
16
+ end
17
+
18
+ describe 'test an instance of QualityPerformanceScoreList200ResponseAnyOfData' do
19
+ it 'should create an instance of QualityPerformanceScoreList200ResponseAnyOfData' do
20
+ expect(@instance).to be_instance_of(Phrase::QualityPerformanceScoreList200ResponseAnyOfData)
21
+ end
22
+ end
23
+ describe 'test attribute "translations"' do
24
+ it 'should work' do
25
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
26
+ end
27
+ end
28
+
29
+ end
@@ -2,22 +2,22 @@ require 'spec_helper'
2
2
  require 'json'
3
3
  require 'date'
4
4
 
5
- # Unit tests for Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner
5
+ # Unit tests for Phrase::QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner
6
6
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
7
  # Please update as you see appropriate
8
- describe 'ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner' do
8
+ describe 'QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner' do
9
9
  before do
10
10
  # run before each test
11
- @instance = Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.new
11
+ @instance = Phrase::QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.new
12
12
  end
13
13
 
14
14
  after do
15
15
  # run after each test
16
16
  end
17
17
 
18
- describe 'test an instance of ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner' do
19
- it 'should create an instance of ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner' do
20
- expect(@instance).to be_instance_of(Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner)
18
+ describe 'test an instance of QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner' do
19
+ it 'should create an instance of QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner' do
20
+ expect(@instance).to be_instance_of(Phrase::QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner)
21
21
  end
22
22
  end
23
23
  describe 'test attribute "engine"' do
@@ -2,22 +2,22 @@ require 'spec_helper'
2
2
  require 'json'
3
3
  require 'date'
4
4
 
5
- # Unit tests for Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner
5
+ # Unit tests for Phrase::QualityPerformanceScoreList200ResponseAnyOfErrorsInner
6
6
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
7
  # Please update as you see appropriate
8
- describe 'ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner' do
8
+ describe 'QualityPerformanceScoreList200ResponseAnyOfErrorsInner' do
9
9
  before do
10
10
  # run before each test
11
- @instance = Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.new
11
+ @instance = Phrase::QualityPerformanceScoreList200ResponseAnyOfErrorsInner.new
12
12
  end
13
13
 
14
14
  after do
15
15
  # run after each test
16
16
  end
17
17
 
18
- describe 'test an instance of ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner' do
19
- it 'should create an instance of ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner' do
20
- expect(@instance).to be_instance_of(Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner)
18
+ describe 'test an instance of QualityPerformanceScoreList200ResponseAnyOfErrorsInner' do
19
+ it 'should create an instance of QualityPerformanceScoreList200ResponseAnyOfErrorsInner' do
20
+ expect(@instance).to be_instance_of(Phrase::QualityPerformanceScoreList200ResponseAnyOfErrorsInner)
21
21
  end
22
22
  end
23
23
  describe 'test attribute "message"' do
@@ -2,22 +2,22 @@ require 'spec_helper'
2
2
  require 'json'
3
3
  require 'date'
4
4
 
5
- # Unit tests for Phrase::ProjectsQualityPerformanceScore200ResponseAnyOf
5
+ # Unit tests for Phrase::QualityPerformanceScoreList200ResponseAnyOf
6
6
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
7
7
  # Please update as you see appropriate
8
- describe 'ProjectsQualityPerformanceScore200ResponseAnyOf' do
8
+ describe 'QualityPerformanceScoreList200ResponseAnyOf' do
9
9
  before do
10
10
  # run before each test
11
- @instance = Phrase::ProjectsQualityPerformanceScore200ResponseAnyOf.new
11
+ @instance = Phrase::QualityPerformanceScoreList200ResponseAnyOf.new
12
12
  end
13
13
 
14
14
  after do
15
15
  # run after each test
16
16
  end
17
17
 
18
- describe 'test an instance of ProjectsQualityPerformanceScore200ResponseAnyOf' do
19
- it 'should create an instance of ProjectsQualityPerformanceScore200ResponseAnyOf' do
20
- expect(@instance).to be_instance_of(Phrase::ProjectsQualityPerformanceScore200ResponseAnyOf)
18
+ describe 'test an instance of QualityPerformanceScoreList200ResponseAnyOf' do
19
+ it 'should create an instance of QualityPerformanceScoreList200ResponseAnyOf' do
20
+ expect(@instance).to be_instance_of(Phrase::QualityPerformanceScoreList200ResponseAnyOf)
21
21
  end
22
22
  end
23
23
  describe 'test attribute "data"' do