phrase 2.7.2 → 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +39 -13
- data/docs/BitbucketSyncApi.md +9 -9
- data/docs/BranchMergeParameters.md +2 -2
- data/docs/GitHubSyncApi.md +8 -8
- data/docs/GitLabSyncApi.md +8 -8
- data/docs/LocaleCreateParameters.md +3 -3
- data/docs/LocaleUpdateParameters.md +3 -3
- data/docs/LocalesApi.md +4 -4
- data/docs/ProjectCreateParameters.md +4 -4
- data/docs/ProjectUpdateParameters.md +4 -4
- data/docs/TeamsApi.md +3 -3
- data/docs/TranslationCreateParameters.md +1 -1
- data/docs/TranslationUpdateParameters.md +1 -1
- data/docs/WebhookDeliveriesApi.md +206 -0
- data/docs/WebhookDelivery.md +29 -0
- data/lib/phrase/api/bitbucket_sync_api.rb +10 -10
- data/lib/phrase/api/git_hub_sync_api.rb +8 -8
- data/lib/phrase/api/git_lab_sync_api.rb +10 -10
- data/lib/phrase/api/locales_api.rb +4 -4
- data/lib/phrase/api/teams_api.rb +3 -3
- data/lib/phrase/api/webhook_deliveries_api.rb +241 -0
- data/lib/phrase/models/branch_merge_parameters.rb +1 -1
- data/lib/phrase/models/locale_create_parameters.rb +3 -3
- data/lib/phrase/models/locale_update_parameters.rb +3 -3
- data/lib/phrase/models/project_create_parameters.rb +4 -4
- data/lib/phrase/models/project_update_parameters.rb +4 -4
- data/lib/phrase/models/translation_create_parameters.rb +1 -1
- data/lib/phrase/models/translation_update_parameters.rb +1 -1
- data/lib/phrase/models/webhook_delivery.rb +248 -0
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +2 -0
- data/phrase.gemspec +2 -2
- data/spec/api/bitbucket_sync_api_spec.rb +5 -5
- data/spec/api/git_hub_sync_api_spec.rb +4 -4
- data/spec/api/git_lab_sync_api_spec.rb +5 -5
- data/spec/api/locales_api_spec.rb +2 -2
- data/spec/api/webhook_deliveries_api_spec.rb +68 -0
- data/spec/models/webhook_delivery_spec.rb +65 -0
- metadata +212 -204
@@ -0,0 +1,206 @@
|
|
1
|
+
# Phrase::WebhookDeliveriesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.phrase.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**webhook_deliveries_list**](WebhookDeliveriesApi.md#webhook_deliveries_list) | **GET** /projects/{project_id}/webhooks/{webhook_id}/deliveries | List webhook deliveries
|
8
|
+
[**webhook_deliveries_redeliver**](WebhookDeliveriesApi.md#webhook_deliveries_redeliver) | **POST** /projects/{project_id}/webhooks/{webhook_id}/deliveries/{id}/redeliver | Redeliver a single webhook delivery
|
9
|
+
[**webhook_deliveries_show**](WebhookDeliveriesApi.md#webhook_deliveries_show) | **GET** /projects/{project_id}/webhooks/{webhook_id}/deliveries/{id} | Get a single webhook delivery
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
## webhook_deliveries_list
|
14
|
+
|
15
|
+
> Array<WebhookDelivery> webhook_deliveries_list(project_id, webhook_id, opts)
|
16
|
+
|
17
|
+
List webhook deliveries
|
18
|
+
|
19
|
+
List all webhook deliveries for the given webhook_id.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
# load the gem
|
25
|
+
require 'phrase'
|
26
|
+
# setup authorization
|
27
|
+
Phrase.configure do |config|
|
28
|
+
# Configure HTTP basic authorization: Basic
|
29
|
+
config.username = 'YOUR USERNAME'
|
30
|
+
config.password = 'YOUR PASSWORD'
|
31
|
+
|
32
|
+
# Configure API key authorization: Token
|
33
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
34
|
+
config.api_key_prefix['Authorization'] = 'token'
|
35
|
+
end
|
36
|
+
|
37
|
+
api_instance = Phrase::WebhookDeliveriesApi.new
|
38
|
+
project_id = 'project_id_example' # String | Project ID
|
39
|
+
webhook_id = 'webhook_id_example' # String | Webhook ID
|
40
|
+
opts = {
|
41
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
42
|
+
response_status_codes: 'response_status_codes_example' # String | List of Response Status Codes
|
43
|
+
}
|
44
|
+
|
45
|
+
begin
|
46
|
+
#List webhook deliveries
|
47
|
+
result = api_instance.webhook_deliveries_list(project_id, webhook_id, opts)
|
48
|
+
pp result
|
49
|
+
rescue Phrase::ApiError => e
|
50
|
+
puts "Exception when calling WebhookDeliveriesApi->webhook_deliveries_list: #{e}"
|
51
|
+
end
|
52
|
+
```
|
53
|
+
|
54
|
+
### Parameters
|
55
|
+
|
56
|
+
|
57
|
+
Name | Type | Description | Notes
|
58
|
+
------------- | ------------- | ------------- | -------------
|
59
|
+
**project_id** | **String**| Project ID |
|
60
|
+
**webhook_id** | **String**| Webhook ID |
|
61
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
62
|
+
**response_status_codes** | **String**| List of Response Status Codes | [optional]
|
63
|
+
|
64
|
+
### Return type
|
65
|
+
|
66
|
+
Response<([**Array<WebhookDelivery>**](WebhookDelivery.md))>
|
67
|
+
|
68
|
+
### Authorization
|
69
|
+
|
70
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
71
|
+
|
72
|
+
### HTTP request headers
|
73
|
+
|
74
|
+
- **Content-Type**: Not defined
|
75
|
+
- **Accept**: application/json
|
76
|
+
|
77
|
+
|
78
|
+
## webhook_deliveries_redeliver
|
79
|
+
|
80
|
+
> WebhookDelivery webhook_deliveries_redeliver(project_id, webhook_id, id, opts)
|
81
|
+
|
82
|
+
Redeliver a single webhook delivery
|
83
|
+
|
84
|
+
Trigger an individual webhook delivery to be redelivered.
|
85
|
+
|
86
|
+
### Example
|
87
|
+
|
88
|
+
```ruby
|
89
|
+
# load the gem
|
90
|
+
require 'phrase'
|
91
|
+
# setup authorization
|
92
|
+
Phrase.configure do |config|
|
93
|
+
# Configure HTTP basic authorization: Basic
|
94
|
+
config.username = 'YOUR USERNAME'
|
95
|
+
config.password = 'YOUR PASSWORD'
|
96
|
+
|
97
|
+
# Configure API key authorization: Token
|
98
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
99
|
+
config.api_key_prefix['Authorization'] = 'token'
|
100
|
+
end
|
101
|
+
|
102
|
+
api_instance = Phrase::WebhookDeliveriesApi.new
|
103
|
+
project_id = 'project_id_example' # String | Project ID
|
104
|
+
webhook_id = 'webhook_id_example' # String | Webhook ID
|
105
|
+
id = 'id_example' # String | ID
|
106
|
+
opts = {
|
107
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
108
|
+
}
|
109
|
+
|
110
|
+
begin
|
111
|
+
#Redeliver a single webhook delivery
|
112
|
+
result = api_instance.webhook_deliveries_redeliver(project_id, webhook_id, id, opts)
|
113
|
+
pp result
|
114
|
+
rescue Phrase::ApiError => e
|
115
|
+
puts "Exception when calling WebhookDeliveriesApi->webhook_deliveries_redeliver: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
|
122
|
+
Name | Type | Description | Notes
|
123
|
+
------------- | ------------- | ------------- | -------------
|
124
|
+
**project_id** | **String**| Project ID |
|
125
|
+
**webhook_id** | **String**| Webhook ID |
|
126
|
+
**id** | **String**| ID |
|
127
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
128
|
+
|
129
|
+
### Return type
|
130
|
+
|
131
|
+
Response<([**WebhookDelivery**](WebhookDelivery.md))>
|
132
|
+
|
133
|
+
### Authorization
|
134
|
+
|
135
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
136
|
+
|
137
|
+
### HTTP request headers
|
138
|
+
|
139
|
+
- **Content-Type**: Not defined
|
140
|
+
- **Accept**: application/json
|
141
|
+
|
142
|
+
|
143
|
+
## webhook_deliveries_show
|
144
|
+
|
145
|
+
> WebhookDelivery webhook_deliveries_show(project_id, webhook_id, id, opts)
|
146
|
+
|
147
|
+
Get a single webhook delivery
|
148
|
+
|
149
|
+
Get all information about a single webhook delivery for the given ID.
|
150
|
+
|
151
|
+
### Example
|
152
|
+
|
153
|
+
```ruby
|
154
|
+
# load the gem
|
155
|
+
require 'phrase'
|
156
|
+
# setup authorization
|
157
|
+
Phrase.configure do |config|
|
158
|
+
# Configure HTTP basic authorization: Basic
|
159
|
+
config.username = 'YOUR USERNAME'
|
160
|
+
config.password = 'YOUR PASSWORD'
|
161
|
+
|
162
|
+
# Configure API key authorization: Token
|
163
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
164
|
+
config.api_key_prefix['Authorization'] = 'token'
|
165
|
+
end
|
166
|
+
|
167
|
+
api_instance = Phrase::WebhookDeliveriesApi.new
|
168
|
+
project_id = 'project_id_example' # String | Project ID
|
169
|
+
webhook_id = 'webhook_id_example' # String | Webhook ID
|
170
|
+
id = 'id_example' # String | ID
|
171
|
+
opts = {
|
172
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
173
|
+
}
|
174
|
+
|
175
|
+
begin
|
176
|
+
#Get a single webhook delivery
|
177
|
+
result = api_instance.webhook_deliveries_show(project_id, webhook_id, id, opts)
|
178
|
+
pp result
|
179
|
+
rescue Phrase::ApiError => e
|
180
|
+
puts "Exception when calling WebhookDeliveriesApi->webhook_deliveries_show: #{e}"
|
181
|
+
end
|
182
|
+
```
|
183
|
+
|
184
|
+
### Parameters
|
185
|
+
|
186
|
+
|
187
|
+
Name | Type | Description | Notes
|
188
|
+
------------- | ------------- | ------------- | -------------
|
189
|
+
**project_id** | **String**| Project ID |
|
190
|
+
**webhook_id** | **String**| Webhook ID |
|
191
|
+
**id** | **String**| ID |
|
192
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
193
|
+
|
194
|
+
### Return type
|
195
|
+
|
196
|
+
Response<([**WebhookDelivery**](WebhookDelivery.md))>
|
197
|
+
|
198
|
+
### Authorization
|
199
|
+
|
200
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
201
|
+
|
202
|
+
### HTTP request headers
|
203
|
+
|
204
|
+
- **Content-Type**: Not defined
|
205
|
+
- **Accept**: application/json
|
206
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Phrase::WebhookDelivery
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**id** | **String** | | [optional]
|
8
|
+
**webhook_id** | **String** | | [optional]
|
9
|
+
**response_status_code** | **Integer** | | [optional]
|
10
|
+
**delivered_at** | **DateTime** | | [optional]
|
11
|
+
**duration_ms** | **Integer** | | [optional]
|
12
|
+
**created_at** | **DateTime** | | [optional]
|
13
|
+
**updated_at** | **DateTime** | | [optional]
|
14
|
+
|
15
|
+
## Code Sample
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'Phrase'
|
19
|
+
|
20
|
+
instance = Phrase::WebhookDelivery.new(id: null,
|
21
|
+
webhook_id: null,
|
22
|
+
response_status_code: null,
|
23
|
+
delivered_at: null,
|
24
|
+
duration_ms: null,
|
25
|
+
created_at: null,
|
26
|
+
updated_at: null)
|
27
|
+
```
|
28
|
+
|
29
|
+
|
@@ -7,8 +7,8 @@ module Phrase
|
|
7
7
|
def initialize(api_client = ApiClient.default)
|
8
8
|
@api_client = api_client
|
9
9
|
end
|
10
|
-
# Export from Phrase to Bitbucket
|
11
|
-
# Export translations from Phrase to Bitbucket according to the .phraseapp.yml file within the Bitbucket Repository.
|
10
|
+
# Export from Phrase Strings to Bitbucket
|
11
|
+
# Export translations from Phrase Strings to Bitbucket according to the .phraseapp.yml file within the Bitbucket Repository.
|
12
12
|
# @param id [String] ID
|
13
13
|
# @param bitbucket_sync_export_parameters [BitbucketSyncExportParameters]
|
14
14
|
# @param [Hash] opts the optional parameters
|
@@ -19,8 +19,8 @@ module Phrase
|
|
19
19
|
data
|
20
20
|
end
|
21
21
|
|
22
|
-
# Export from Phrase to Bitbucket
|
23
|
-
# Export translations from Phrase to Bitbucket according to the .phraseapp.yml file within the Bitbucket Repository.
|
22
|
+
# Export from Phrase Strings to Bitbucket
|
23
|
+
# Export translations from Phrase Strings to Bitbucket according to the .phraseapp.yml file within the Bitbucket Repository.
|
24
24
|
# @param id [String] ID
|
25
25
|
# @param bitbucket_sync_export_parameters [BitbucketSyncExportParameters]
|
26
26
|
# @param [Hash] opts the optional parameters
|
@@ -81,8 +81,8 @@ module Phrase
|
|
81
81
|
return response, status_code, headers
|
82
82
|
end
|
83
83
|
|
84
|
-
# Import to Phrase from Bitbucket
|
85
|
-
# Import translations from Bitbucket to Phrase according to the .phraseapp.yml file within the Bitbucket repository.
|
84
|
+
# Import to Phrase Strings from Bitbucket
|
85
|
+
# Import translations from Bitbucket to Phrase Strings according to the .phraseapp.yml file within the Bitbucket repository.
|
86
86
|
# @param id [String] ID
|
87
87
|
# @param bitbucket_sync_import_parameters [BitbucketSyncImportParameters]
|
88
88
|
# @param [Hash] opts the optional parameters
|
@@ -93,8 +93,8 @@ module Phrase
|
|
93
93
|
data
|
94
94
|
end
|
95
95
|
|
96
|
-
# Import to Phrase from Bitbucket
|
97
|
-
# Import translations from Bitbucket to Phrase according to the .phraseapp.yml file within the Bitbucket repository.
|
96
|
+
# Import to Phrase Strings from Bitbucket
|
97
|
+
# Import translations from Bitbucket to Phrase Strings according to the .phraseapp.yml file within the Bitbucket repository.
|
98
98
|
# @param id [String] ID
|
99
99
|
# @param bitbucket_sync_import_parameters [BitbucketSyncImportParameters]
|
100
100
|
# @param [Hash] opts the optional parameters
|
@@ -154,7 +154,7 @@ module Phrase
|
|
154
154
|
end
|
155
155
|
|
156
156
|
# List Bitbucket syncs
|
157
|
-
# List all Bitbucket repositories for which synchronisation with Phrase is activated.
|
157
|
+
# List all Bitbucket repositories for which synchronisation with Phrase Strings is activated.
|
158
158
|
# @param [Hash] opts the optional parameters
|
159
159
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
160
160
|
# @option opts [String] :account_id Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts.
|
@@ -165,7 +165,7 @@ module Phrase
|
|
165
165
|
end
|
166
166
|
|
167
167
|
# List Bitbucket syncs
|
168
|
-
# List all Bitbucket repositories for which synchronisation with Phrase is activated.
|
168
|
+
# List all Bitbucket repositories for which synchronisation with Phrase Strings is activated.
|
169
169
|
# @param [Hash] opts the optional parameters
|
170
170
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
171
171
|
# @option opts [String] :account_id Account ID to specify the actual account the project should be created in. Required if the requesting user is a member of multiple accounts.
|
@@ -7,8 +7,8 @@ module Phrase
|
|
7
7
|
def initialize(api_client = ApiClient.default)
|
8
8
|
@api_client = api_client
|
9
9
|
end
|
10
|
-
# Export from Phrase to GitHub
|
11
|
-
# Export translations from Phrase to GitHub according to the .phraseapp.yml file within the GitHub repository.
|
10
|
+
# Export from Phrase Strings to GitHub
|
11
|
+
# Export translations from Phrase Strings to GitHub according to the .phraseapp.yml file within the GitHub repository.
|
12
12
|
# @param github_sync_export_parameters [GithubSyncExportParameters]
|
13
13
|
# @param [Hash] opts the optional parameters
|
14
14
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -18,8 +18,8 @@ module Phrase
|
|
18
18
|
data
|
19
19
|
end
|
20
20
|
|
21
|
-
# Export from Phrase to GitHub
|
22
|
-
# Export translations from Phrase to GitHub according to the .phraseapp.yml file within the GitHub repository.
|
21
|
+
# Export from Phrase Strings to GitHub
|
22
|
+
# Export translations from Phrase Strings to GitHub according to the .phraseapp.yml file within the GitHub repository.
|
23
23
|
# @param github_sync_export_parameters [GithubSyncExportParameters]
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -75,8 +75,8 @@ module Phrase
|
|
75
75
|
return response, status_code, headers
|
76
76
|
end
|
77
77
|
|
78
|
-
# Import to Phrase from GitHub
|
79
|
-
# Import files to Phrase from your connected GitHub repository.
|
78
|
+
# Import to Phrase Strings from GitHub
|
79
|
+
# Import files to Phrase Strings from your connected GitHub repository.
|
80
80
|
# @param github_sync_import_parameters [GithubSyncImportParameters]
|
81
81
|
# @param [Hash] opts the optional parameters
|
82
82
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -86,8 +86,8 @@ module Phrase
|
|
86
86
|
data
|
87
87
|
end
|
88
88
|
|
89
|
-
# Import to Phrase from GitHub
|
90
|
-
# Import files to Phrase from your connected GitHub repository.
|
89
|
+
# Import to Phrase Strings from GitHub
|
90
|
+
# Import files to Phrase Strings from your connected GitHub repository.
|
91
91
|
# @param github_sync_import_parameters [GithubSyncImportParameters]
|
92
92
|
# @param [Hash] opts the optional parameters
|
93
93
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -74,8 +74,8 @@ module Phrase
|
|
74
74
|
return response, status_code, headers
|
75
75
|
end
|
76
76
|
|
77
|
-
# Export from Phrase to GitLab
|
78
|
-
# Export translations from Phrase to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
77
|
+
# Export from Phrase Strings to GitLab
|
78
|
+
# Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
79
79
|
# @param gitlab_sync_id [String] Gitlab Sync ID
|
80
80
|
# @param gitlab_sync_export_parameters [GitlabSyncExportParameters]
|
81
81
|
# @param [Hash] opts the optional parameters
|
@@ -86,8 +86,8 @@ module Phrase
|
|
86
86
|
data
|
87
87
|
end
|
88
88
|
|
89
|
-
# Export from Phrase to GitLab
|
90
|
-
# Export translations from Phrase to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
89
|
+
# Export from Phrase Strings to GitLab
|
90
|
+
# Export translations from Phrase Strings to GitLab according to the .phraseapp.yml file within the GitLab repository.
|
91
91
|
# @param gitlab_sync_id [String] Gitlab Sync ID
|
92
92
|
# @param gitlab_sync_export_parameters [GitlabSyncExportParameters]
|
93
93
|
# @param [Hash] opts the optional parameters
|
@@ -224,7 +224,7 @@ module Phrase
|
|
224
224
|
end
|
225
225
|
|
226
226
|
# Import from GitLab to Phrase
|
227
|
-
# Import translations from GitLab to Phrase according to the .phraseapp.yml file within the GitLab repository.
|
227
|
+
# Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository.
|
228
228
|
# @param gitlab_sync_id [String] Gitlab Sync ID
|
229
229
|
# @param gitlab_sync_import_parameters [GitlabSyncImportParameters]
|
230
230
|
# @param [Hash] opts the optional parameters
|
@@ -236,7 +236,7 @@ module Phrase
|
|
236
236
|
end
|
237
237
|
|
238
238
|
# Import from GitLab to Phrase
|
239
|
-
# Import translations from GitLab to Phrase according to the .phraseapp.yml file within the GitLab repository.
|
239
|
+
# Import translations from GitLab to Phrase Strings according to the .phraseapp.yml file within the GitLab repository.
|
240
240
|
# @param gitlab_sync_id [String] Gitlab Sync ID
|
241
241
|
# @param gitlab_sync_import_parameters [GitlabSyncImportParameters]
|
242
242
|
# @param [Hash] opts the optional parameters
|
@@ -298,7 +298,7 @@ module Phrase
|
|
298
298
|
end
|
299
299
|
|
300
300
|
# List GitLab syncs
|
301
|
-
# List all GitLab Sync Settings for which synchronisation with Phrase and GitLab is activated.
|
301
|
+
# List all GitLab Sync Settings for which synchronisation with Phrase Strings and GitLab is activated.
|
302
302
|
# @param [Hash] opts the optional parameters
|
303
303
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
304
304
|
# @option opts [String] :account_id 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.
|
@@ -309,7 +309,7 @@ module Phrase
|
|
309
309
|
end
|
310
310
|
|
311
311
|
# List GitLab syncs
|
312
|
-
# List all GitLab Sync Settings for which synchronisation with Phrase and GitLab is activated.
|
312
|
+
# List all GitLab Sync Settings for which synchronisation with Phrase Strings and GitLab is activated.
|
313
313
|
# @param [Hash] opts the optional parameters
|
314
314
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
315
315
|
# @option opts [String] :account_id 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.
|
@@ -435,7 +435,7 @@ module Phrase
|
|
435
435
|
# @param [Hash] opts the optional parameters
|
436
436
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
437
437
|
# @option opts [String] :account_id 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.
|
438
|
-
# @option opts [String] :phrase_project_code Code of the related Phrase Project.
|
438
|
+
# @option opts [String] :phrase_project_code Code of the related Phrase Strings Project.
|
439
439
|
# @option opts [Integer] :gitlab_project_id ID of the related GitLab Project.
|
440
440
|
# @option opts [String] :gitlab_branch_name Name of the GitLab Branch.
|
441
441
|
# @return [GitlabSync]
|
@@ -450,7 +450,7 @@ module Phrase
|
|
450
450
|
# @param [Hash] opts the optional parameters
|
451
451
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
452
452
|
# @option opts [String] :account_id 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.
|
453
|
-
# @option opts [String] :phrase_project_code Code of the related Phrase Project.
|
453
|
+
# @option opts [String] :phrase_project_code Code of the related Phrase Strings Project.
|
454
454
|
# @option opts [Integer] :gitlab_project_id ID of the related GitLab Project.
|
455
455
|
# @option opts [String] :gitlab_branch_name Name of the GitLab Branch.
|
456
456
|
# @return [Array<(Response<(GitlabSync)>, Integer, Hash)>] Response<(GitlabSync)> data, response status code and response headers
|
@@ -233,7 +233,7 @@ module Phrase
|
|
233
233
|
# @param [Hash] opts the optional parameters
|
234
234
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
235
235
|
# @option opts [String] :branch specify the branch to use
|
236
|
-
# @option opts [String] :file_format File format name. See the <a href=\"https://
|
236
|
+
# @option opts [String] :file_format File format name. See the <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">format guide</a> for all supported file formats.
|
237
237
|
# @option opts [String] :tags Limit results to keys tagged with a list of comma separated tag names.
|
238
238
|
# @option opts [String] :tag Limit download to tagged keys. This parameter is deprecated. Please use the \"tags\" parameter instead
|
239
239
|
# @option opts [Boolean] :include_empty_translations Indicates whether keys without translations should be included in the output as well.
|
@@ -241,7 +241,7 @@ module Phrase
|
|
241
241
|
# @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
|
242
242
|
# @option opts [Boolean] :keep_notranslate_tags Indicates whether [NOTRANSLATE] tags should be kept.
|
243
243
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
|
244
|
-
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://
|
244
|
+
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">format guide</a> for a list of options available for each format. Specify format options like this: <code>...&format_options[foo]=bar</code>
|
245
245
|
# @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
246
246
|
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>.
|
247
247
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
@@ -261,7 +261,7 @@ module Phrase
|
|
261
261
|
# @param [Hash] opts the optional parameters
|
262
262
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
263
263
|
# @option opts [String] :branch specify the branch to use
|
264
|
-
# @option opts [String] :file_format File format name. See the <a href=\"https://
|
264
|
+
# @option opts [String] :file_format File format name. See the <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">format guide</a> for all supported file formats.
|
265
265
|
# @option opts [String] :tags Limit results to keys tagged with a list of comma separated tag names.
|
266
266
|
# @option opts [String] :tag Limit download to tagged keys. This parameter is deprecated. Please use the \"tags\" parameter instead
|
267
267
|
# @option opts [Boolean] :include_empty_translations Indicates whether keys without translations should be included in the output as well.
|
@@ -269,7 +269,7 @@ module Phrase
|
|
269
269
|
# @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
|
270
270
|
# @option opts [Boolean] :keep_notranslate_tags Indicates whether [NOTRANSLATE] tags should be kept.
|
271
271
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
|
272
|
-
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://
|
272
|
+
# @option opts [Object] :format_options Additional formatting and render options. See the <a href=\"https://support.phrase.com/hc/en-us/articles/5784070560412\">format guide</a> for a list of options available for each format. Specify format options like this: <code>...&format_options[foo]=bar</code>
|
273
273
|
# @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
274
274
|
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with <code>include_unverified_translations</code>.
|
275
275
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
data/lib/phrase/api/teams_api.rb
CHANGED
@@ -113,7 +113,7 @@ module Phrase
|
|
113
113
|
fail ArgumentError, "Missing the required parameter 'id' when calling TeamsApi.team_delete"
|
114
114
|
end
|
115
115
|
# resource path
|
116
|
-
local_var_path = '/accounts/{account_id}/teams/{
|
116
|
+
local_var_path = '/accounts/{account_id}/teams/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
117
117
|
|
118
118
|
# query parameters
|
119
119
|
query_params = opts[:query_params] || {}
|
@@ -183,7 +183,7 @@ module Phrase
|
|
183
183
|
fail ArgumentError, "Missing the required parameter 'id' when calling TeamsApi.team_show"
|
184
184
|
end
|
185
185
|
# resource path
|
186
|
-
local_var_path = '/accounts/{account_id}/teams/{
|
186
|
+
local_var_path = '/accounts/{account_id}/teams/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
187
187
|
|
188
188
|
# query parameters
|
189
189
|
query_params = opts[:query_params] || {}
|
@@ -261,7 +261,7 @@ module Phrase
|
|
261
261
|
fail ArgumentError, "Missing the required parameter 'team_update_parameters' when calling TeamsApi.team_update"
|
262
262
|
end
|
263
263
|
# resource path
|
264
|
-
local_var_path = '/accounts/{account_id}/teams/{
|
264
|
+
local_var_path = '/accounts/{account_id}/teams/{id}'.sub('{' + 'account_id' + '}', CGI.escape(account_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
265
265
|
|
266
266
|
# query parameters
|
267
267
|
query_params = opts[:query_params] || {}
|