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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +63 -0
- data/README.md +13 -37
- data/docs/AccountDetails.md +3 -1
- 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/account_details.rb +15 -4
- 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/account_details_spec.rb +6 -0
- 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 +259 -315
- 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
data/docs/GitLabSyncApi.md
DELETED
@@ -1,463 +0,0 @@
|
|
1
|
-
# Phrase::GitLabSyncApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.phrase.com/v2*
|
4
|
-
|
5
|
-
Method | HTTP request | Description
|
6
|
-
------------- | ------------- | -------------
|
7
|
-
[**gitlab_sync_delete**](GitLabSyncApi.md#gitlab_sync_delete) | **DELETE** /gitlab_syncs/{id} | Delete single Sync Setting
|
8
|
-
[**gitlab_sync_export**](GitLabSyncApi.md#gitlab_sync_export) | **POST** /gitlab_syncs/{gitlab_sync_id}/export | Export from Phrase Strings to GitLab
|
9
|
-
[**gitlab_sync_history**](GitLabSyncApi.md#gitlab_sync_history) | **GET** /gitlab_syncs/{gitlab_sync_id}/history | History of single Sync Setting
|
10
|
-
[**gitlab_sync_import**](GitLabSyncApi.md#gitlab_sync_import) | **POST** /gitlab_syncs/{gitlab_sync_id}/import | Import from GitLab to Phrase
|
11
|
-
[**gitlab_sync_list**](GitLabSyncApi.md#gitlab_sync_list) | **GET** /gitlab_syncs | List GitLab syncs
|
12
|
-
[**gitlab_sync_show**](GitLabSyncApi.md#gitlab_sync_show) | **GET** /gitlab_syncs/{id} | Get single Sync Setting
|
13
|
-
[**gitlab_sync_update**](GitLabSyncApi.md#gitlab_sync_update) | **PUT** /gitlab_syncs/{id} | Update single Sync Setting
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
## gitlab_sync_delete
|
18
|
-
|
19
|
-
> gitlab_sync_delete(id, opts)
|
20
|
-
|
21
|
-
Delete single Sync Setting
|
22
|
-
|
23
|
-
Deletes a single GitLab Sync Setting.
|
24
|
-
|
25
|
-
### Example
|
26
|
-
|
27
|
-
```ruby
|
28
|
-
# load the gem
|
29
|
-
require 'phrase'
|
30
|
-
# setup authorization
|
31
|
-
Phrase.configure do |config|
|
32
|
-
# Configure HTTP basic authorization: Basic
|
33
|
-
config.username = 'YOUR USERNAME'
|
34
|
-
config.password = 'YOUR PASSWORD'
|
35
|
-
|
36
|
-
# Configure API key authorization: Token
|
37
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
38
|
-
config.api_key_prefix['Authorization'] = 'token'
|
39
|
-
end
|
40
|
-
|
41
|
-
api_instance = Phrase::GitLabSyncApi.new
|
42
|
-
id = 'id_example' # String | ID
|
43
|
-
opts = {
|
44
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
45
|
-
account_id: 'abcd1234' # String | Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
46
|
-
}
|
47
|
-
|
48
|
-
begin
|
49
|
-
#Delete single Sync Setting
|
50
|
-
api_instance.gitlab_sync_delete(id, opts)
|
51
|
-
rescue Phrase::ApiError => e
|
52
|
-
puts "Exception when calling GitLabSyncApi->gitlab_sync_delete: #{e}"
|
53
|
-
end
|
54
|
-
```
|
55
|
-
|
56
|
-
### Parameters
|
57
|
-
|
58
|
-
|
59
|
-
Name | Type | Description | Notes
|
60
|
-
------------- | ------------- | ------------- | -------------
|
61
|
-
**id** | **String**| ID |
|
62
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
63
|
-
**account_id** | **String**| Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
|
64
|
-
|
65
|
-
### Return type
|
66
|
-
|
67
|
-
Response<(nil (empty response body))>
|
68
|
-
|
69
|
-
### Authorization
|
70
|
-
|
71
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
72
|
-
|
73
|
-
### HTTP request headers
|
74
|
-
|
75
|
-
- **Content-Type**: Not defined
|
76
|
-
- **Accept**: Not defined
|
77
|
-
|
78
|
-
|
79
|
-
## gitlab_sync_export
|
80
|
-
|
81
|
-
> GitlabSyncExport gitlab_sync_export(gitlab_sync_id, gitlab_sync_export_parameters, opts)
|
82
|
-
|
83
|
-
Export from Phrase Strings to GitLab
|
84
|
-
|
85
|
-
Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository. <br><br><i>Note: Export is done asynchronously and may take several seconds depending on the project size.</i>
|
86
|
-
|
87
|
-
### Example
|
88
|
-
|
89
|
-
```ruby
|
90
|
-
# load the gem
|
91
|
-
require 'phrase'
|
92
|
-
# setup authorization
|
93
|
-
Phrase.configure do |config|
|
94
|
-
# Configure HTTP basic authorization: Basic
|
95
|
-
config.username = 'YOUR USERNAME'
|
96
|
-
config.password = 'YOUR PASSWORD'
|
97
|
-
|
98
|
-
# Configure API key authorization: Token
|
99
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
100
|
-
config.api_key_prefix['Authorization'] = 'token'
|
101
|
-
end
|
102
|
-
|
103
|
-
api_instance = Phrase::GitLabSyncApi.new
|
104
|
-
gitlab_sync_id = 'gitlab_sync_id_example' # String | Gitlab Sync ID
|
105
|
-
gitlab_sync_export_parameters = Phrase::GitlabSyncExportParameters.new # GitlabSyncExportParameters |
|
106
|
-
opts = {
|
107
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
108
|
-
}
|
109
|
-
|
110
|
-
begin
|
111
|
-
#Export from Phrase Strings to GitLab
|
112
|
-
result = api_instance.gitlab_sync_export(gitlab_sync_id, gitlab_sync_export_parameters, opts)
|
113
|
-
pp result
|
114
|
-
rescue Phrase::ApiError => e
|
115
|
-
puts "Exception when calling GitLabSyncApi->gitlab_sync_export: #{e}"
|
116
|
-
end
|
117
|
-
```
|
118
|
-
|
119
|
-
### Parameters
|
120
|
-
|
121
|
-
|
122
|
-
Name | Type | Description | Notes
|
123
|
-
------------- | ------------- | ------------- | -------------
|
124
|
-
**gitlab_sync_id** | **String**| Gitlab Sync ID |
|
125
|
-
**gitlab_sync_export_parameters** | [**GitlabSyncExportParameters**](GitlabSyncExportParameters.md)| |
|
126
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
127
|
-
|
128
|
-
### Return type
|
129
|
-
|
130
|
-
Response<([**GitlabSyncExport**](GitlabSyncExport.md))>
|
131
|
-
|
132
|
-
### Authorization
|
133
|
-
|
134
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
135
|
-
|
136
|
-
### HTTP request headers
|
137
|
-
|
138
|
-
- **Content-Type**: application/json
|
139
|
-
- **Accept**: application/json
|
140
|
-
|
141
|
-
|
142
|
-
## gitlab_sync_history
|
143
|
-
|
144
|
-
> Array<GitlabSyncHistory> gitlab_sync_history(gitlab_sync_id, opts)
|
145
|
-
|
146
|
-
History of single Sync Setting
|
147
|
-
|
148
|
-
List history for a single Sync Setting.
|
149
|
-
|
150
|
-
### Example
|
151
|
-
|
152
|
-
```ruby
|
153
|
-
# load the gem
|
154
|
-
require 'phrase'
|
155
|
-
# setup authorization
|
156
|
-
Phrase.configure do |config|
|
157
|
-
# Configure HTTP basic authorization: Basic
|
158
|
-
config.username = 'YOUR USERNAME'
|
159
|
-
config.password = 'YOUR PASSWORD'
|
160
|
-
|
161
|
-
# Configure API key authorization: Token
|
162
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
163
|
-
config.api_key_prefix['Authorization'] = 'token'
|
164
|
-
end
|
165
|
-
|
166
|
-
api_instance = Phrase::GitLabSyncApi.new
|
167
|
-
gitlab_sync_id = 'gitlab_sync_id_example' # String | Gitlab Sync ID
|
168
|
-
opts = {
|
169
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
170
|
-
page: 1, # Integer | Page number
|
171
|
-
per_page: 25, # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
172
|
-
account_id: 'abcd1234' # String | Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
173
|
-
}
|
174
|
-
|
175
|
-
begin
|
176
|
-
#History of single Sync Setting
|
177
|
-
result = api_instance.gitlab_sync_history(gitlab_sync_id, opts)
|
178
|
-
pp result
|
179
|
-
rescue Phrase::ApiError => e
|
180
|
-
puts "Exception when calling GitLabSyncApi->gitlab_sync_history: #{e}"
|
181
|
-
end
|
182
|
-
```
|
183
|
-
|
184
|
-
### Parameters
|
185
|
-
|
186
|
-
|
187
|
-
Name | Type | Description | Notes
|
188
|
-
------------- | ------------- | ------------- | -------------
|
189
|
-
**gitlab_sync_id** | **String**| Gitlab Sync ID |
|
190
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
191
|
-
**page** | **Integer**| Page number | [optional]
|
192
|
-
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
|
193
|
-
**account_id** | **String**| Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
|
194
|
-
|
195
|
-
### Return type
|
196
|
-
|
197
|
-
Response<([**Array<GitlabSyncHistory>**](GitlabSyncHistory.md))>
|
198
|
-
|
199
|
-
### Authorization
|
200
|
-
|
201
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
202
|
-
|
203
|
-
### HTTP request headers
|
204
|
-
|
205
|
-
- **Content-Type**: Not defined
|
206
|
-
- **Accept**: application/json
|
207
|
-
|
208
|
-
|
209
|
-
## gitlab_sync_import
|
210
|
-
|
211
|
-
> Array<Upload> gitlab_sync_import(gitlab_sync_id, gitlab_sync_import_parameters, opts)
|
212
|
-
|
213
|
-
Import from GitLab to Phrase
|
214
|
-
|
215
|
-
Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository. <br><br><i>Note: Import is done asynchronously and may take several seconds depending on the project size.</i>
|
216
|
-
|
217
|
-
### Example
|
218
|
-
|
219
|
-
```ruby
|
220
|
-
# load the gem
|
221
|
-
require 'phrase'
|
222
|
-
# setup authorization
|
223
|
-
Phrase.configure do |config|
|
224
|
-
# Configure HTTP basic authorization: Basic
|
225
|
-
config.username = 'YOUR USERNAME'
|
226
|
-
config.password = 'YOUR PASSWORD'
|
227
|
-
|
228
|
-
# Configure API key authorization: Token
|
229
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
230
|
-
config.api_key_prefix['Authorization'] = 'token'
|
231
|
-
end
|
232
|
-
|
233
|
-
api_instance = Phrase::GitLabSyncApi.new
|
234
|
-
gitlab_sync_id = 'gitlab_sync_id_example' # String | Gitlab Sync ID
|
235
|
-
gitlab_sync_import_parameters = Phrase::GitlabSyncImportParameters.new # GitlabSyncImportParameters |
|
236
|
-
opts = {
|
237
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
238
|
-
}
|
239
|
-
|
240
|
-
begin
|
241
|
-
#Import from GitLab to Phrase
|
242
|
-
result = api_instance.gitlab_sync_import(gitlab_sync_id, gitlab_sync_import_parameters, opts)
|
243
|
-
pp result
|
244
|
-
rescue Phrase::ApiError => e
|
245
|
-
puts "Exception when calling GitLabSyncApi->gitlab_sync_import: #{e}"
|
246
|
-
end
|
247
|
-
```
|
248
|
-
|
249
|
-
### Parameters
|
250
|
-
|
251
|
-
|
252
|
-
Name | Type | Description | Notes
|
253
|
-
------------- | ------------- | ------------- | -------------
|
254
|
-
**gitlab_sync_id** | **String**| Gitlab Sync ID |
|
255
|
-
**gitlab_sync_import_parameters** | [**GitlabSyncImportParameters**](GitlabSyncImportParameters.md)| |
|
256
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
257
|
-
|
258
|
-
### Return type
|
259
|
-
|
260
|
-
Response<([**Array<Upload>**](Upload.md))>
|
261
|
-
|
262
|
-
### Authorization
|
263
|
-
|
264
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
265
|
-
|
266
|
-
### HTTP request headers
|
267
|
-
|
268
|
-
- **Content-Type**: application/json
|
269
|
-
- **Accept**: application/json
|
270
|
-
|
271
|
-
|
272
|
-
## gitlab_sync_list
|
273
|
-
|
274
|
-
> Array<GitlabSync> gitlab_sync_list(opts)
|
275
|
-
|
276
|
-
List GitLab syncs
|
277
|
-
|
278
|
-
List all GitLab Sync Settings for which synchronisation with Phrase Strings and GitLab is activated.
|
279
|
-
|
280
|
-
### Example
|
281
|
-
|
282
|
-
```ruby
|
283
|
-
# load the gem
|
284
|
-
require 'phrase'
|
285
|
-
# setup authorization
|
286
|
-
Phrase.configure do |config|
|
287
|
-
# Configure HTTP basic authorization: Basic
|
288
|
-
config.username = 'YOUR USERNAME'
|
289
|
-
config.password = 'YOUR PASSWORD'
|
290
|
-
|
291
|
-
# Configure API key authorization: Token
|
292
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
293
|
-
config.api_key_prefix['Authorization'] = 'token'
|
294
|
-
end
|
295
|
-
|
296
|
-
api_instance = Phrase::GitLabSyncApi.new
|
297
|
-
opts = {
|
298
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
299
|
-
account_id: 'abcd1234' # String | Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
300
|
-
}
|
301
|
-
|
302
|
-
begin
|
303
|
-
#List GitLab syncs
|
304
|
-
result = api_instance.gitlab_sync_list(opts)
|
305
|
-
pp result
|
306
|
-
rescue Phrase::ApiError => e
|
307
|
-
puts "Exception when calling GitLabSyncApi->gitlab_sync_list: #{e}"
|
308
|
-
end
|
309
|
-
```
|
310
|
-
|
311
|
-
### Parameters
|
312
|
-
|
313
|
-
|
314
|
-
Name | Type | Description | Notes
|
315
|
-
------------- | ------------- | ------------- | -------------
|
316
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
317
|
-
**account_id** | **String**| Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
|
318
|
-
|
319
|
-
### Return type
|
320
|
-
|
321
|
-
Response<([**Array<GitlabSync>**](GitlabSync.md))>
|
322
|
-
|
323
|
-
### Authorization
|
324
|
-
|
325
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
326
|
-
|
327
|
-
### HTTP request headers
|
328
|
-
|
329
|
-
- **Content-Type**: Not defined
|
330
|
-
- **Accept**: application/json
|
331
|
-
|
332
|
-
|
333
|
-
## gitlab_sync_show
|
334
|
-
|
335
|
-
> GitlabSync gitlab_sync_show(id, opts)
|
336
|
-
|
337
|
-
Get single Sync Setting
|
338
|
-
|
339
|
-
Shows a single GitLab Sync Setting.
|
340
|
-
|
341
|
-
### Example
|
342
|
-
|
343
|
-
```ruby
|
344
|
-
# load the gem
|
345
|
-
require 'phrase'
|
346
|
-
# setup authorization
|
347
|
-
Phrase.configure do |config|
|
348
|
-
# Configure HTTP basic authorization: Basic
|
349
|
-
config.username = 'YOUR USERNAME'
|
350
|
-
config.password = 'YOUR PASSWORD'
|
351
|
-
|
352
|
-
# Configure API key authorization: Token
|
353
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
354
|
-
config.api_key_prefix['Authorization'] = 'token'
|
355
|
-
end
|
356
|
-
|
357
|
-
api_instance = Phrase::GitLabSyncApi.new
|
358
|
-
id = 'id_example' # String | ID
|
359
|
-
opts = {
|
360
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
361
|
-
account_id: 'abcd1234' # String | Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
362
|
-
}
|
363
|
-
|
364
|
-
begin
|
365
|
-
#Get single Sync Setting
|
366
|
-
result = api_instance.gitlab_sync_show(id, opts)
|
367
|
-
pp result
|
368
|
-
rescue Phrase::ApiError => e
|
369
|
-
puts "Exception when calling GitLabSyncApi->gitlab_sync_show: #{e}"
|
370
|
-
end
|
371
|
-
```
|
372
|
-
|
373
|
-
### Parameters
|
374
|
-
|
375
|
-
|
376
|
-
Name | Type | Description | Notes
|
377
|
-
------------- | ------------- | ------------- | -------------
|
378
|
-
**id** | **String**| ID |
|
379
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
380
|
-
**account_id** | **String**| Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
|
381
|
-
|
382
|
-
### Return type
|
383
|
-
|
384
|
-
Response<([**GitlabSync**](GitlabSync.md))>
|
385
|
-
|
386
|
-
### Authorization
|
387
|
-
|
388
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
389
|
-
|
390
|
-
### HTTP request headers
|
391
|
-
|
392
|
-
- **Content-Type**: Not defined
|
393
|
-
- **Accept**: application/json
|
394
|
-
|
395
|
-
|
396
|
-
## gitlab_sync_update
|
397
|
-
|
398
|
-
> GitlabSync gitlab_sync_update(id, opts)
|
399
|
-
|
400
|
-
Update single Sync Setting
|
401
|
-
|
402
|
-
Updates a single GitLab Sync Setting.
|
403
|
-
|
404
|
-
### Example
|
405
|
-
|
406
|
-
```ruby
|
407
|
-
# load the gem
|
408
|
-
require 'phrase'
|
409
|
-
# setup authorization
|
410
|
-
Phrase.configure do |config|
|
411
|
-
# Configure HTTP basic authorization: Basic
|
412
|
-
config.username = 'YOUR USERNAME'
|
413
|
-
config.password = 'YOUR PASSWORD'
|
414
|
-
|
415
|
-
# Configure API key authorization: Token
|
416
|
-
config.api_key['Authorization'] = 'YOUR API KEY'
|
417
|
-
config.api_key_prefix['Authorization'] = 'token'
|
418
|
-
end
|
419
|
-
|
420
|
-
api_instance = Phrase::GitLabSyncApi.new
|
421
|
-
id = 'id_example' # String | ID
|
422
|
-
opts = {
|
423
|
-
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
424
|
-
account_id: 'abcd1234', # String | Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
425
|
-
phrase_project_code: '3456abcd', # String | Code of the related Phrase Strings Project.
|
426
|
-
gitlab_project_id: 12345, # Integer | ID of the related GitLab Project.
|
427
|
-
gitlab_branch_name: 'feature-development' # String | Name of the GitLab Branch.
|
428
|
-
}
|
429
|
-
|
430
|
-
begin
|
431
|
-
#Update single Sync Setting
|
432
|
-
result = api_instance.gitlab_sync_update(id, opts)
|
433
|
-
pp result
|
434
|
-
rescue Phrase::ApiError => e
|
435
|
-
puts "Exception when calling GitLabSyncApi->gitlab_sync_update: #{e}"
|
436
|
-
end
|
437
|
-
```
|
438
|
-
|
439
|
-
### Parameters
|
440
|
-
|
441
|
-
|
442
|
-
Name | Type | Description | Notes
|
443
|
-
------------- | ------------- | ------------- | -------------
|
444
|
-
**id** | **String**| ID |
|
445
|
-
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
446
|
-
**account_id** | **String**| Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
|
447
|
-
**phrase_project_code** | **String**| Code of the related Phrase Strings Project. | [optional]
|
448
|
-
**gitlab_project_id** | **Integer**| ID of the related GitLab Project. | [optional]
|
449
|
-
**gitlab_branch_name** | **String**| Name of the GitLab Branch. | [optional]
|
450
|
-
|
451
|
-
### Return type
|
452
|
-
|
453
|
-
Response<([**GitlabSync**](GitlabSync.md))>
|
454
|
-
|
455
|
-
### Authorization
|
456
|
-
|
457
|
-
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
458
|
-
|
459
|
-
### HTTP request headers
|
460
|
-
|
461
|
-
- **Content-Type**: Not defined
|
462
|
-
- **Accept**: application/json
|
463
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Phrase::GithubSyncExportParameters
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**project_id** | **String** | Project ID to specify the actual project the GitHub export should be triggered in. | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'Phrase'
|
13
|
-
|
14
|
-
instance = Phrase::GithubSyncExportParameters.new(project_id: abcd1234)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Phrase::GithubSyncImportParameters
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**project_id** | **String** | Project ID to specify the actual project the GitHub import should be triggered in. | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'Phrase'
|
13
|
-
|
14
|
-
instance = Phrase::GithubSyncImportParameters.new(project_id: abcd1234)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/docs/GitlabSync.md
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
# Phrase::GitlabSync
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**id** | **String** | | [optional]
|
8
|
-
**project_id** | **String** | | [optional]
|
9
|
-
**gitlab_project_id** | **Integer** | | [optional]
|
10
|
-
**gitlab_branch_name** | **String** | | [optional]
|
11
|
-
**auto_import** | **Boolean** | | [optional]
|
12
|
-
**auto_import_secret** | **String** | | [optional]
|
13
|
-
**auto_import_url** | **String** | | [optional]
|
14
|
-
**self_hosted_api_url** | **String** | | [optional]
|
15
|
-
**last_exported_at** | **Time** | | [optional]
|
16
|
-
**last_imported_at** | **Time** | | [optional]
|
17
|
-
**last_status** | **String** | | [optional]
|
18
|
-
|
19
|
-
## Code Sample
|
20
|
-
|
21
|
-
```ruby
|
22
|
-
require 'Phrase'
|
23
|
-
|
24
|
-
instance = Phrase::GitlabSync.new(id: null,
|
25
|
-
project_id: null,
|
26
|
-
gitlab_project_id: null,
|
27
|
-
gitlab_branch_name: null,
|
28
|
-
auto_import: null,
|
29
|
-
auto_import_secret: null,
|
30
|
-
auto_import_url: null,
|
31
|
-
self_hosted_api_url: null,
|
32
|
-
last_exported_at: null,
|
33
|
-
last_imported_at: null,
|
34
|
-
last_status: null)
|
35
|
-
```
|
36
|
-
|
37
|
-
|
data/docs/GitlabSyncExport.md
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
# Phrase::GitlabSyncExport
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**merge_request_id** | **Integer** | | [optional]
|
8
|
-
**merge_request_web_url** | **String** | | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'Phrase'
|
14
|
-
|
15
|
-
instance = Phrase::GitlabSyncExport.new(merge_request_id: null,
|
16
|
-
merge_request_web_url: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Phrase::GitlabSyncExportParameters
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**account_id** | **String** | Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'Phrase'
|
13
|
-
|
14
|
-
instance = Phrase::GitlabSyncExportParameters.new(account_id: abcd1234)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
data/docs/GitlabSyncHistory.md
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# Phrase::GitlabSyncHistory
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**status** | **String** | | [optional]
|
8
|
-
**action** | **String** | | [optional]
|
9
|
-
**errors** | [**Array<GitlabSyncHistoryErrorsInner>**](GitlabSyncHistoryErrorsInner.md) | | [optional]
|
10
|
-
**date** | **Time** | | [optional]
|
11
|
-
**details** | **Object** | | [optional]
|
12
|
-
|
13
|
-
## Code Sample
|
14
|
-
|
15
|
-
```ruby
|
16
|
-
require 'Phrase'
|
17
|
-
|
18
|
-
instance = Phrase::GitlabSyncHistory.new(status: null,
|
19
|
-
action: null,
|
20
|
-
errors: null,
|
21
|
-
date: null,
|
22
|
-
details: null)
|
23
|
-
```
|
24
|
-
|
25
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# Phrase::GitlabSyncHistoryErrorsInner
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**error** | **String** | | [optional]
|
8
|
-
**message** | **String** | | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'Phrase'
|
14
|
-
|
15
|
-
instance = Phrase::GitlabSyncHistoryErrorsInner.new(error: null,
|
16
|
-
message: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Phrase::GitlabSyncImportParameters
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**account_id** | **String** | Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts. | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'Phrase'
|
13
|
-
|
14
|
-
instance = Phrase::GitlabSyncImportParameters.new(account_id: abcd1234)
|
15
|
-
```
|
16
|
-
|
17
|
-
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# Phrase::ProjectsQualityPerformanceScore200Response
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**error** | [**ErrorError**](ErrorError.md) | | [optional]
|
8
|
-
**data** | [**ProjectsQualityPerformanceScore200ResponseAnyOfData**](ProjectsQualityPerformanceScore200ResponseAnyOfData.md) | | [optional]
|
9
|
-
**errors** | [**Array<ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner>**](ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md) | Array of errors for any failing translation IDs | [optional]
|
10
|
-
|
11
|
-
## Code Sample
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'Phrase'
|
15
|
-
|
16
|
-
instance = Phrase::ProjectsQualityPerformanceScore200Response.new(error: null,
|
17
|
-
data: null,
|
18
|
-
errors: null)
|
19
|
-
```
|
20
|
-
|
21
|
-
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# Phrase::ProjectsQualityPerformanceScore200ResponseAnyOf
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**data** | [**ProjectsQualityPerformanceScore200ResponseAnyOfData**](ProjectsQualityPerformanceScore200ResponseAnyOfData.md) | | [optional]
|
8
|
-
**errors** | [**Array<ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner>**](ProjectsQualityPerformanceScore200ResponseAnyOfErrorsInner.md) | Array of errors for any failing translation IDs | [optional]
|
9
|
-
|
10
|
-
## Code Sample
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'Phrase'
|
14
|
-
|
15
|
-
instance = Phrase::ProjectsQualityPerformanceScore200ResponseAnyOf.new(data: null,
|
16
|
-
errors: null)
|
17
|
-
```
|
18
|
-
|
19
|
-
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfData
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
------------ | ------------- | ------------- | -------------
|
7
|
-
**translations** | [**Array<ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner>**](ProjectsQualityPerformanceScore200ResponseAnyOfDataTranslationsInner.md) | | [optional]
|
8
|
-
|
9
|
-
## Code Sample
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'Phrase'
|
13
|
-
|
14
|
-
instance = Phrase::ProjectsQualityPerformanceScore200ResponseAnyOfData.new(translations: null)
|
15
|
-
```
|
16
|
-
|
17
|
-
|