phrase 2.7.0 → 2.8.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/README.md +33 -21
- data/docs/BlacklistedKeyCreateParameters.md +1 -1
- data/docs/BlacklistedKeyUpdateParameters.md +1 -1
- data/docs/BlacklistedKeysApi.md +20 -20
- data/docs/DistributionCreateParameters.md +2 -0
- data/docs/DistributionUpdateParameters.md +2 -0
- data/docs/GlossariesApi.md +20 -20
- data/docs/GlossaryTermTranslationsApi.md +12 -12
- data/docs/GlossaryTermsApi.md +20 -20
- data/docs/JobComment.md +29 -0
- data/docs/JobCommentCreateParameters.md +17 -0
- data/docs/JobCommentUpdateParameters.md +17 -0
- data/docs/JobCommentsApi.md +343 -0
- data/docs/Locale.md +2 -0
- data/docs/LocaleCreateParameters.md +2 -0
- data/docs/LocaleDetails.md +2 -0
- data/docs/LocaleUpdateParameters.md +2 -0
- data/docs/ScreenshotsApi.md +12 -6
- data/docs/StyleguideCreateParameters.md +1 -1
- data/docs/StyleguideUpdateParameters.md +1 -1
- data/docs/VersionsHistoryApi.md +1 -1
- data/docs/WebhookDeliveriesApi.md +206 -0
- data/docs/WebhookDelivery.md +29 -0
- data/lib/phrase/api/blacklisted_keys_api.rb +20 -20
- data/lib/phrase/api/glossaries_api.rb +20 -20
- data/lib/phrase/api/glossary_term_translations_api.rb +12 -12
- data/lib/phrase/api/glossary_terms_api.rb +20 -20
- data/lib/phrase/api/job_comments_api.rb +411 -0
- data/lib/phrase/api/screenshots_api.rb +17 -11
- data/lib/phrase/api/versions_history_api.rb +2 -2
- data/lib/phrase/api/webhook_deliveries_api.rb +241 -0
- data/lib/phrase/models/blacklisted_key_create_parameters.rb +1 -1
- data/lib/phrase/models/blacklisted_key_update_parameters.rb +1 -1
- data/lib/phrase/models/distribution_create_parameters.rb +11 -1
- data/lib/phrase/models/distribution_update_parameters.rb +11 -1
- data/lib/phrase/models/job_comment.rb +250 -0
- data/lib/phrase/models/job_comment_create_parameters.rb +195 -0
- data/lib/phrase/models/job_comment_update_parameters.rb +195 -0
- data/lib/phrase/models/locale.rb +10 -1
- data/lib/phrase/models/locale_create_parameters.rb +11 -1
- data/lib/phrase/models/locale_details.rb +10 -1
- data/lib/phrase/models/locale_update_parameters.rb +11 -1
- data/lib/phrase/models/webhook_delivery.rb +248 -0
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +6 -0
- data/spec/api/blacklisted_keys_api_spec.rb +10 -10
- data/spec/api/glossaries_api_spec.rb +10 -10
- data/spec/api/glossary_term_translations_api_spec.rb +6 -6
- data/spec/api/glossary_terms_api_spec.rb +10 -10
- data/spec/api/job_comments_api_spec.rb +101 -0
- data/spec/api/screenshots_api_spec.rb +4 -1
- data/spec/api/versions_history_api_spec.rb +1 -1
- data/spec/api/webhook_deliveries_api_spec.rb +68 -0
- data/spec/models/distribution_create_parameters_spec.rb +6 -0
- data/spec/models/distribution_update_parameters_spec.rb +6 -0
- data/spec/models/job_comment_create_parameters_spec.rb +29 -0
- data/spec/models/job_comment_spec.rb +65 -0
- data/spec/models/job_comment_update_parameters_spec.rb +29 -0
- data/spec/models/locale_create_parameters_spec.rb +6 -0
- data/spec/models/locale_details_spec.rb +6 -0
- data/spec/models/locale_spec.rb +6 -0
- data/spec/models/locale_update_parameters_spec.rb +6 -0
- data/spec/models/webhook_delivery_spec.rb +65 -0
- metadata +221 -197
@@ -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
|
-
# Create a
|
11
|
-
# Create a new rule for
|
10
|
+
# Create a blocked key
|
11
|
+
# Create a new rule for blocking keys.
|
12
12
|
# @param project_id [String] Project ID
|
13
13
|
# @param blacklisted_key_create_parameters [BlacklistedKeyCreateParameters]
|
14
14
|
# @param [Hash] opts the optional parameters
|
@@ -19,8 +19,8 @@ module Phrase
|
|
19
19
|
data
|
20
20
|
end
|
21
21
|
|
22
|
-
# Create a
|
23
|
-
# Create a new rule for
|
22
|
+
# Create a blocked key
|
23
|
+
# Create a new rule for blocking keys.
|
24
24
|
# @param project_id [String] Project ID
|
25
25
|
# @param blacklisted_key_create_parameters [BlacklistedKeyCreateParameters]
|
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
|
-
# Delete a
|
85
|
-
# Delete an existing rule for
|
84
|
+
# Delete a blocked key
|
85
|
+
# Delete an existing rule for blocking keys.
|
86
86
|
# @param project_id [String] Project ID
|
87
87
|
# @param id [String] ID
|
88
88
|
# @param [Hash] opts the optional parameters
|
@@ -93,8 +93,8 @@ module Phrase
|
|
93
93
|
data
|
94
94
|
end
|
95
95
|
|
96
|
-
# Delete a
|
97
|
-
# Delete an existing rule for
|
96
|
+
# Delete a blocked key
|
97
|
+
# Delete an existing rule for blocking keys.
|
98
98
|
# @param project_id [String] Project ID
|
99
99
|
# @param id [String] ID
|
100
100
|
# @param [Hash] opts the optional parameters
|
@@ -151,8 +151,8 @@ module Phrase
|
|
151
151
|
return response, status_code, headers
|
152
152
|
end
|
153
153
|
|
154
|
-
# Get a single
|
155
|
-
# Get details on a single rule for
|
154
|
+
# Get a single blocked key
|
155
|
+
# Get details on a single rule for blocking keys for a given project.
|
156
156
|
# @param project_id [String] Project ID
|
157
157
|
# @param id [String] ID
|
158
158
|
# @param [Hash] opts the optional parameters
|
@@ -163,8 +163,8 @@ module Phrase
|
|
163
163
|
data
|
164
164
|
end
|
165
165
|
|
166
|
-
# Get a single
|
167
|
-
# Get details on a single rule for
|
166
|
+
# Get a single blocked key
|
167
|
+
# Get details on a single rule for blocking keys for a given project.
|
168
168
|
# @param project_id [String] Project ID
|
169
169
|
# @param id [String] ID
|
170
170
|
# @param [Hash] opts the optional parameters
|
@@ -223,8 +223,8 @@ module Phrase
|
|
223
223
|
return response, status_code, headers
|
224
224
|
end
|
225
225
|
|
226
|
-
# Update a
|
227
|
-
# Update an existing rule for
|
226
|
+
# Update a blocked key
|
227
|
+
# Update an existing rule for blocking keys.
|
228
228
|
# @param project_id [String] Project ID
|
229
229
|
# @param id [String] ID
|
230
230
|
# @param blacklisted_key_update_parameters [BlacklistedKeyUpdateParameters]
|
@@ -236,8 +236,8 @@ module Phrase
|
|
236
236
|
data
|
237
237
|
end
|
238
238
|
|
239
|
-
# Update a
|
240
|
-
# Update an existing rule for
|
239
|
+
# Update a blocked key
|
240
|
+
# Update an existing rule for blocking keys.
|
241
241
|
# @param project_id [String] Project ID
|
242
242
|
# @param id [String] ID
|
243
243
|
# @param blacklisted_key_update_parameters [BlacklistedKeyUpdateParameters]
|
@@ -303,8 +303,8 @@ module Phrase
|
|
303
303
|
return response, status_code, headers
|
304
304
|
end
|
305
305
|
|
306
|
-
# List
|
307
|
-
# List all rules for
|
306
|
+
# List blocked keys
|
307
|
+
# List all rules for blocking keys for the given project.
|
308
308
|
# @param project_id [String] Project ID
|
309
309
|
# @param [Hash] opts the optional parameters
|
310
310
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -317,8 +317,8 @@ module Phrase
|
|
317
317
|
data
|
318
318
|
end
|
319
319
|
|
320
|
-
# List
|
321
|
-
# List all rules for
|
320
|
+
# List blocked keys
|
321
|
+
# List all rules for blocking keys for the given project.
|
322
322
|
# @param project_id [String] Project ID
|
323
323
|
# @param [Hash] opts the optional parameters
|
324
324
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -7,8 +7,8 @@ module Phrase
|
|
7
7
|
def initialize(api_client = ApiClient.default)
|
8
8
|
@api_client = api_client
|
9
9
|
end
|
10
|
-
# List
|
11
|
-
# List all glossaries the current user has access to.
|
10
|
+
# List term bases
|
11
|
+
# List all term bases (previously: glossaries) the current user has access to.
|
12
12
|
# @param account_id [String] Account ID
|
13
13
|
# @param [Hash] opts the optional parameters
|
14
14
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -20,8 +20,8 @@ module Phrase
|
|
20
20
|
data
|
21
21
|
end
|
22
22
|
|
23
|
-
# List
|
24
|
-
# List all glossaries the current user has access to.
|
23
|
+
# List term bases
|
24
|
+
# List all term bases (previously: glossaries) the current user has access to.
|
25
25
|
# @param account_id [String] Account ID
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -79,8 +79,8 @@ module Phrase
|
|
79
79
|
return response, status_code, headers
|
80
80
|
end
|
81
81
|
|
82
|
-
# Create a
|
83
|
-
# Create a new glossary.
|
82
|
+
# Create a term base
|
83
|
+
# Create a new term base (previously: glossary).
|
84
84
|
# @param account_id [String] Account ID
|
85
85
|
# @param glossary_create_parameters [GlossaryCreateParameters]
|
86
86
|
# @param [Hash] opts the optional parameters
|
@@ -91,8 +91,8 @@ module Phrase
|
|
91
91
|
data
|
92
92
|
end
|
93
93
|
|
94
|
-
# Create a
|
95
|
-
# Create a new glossary.
|
94
|
+
# Create a term base
|
95
|
+
# Create a new term base (previously: glossary).
|
96
96
|
# @param account_id [String] Account ID
|
97
97
|
# @param glossary_create_parameters [GlossaryCreateParameters]
|
98
98
|
# @param [Hash] opts the optional parameters
|
@@ -153,8 +153,8 @@ module Phrase
|
|
153
153
|
return response, status_code, headers
|
154
154
|
end
|
155
155
|
|
156
|
-
# Delete a
|
157
|
-
# Delete an existing glossary.
|
156
|
+
# Delete a term base
|
157
|
+
# Delete an existing term base (previously: glossary).
|
158
158
|
# @param account_id [String] Account ID
|
159
159
|
# @param id [String] ID
|
160
160
|
# @param [Hash] opts the optional parameters
|
@@ -165,8 +165,8 @@ module Phrase
|
|
165
165
|
data
|
166
166
|
end
|
167
167
|
|
168
|
-
# Delete a
|
169
|
-
# Delete an existing glossary.
|
168
|
+
# Delete a term base
|
169
|
+
# Delete an existing term base (previously: glossary).
|
170
170
|
# @param account_id [String] Account ID
|
171
171
|
# @param id [String] ID
|
172
172
|
# @param [Hash] opts the optional parameters
|
@@ -223,8 +223,8 @@ module Phrase
|
|
223
223
|
return response, status_code, headers
|
224
224
|
end
|
225
225
|
|
226
|
-
# Get a single
|
227
|
-
# Get details on a single glossary.
|
226
|
+
# Get a single term base
|
227
|
+
# Get details on a single term base (previously: glossary).
|
228
228
|
# @param account_id [String] Account ID
|
229
229
|
# @param id [String] ID
|
230
230
|
# @param [Hash] opts the optional parameters
|
@@ -235,8 +235,8 @@ module Phrase
|
|
235
235
|
data
|
236
236
|
end
|
237
237
|
|
238
|
-
# Get a single
|
239
|
-
# Get details on a single glossary.
|
238
|
+
# Get a single term base
|
239
|
+
# Get details on a single term base (previously: glossary).
|
240
240
|
# @param account_id [String] Account ID
|
241
241
|
# @param id [String] ID
|
242
242
|
# @param [Hash] opts the optional parameters
|
@@ -295,8 +295,8 @@ module Phrase
|
|
295
295
|
return response, status_code, headers
|
296
296
|
end
|
297
297
|
|
298
|
-
# Update a
|
299
|
-
# Update an existing glossary.
|
298
|
+
# Update a term base
|
299
|
+
# Update an existing term base (previously: glossary).
|
300
300
|
# @param account_id [String] Account ID
|
301
301
|
# @param id [String] ID
|
302
302
|
# @param glossary_update_parameters [GlossaryUpdateParameters]
|
@@ -308,8 +308,8 @@ module Phrase
|
|
308
308
|
data
|
309
309
|
end
|
310
310
|
|
311
|
-
# Update a
|
312
|
-
# Update an existing glossary.
|
311
|
+
# Update a term base
|
312
|
+
# Update an existing term base (previously: glossary).
|
313
313
|
# @param account_id [String] Account ID
|
314
314
|
# @param id [String] ID
|
315
315
|
# @param glossary_update_parameters [GlossaryUpdateParameters]
|
@@ -7,8 +7,8 @@ module Phrase
|
|
7
7
|
def initialize(api_client = ApiClient.default)
|
8
8
|
@api_client = api_client
|
9
9
|
end
|
10
|
-
# Create a
|
11
|
-
# Create a new
|
10
|
+
# Create a translation for a term
|
11
|
+
# Create a new translation for a term in a term base (previously: glossary).
|
12
12
|
# @param account_id [String] Account ID
|
13
13
|
# @param glossary_id [String] Glossary ID
|
14
14
|
# @param term_id [String] Term ID
|
@@ -21,8 +21,8 @@ module Phrase
|
|
21
21
|
data
|
22
22
|
end
|
23
23
|
|
24
|
-
# Create a
|
25
|
-
# Create a new
|
24
|
+
# Create a translation for a term
|
25
|
+
# Create a new translation for a term in a term base (previously: glossary).
|
26
26
|
# @param account_id [String] Account ID
|
27
27
|
# @param glossary_id [String] Glossary ID
|
28
28
|
# @param term_id [String] Term ID
|
@@ -93,8 +93,8 @@ module Phrase
|
|
93
93
|
return response, status_code, headers
|
94
94
|
end
|
95
95
|
|
96
|
-
# Delete a
|
97
|
-
# Delete an existing
|
96
|
+
# Delete a translation for a term
|
97
|
+
# Delete an existing translation of a term in a term base (previously: glossary).
|
98
98
|
# @param account_id [String] Account ID
|
99
99
|
# @param glossary_id [String] Glossary ID
|
100
100
|
# @param term_id [String] Term ID
|
@@ -107,8 +107,8 @@ module Phrase
|
|
107
107
|
data
|
108
108
|
end
|
109
109
|
|
110
|
-
# Delete a
|
111
|
-
# Delete an existing
|
110
|
+
# Delete a translation for a term
|
111
|
+
# Delete an existing translation of a term in a term base (previously: glossary).
|
112
112
|
# @param account_id [String] Account ID
|
113
113
|
# @param glossary_id [String] Glossary ID
|
114
114
|
# @param term_id [String] Term ID
|
@@ -175,8 +175,8 @@ module Phrase
|
|
175
175
|
return response, status_code, headers
|
176
176
|
end
|
177
177
|
|
178
|
-
# Update a
|
179
|
-
# Update an existing
|
178
|
+
# Update a translation for a term
|
179
|
+
# Update an existing translation for a term in a term base (previously: glossary).
|
180
180
|
# @param account_id [String] Account ID
|
181
181
|
# @param glossary_id [String] Glossary ID
|
182
182
|
# @param term_id [String] Term ID
|
@@ -190,8 +190,8 @@ module Phrase
|
|
190
190
|
data
|
191
191
|
end
|
192
192
|
|
193
|
-
# Update a
|
194
|
-
# Update an existing
|
193
|
+
# Update a translation for a term
|
194
|
+
# Update an existing translation for a term in a term base (previously: glossary).
|
195
195
|
# @param account_id [String] Account ID
|
196
196
|
# @param glossary_id [String] Glossary ID
|
197
197
|
# @param term_id [String] Term ID
|
@@ -7,8 +7,8 @@ module Phrase
|
|
7
7
|
def initialize(api_client = ApiClient.default)
|
8
8
|
@api_client = api_client
|
9
9
|
end
|
10
|
-
# Create a
|
11
|
-
# Create a new
|
10
|
+
# Create a term
|
11
|
+
# Create a new term in a term base (previously: glossary).
|
12
12
|
# @param account_id [String] Account ID
|
13
13
|
# @param glossary_id [String] Glossary ID
|
14
14
|
# @param glossary_term_create_parameters [GlossaryTermCreateParameters]
|
@@ -20,8 +20,8 @@ module Phrase
|
|
20
20
|
data
|
21
21
|
end
|
22
22
|
|
23
|
-
# Create a
|
24
|
-
# Create a new
|
23
|
+
# Create a term
|
24
|
+
# Create a new term in a term base (previously: glossary).
|
25
25
|
# @param account_id [String] Account ID
|
26
26
|
# @param glossary_id [String] Glossary ID
|
27
27
|
# @param glossary_term_create_parameters [GlossaryTermCreateParameters]
|
@@ -87,8 +87,8 @@ module Phrase
|
|
87
87
|
return response, status_code, headers
|
88
88
|
end
|
89
89
|
|
90
|
-
# Delete a
|
91
|
-
# Delete an existing
|
90
|
+
# Delete a term
|
91
|
+
# Delete an existing term in a term base (previously: glossary).
|
92
92
|
# @param account_id [String] Account ID
|
93
93
|
# @param glossary_id [String] Glossary ID
|
94
94
|
# @param id [String] ID
|
@@ -100,8 +100,8 @@ module Phrase
|
|
100
100
|
data
|
101
101
|
end
|
102
102
|
|
103
|
-
# Delete a
|
104
|
-
# Delete an existing
|
103
|
+
# Delete a term
|
104
|
+
# Delete an existing term in a term base (previously: glossary).
|
105
105
|
# @param account_id [String] Account ID
|
106
106
|
# @param glossary_id [String] Glossary ID
|
107
107
|
# @param id [String] ID
|
@@ -163,8 +163,8 @@ module Phrase
|
|
163
163
|
return response, status_code, headers
|
164
164
|
end
|
165
165
|
|
166
|
-
# Get a single
|
167
|
-
# Get details
|
166
|
+
# Get a single term
|
167
|
+
# Get details for a single term in the term base (previously: glossary).
|
168
168
|
# @param account_id [String] Account ID
|
169
169
|
# @param glossary_id [String] Glossary ID
|
170
170
|
# @param id [String] ID
|
@@ -176,8 +176,8 @@ module Phrase
|
|
176
176
|
data
|
177
177
|
end
|
178
178
|
|
179
|
-
# Get a single
|
180
|
-
# Get details
|
179
|
+
# Get a single term
|
180
|
+
# Get details for a single term in the term base (previously: glossary).
|
181
181
|
# @param account_id [String] Account ID
|
182
182
|
# @param glossary_id [String] Glossary ID
|
183
183
|
# @param id [String] ID
|
@@ -241,8 +241,8 @@ module Phrase
|
|
241
241
|
return response, status_code, headers
|
242
242
|
end
|
243
243
|
|
244
|
-
# Update a
|
245
|
-
# Update an existing
|
244
|
+
# Update a term
|
245
|
+
# Update an existing term in a term base (previously: glossary).
|
246
246
|
# @param account_id [String] Account ID
|
247
247
|
# @param glossary_id [String] Glossary ID
|
248
248
|
# @param id [String] ID
|
@@ -255,8 +255,8 @@ module Phrase
|
|
255
255
|
data
|
256
256
|
end
|
257
257
|
|
258
|
-
# Update a
|
259
|
-
# Update an existing
|
258
|
+
# Update a term
|
259
|
+
# Update an existing term in a term base (previously: glossary).
|
260
260
|
# @param account_id [String] Account ID
|
261
261
|
# @param glossary_id [String] Glossary ID
|
262
262
|
# @param id [String] ID
|
@@ -327,8 +327,8 @@ module Phrase
|
|
327
327
|
return response, status_code, headers
|
328
328
|
end
|
329
329
|
|
330
|
-
# List
|
331
|
-
# List all glossary
|
330
|
+
# List terms
|
331
|
+
# List all terms in term bases (previously: glossary) that the current user has access to.
|
332
332
|
# @param account_id [String] Account ID
|
333
333
|
# @param glossary_id [String] Glossary ID
|
334
334
|
# @param [Hash] opts the optional parameters
|
@@ -341,8 +341,8 @@ module Phrase
|
|
341
341
|
data
|
342
342
|
end
|
343
343
|
|
344
|
-
# List
|
345
|
-
# List all glossary
|
344
|
+
# List terms
|
345
|
+
# List all terms in term bases (previously: glossary) that the current user has access to.
|
346
346
|
# @param account_id [String] Account ID
|
347
347
|
# @param glossary_id [String] Glossary ID
|
348
348
|
# @param [Hash] opts the optional parameters
|