phrase 3.7.1 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +56 -0
- data/README.md +13 -37
- data/docs/JobDetails.md +2 -0
- data/docs/JobKeysDeleteParameters.md +19 -0
- data/docs/JobsApi.md +16 -14
- data/docs/KeyCreateParameters.md +1 -1
- data/docs/KeyUpdateParameters.md +1 -1
- data/docs/KeysApi.md +4 -4
- data/docs/KeysExcludeParameters.md +1 -1
- data/docs/KeysIncludeParameters.md +1 -1
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/KeysTagParameters.md +1 -1
- data/docs/KeysUntagParameters.md +1 -1
- data/docs/LocalesApi.md +3 -1
- data/docs/ProjectCreateParameters.md +1 -1
- data/docs/ProjectUpdateParameters.md +4 -2
- data/docs/QualityPerformanceScoreApi.md +8 -8
- data/docs/QualityPerformanceScoreList200Response.md +21 -0
- data/docs/QualityPerformanceScoreList200ResponseAnyOf.md +19 -0
- data/docs/QualityPerformanceScoreList200ResponseAnyOfData.md +17 -0
- data/docs/{ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md → QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner.md} +2 -2
- data/docs/{ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md → QualityPerformanceScoreList200ResponseAnyOfErrorsInner.md} +2 -2
- data/docs/{ProjectsQualityPerformanceScoreRequest.md → QualityPerformanceScoreListRequest.md} +2 -2
- data/docs/RepoSyncEvent.md +3 -3
- data/docs/RepoSyncEventsApi.md +138 -0
- data/docs/RepoSyncsApi.md +2 -132
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/Upload.md +3 -1
- data/lib/phrase/api/jobs_api.rb +24 -16
- data/lib/phrase/api/keys_api.rb +4 -4
- data/lib/phrase/api/locales_api.rb +3 -0
- data/lib/phrase/api/quality_performance_score_api.rb +15 -15
- data/lib/phrase/api/repo_sync_events_api.rb +160 -0
- data/lib/phrase/api/repo_syncs_api.rb +4 -154
- data/lib/phrase/models/job_details.rb +10 -1
- data/lib/phrase/models/job_keys_delete_parameters.rb +214 -0
- data/lib/phrase/models/keys_exclude_parameters.rb +1 -1
- data/lib/phrase/models/keys_include_parameters.rb +1 -1
- data/lib/phrase/models/keys_search_parameters.rb +1 -1
- data/lib/phrase/models/keys_tag_parameters.rb +1 -1
- data/lib/phrase/models/keys_untag_parameters.rb +1 -1
- data/lib/phrase/models/project_update_parameters.rb +48 -4
- data/lib/phrase/models/{projects_quality_performance_score200_response.rb → quality_performance_score_list200_response.rb} +6 -6
- data/lib/phrase/models/{projects_quality_performance_score200_response_any_of.rb → quality_performance_score_list200_response_any_of.rb} +5 -5
- data/lib/phrase/models/{projects_quality_performance_score200_response_any_of_data.rb → quality_performance_score_list200_response_any_of_data.rb} +4 -4
- 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
- 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
- data/lib/phrase/models/{projects_quality_performance_score_request.rb → quality_performance_score_list_request.rb} +3 -3
- data/lib/phrase/models/repo_sync_event.rb +15 -15
- data/lib/phrase/models/upload.rb +14 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +8 -22
- data/spec/api/jobs_api_spec.rb +6 -5
- data/spec/api/keys_api_spec.rb +2 -2
- data/spec/api/quality_performance_score_api_spec.rb +4 -4
- data/spec/api/repo_sync_events_api_spec.rb +52 -0
- data/spec/api/repo_syncs_api_spec.rb +2 -31
- data/spec/models/job_details_spec.rb +6 -0
- data/spec/models/{gitlab_sync_export_spec.rb → job_keys_delete_parameters_spec.rb} +8 -8
- data/spec/models/project_update_parameters_spec.rb +10 -0
- data/spec/models/quality_performance_score_list200_response_any_of_data_spec.rb +29 -0
- 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
- 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
- data/spec/models/{projects_quality_performance_score200_response_any_of_spec.rb → quality_performance_score_list200_response_any_of_spec.rb} +6 -6
- data/spec/models/{projects_quality_performance_score200_response_spec.rb → quality_performance_score_list200_response_spec.rb} +6 -6
- data/spec/models/{projects_quality_performance_score_request_spec.rb → quality_performance_score_list_request_spec.rb} +6 -6
- data/spec/models/repo_sync_event_spec.rb +2 -2
- data/spec/models/upload_spec.rb +6 -0
- metadata +265 -321
- data/docs/BitbucketSync.md +0 -27
- data/docs/BitbucketSyncApi.md +0 -197
- data/docs/BitbucketSyncExportParameters.md +0 -17
- data/docs/BitbucketSyncExportResponse.md +0 -17
- data/docs/BitbucketSyncImportParameters.md +0 -17
- data/docs/GitHubSyncApi.md +0 -130
- data/docs/GitLabSyncApi.md +0 -463
- data/docs/GithubSyncExportParameters.md +0 -17
- data/docs/GithubSyncImportParameters.md +0 -17
- data/docs/GitlabSync.md +0 -37
- data/docs/GitlabSyncExport.md +0 -19
- data/docs/GitlabSyncExportParameters.md +0 -17
- data/docs/GitlabSyncHistory.md +0 -25
- data/docs/GitlabSyncHistoryErrorsInner.md +0 -19
- data/docs/GitlabSyncImportParameters.md +0 -17
- data/docs/ProjectsQualityPerformanceScore200Response.md +0 -21
- data/docs/ProjectsQualityPerformanceScore200ResponseAnyOf.md +0 -19
- data/docs/ProjectsQualityPerformanceScore200ResponseAnyOfData.md +0 -17
- data/docs/RepoSyncEventErrorsInner.md +0 -16
- data/lib/phrase/api/bitbucket_sync_api.rb +0 -219
- data/lib/phrase/api/git_hub_sync_api.rb +0 -146
- data/lib/phrase/api/git_lab_sync_api.rb +0 -510
- data/lib/phrase/models/bitbucket_sync.rb +0 -243
- data/lib/phrase/models/bitbucket_sync_export_parameters.rb +0 -197
- data/lib/phrase/models/bitbucket_sync_export_response.rb +0 -196
- data/lib/phrase/models/bitbucket_sync_import_parameters.rb +0 -197
- data/lib/phrase/models/github_sync_export_parameters.rb +0 -197
- data/lib/phrase/models/github_sync_import_parameters.rb +0 -197
- data/lib/phrase/models/gitlab_sync.rb +0 -286
- data/lib/phrase/models/gitlab_sync_export.rb +0 -205
- data/lib/phrase/models/gitlab_sync_export_parameters.rb +0 -197
- data/lib/phrase/models/gitlab_sync_history.rb +0 -234
- data/lib/phrase/models/gitlab_sync_history_errors_inner.rb +0 -205
- data/lib/phrase/models/gitlab_sync_import_parameters.rb +0 -197
- data/lib/phrase/models/repo_sync_event_errors_inner.rb +0 -207
- data/spec/api/bitbucket_sync_api_spec.rb +0 -64
- data/spec/api/git_hub_sync_api_spec.rb +0 -49
- data/spec/api/git_lab_sync_api_spec.rb +0 -125
- data/spec/models/bitbucket_sync_export_parameters_spec.rb +0 -29
- data/spec/models/bitbucket_sync_export_response_spec.rb +0 -29
- data/spec/models/bitbucket_sync_import_parameters_spec.rb +0 -29
- data/spec/models/bitbucket_sync_spec.rb +0 -59
- data/spec/models/github_sync_export_parameters_spec.rb +0 -29
- data/spec/models/github_sync_import_parameters_spec.rb +0 -29
- data/spec/models/gitlab_sync_export_parameters_spec.rb +0 -29
- data/spec/models/gitlab_sync_history_errors_inner_spec.rb +0 -35
- data/spec/models/gitlab_sync_history_spec.rb +0 -53
- data/spec/models/gitlab_sync_import_parameters_spec.rb +0 -29
- data/spec/models/gitlab_sync_spec.rb +0 -89
- data/spec/models/projects_quality_performance_score200_response_any_of_data_spec.rb +0 -29
- 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 :
|
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
|
-
:'
|
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
|
-
:'
|
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<
|
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?(:'
|
96
|
-
self.
|
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
|
-
|
133
|
-
return false unless
|
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]
|
141
|
-
def
|
140
|
+
# @param [Object] type Object to be assigned
|
141
|
+
def type=(type)
|
142
142
|
validator = EnumAttributeValidator.new('String', ["import", "export"])
|
143
|
-
unless validator.valid?(
|
144
|
-
fail ArgumentError, "invalid value for \"
|
143
|
+
unless validator.valid?(type)
|
144
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
145
145
|
end
|
146
|
-
@
|
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
|
-
|
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,
|
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
|
data/lib/phrase/models/upload.rb
CHANGED
@@ -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
|
data/lib/phrase/version.rb
CHANGED
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/
|
157
|
-
require 'phrase/models/
|
158
|
-
require 'phrase/models/
|
159
|
-
require 'phrase/models/
|
160
|
-
require 'phrase/models/
|
161
|
-
require 'phrase/models/
|
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'
|
data/spec/api/jobs_api_spec.rb
CHANGED
@@ -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
|
197
|
+
# @option opts [String] :state filter by state of job; valid states are: <code>draft</code>, <code>in_progress</code>, <code>completed</code>
|
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
|
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
|
217
|
+
# @option opts [String] :state filter by state of job; valid states are: <code>draft</code>, <code>in_progress</code>, <code>completed</code>
|
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
|
data/spec/api/keys_api_spec.rb
CHANGED
@@ -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).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id
|
89
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> <br/> <p><strong>Caution:</strong> Query parameters with empty values will be treated as though they are not included in the request and will be ignored.</p> <br/> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
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).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name
|
137
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id,...</code> to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in <strong>all</strong> uploads</li> </ul> <br/> <p><strong>Caution:</strong> Query parameters with empty values will be treated as though they are not included in the request and will be ignored.</p> <br/> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
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
|
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
|
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 [
|
31
|
-
describe '
|
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
|
-
#
|
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
|
-
#
|
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
|
@@ -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::
|
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 '
|
8
|
+
describe 'JobKeysDeleteParameters' do
|
9
9
|
before do
|
10
10
|
# run before each test
|
11
|
-
@instance = Phrase::
|
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
|
19
|
-
it 'should create an instance of
|
20
|
-
expect(@instance).to be_instance_of(Phrase::
|
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 "
|
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 "
|
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::
|
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 '
|
8
|
+
describe 'QualityPerformanceScoreList200ResponseAnyOfDataTranslationsInner' do
|
9
9
|
before do
|
10
10
|
# run before each test
|
11
|
-
@instance = Phrase::
|
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
|
19
|
-
it 'should create an instance of
|
20
|
-
expect(@instance).to be_instance_of(Phrase::
|
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::
|
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 '
|
8
|
+
describe 'QualityPerformanceScoreList200ResponseAnyOfErrorsInner' do
|
9
9
|
before do
|
10
10
|
# run before each test
|
11
|
-
@instance = Phrase::
|
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
|
19
|
-
it 'should create an instance of
|
20
|
-
expect(@instance).to be_instance_of(Phrase::
|
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::
|
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 '
|
8
|
+
describe 'QualityPerformanceScoreList200ResponseAnyOf' do
|
9
9
|
before do
|
10
10
|
# run before each test
|
11
|
-
@instance = Phrase::
|
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
|
19
|
-
it 'should create an instance of
|
20
|
-
expect(@instance).to be_instance_of(Phrase::
|
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
|