phrase 2.8.7 → 2.10.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 +19 -3
- data/docs/OrganizationJobTemplate.md +25 -0
- data/docs/OrganizationJobTemplateCreateParameters.md +19 -0
- data/docs/OrganizationJobTemplateDetails.md +31 -0
- data/docs/OrganizationJobTemplateLocaleUpdateParameters.md +27 -0
- data/docs/OrganizationJobTemplateLocalesApi.md +341 -0
- data/docs/OrganizationJobTemplateLocalesCreateParameters.md +27 -0
- data/docs/OrganizationJobTemplateUpdateParameters.md +19 -0
- data/docs/OrganizationJobTemplatesApi.md +331 -0
- data/docs/Release.md +2 -0
- data/docs/ReleaseCreateParameters.md +2 -0
- data/docs/ReleasePreview.md +2 -0
- data/lib/phrase/api/organization_job_template_locales_api.rb +408 -0
- data/lib/phrase/api/organization_job_templates_api.rb +378 -0
- data/lib/phrase/models/organization_job_template.rb +230 -0
- data/lib/phrase/models/organization_job_template_create_parameters.rb +210 -0
- data/lib/phrase/models/organization_job_template_details.rb +267 -0
- data/lib/phrase/models/organization_job_template_locale_update_parameters.rb +253 -0
- data/lib/phrase/models/organization_job_template_locales_create_parameters.rb +263 -0
- data/lib/phrase/models/organization_job_template_update_parameters.rb +210 -0
- data/lib/phrase/models/release.rb +12 -1
- data/lib/phrase/models/release_create_parameters.rb +13 -1
- data/lib/phrase/models/release_preview.rb +12 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +8 -0
- data/spec/api/organization_job_template_locales_api_spec.rb +100 -0
- data/spec/api/organization_job_templates_api_spec.rb +95 -0
- data/spec/models/organization_job_template_create_parameters_spec.rb +35 -0
- data/spec/models/organization_job_template_details_spec.rb +71 -0
- data/spec/models/organization_job_template_locale_update_parameters_spec.rb +59 -0
- data/spec/models/organization_job_template_locales_create_parameters_spec.rb +59 -0
- data/spec/models/organization_job_template_spec.rb +53 -0
- data/spec/models/organization_job_template_update_parameters_spec.rb +35 -0
- data/spec/models/release_create_parameters_spec.rb +6 -0
- data/spec/models/release_preview_spec.rb +6 -0
- data/spec/models/release_spec.rb +6 -0
- metadata +240 -208
@@ -0,0 +1,331 @@
|
|
1
|
+
# Phrase::OrganizationJobTemplatesApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.phrase.com/v2*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**organization_job_template_create**](OrganizationJobTemplatesApi.md#organization_job_template_create) | **POST** /accounts/{account_id}/job_templates | Create an organization job template
|
8
|
+
[**organization_job_template_delete**](OrganizationJobTemplatesApi.md#organization_job_template_delete) | **DELETE** /accounts/{account_id}/job_templates/{id} | Delete an organization job template
|
9
|
+
[**organization_job_template_update**](OrganizationJobTemplatesApi.md#organization_job_template_update) | **PATCH** /accounts/{account_id}/job_templates/{id} | Update an organization job template
|
10
|
+
[**organization_job_templates_list**](OrganizationJobTemplatesApi.md#organization_job_templates_list) | **GET** /accounts/{account_id}/job_templates | List organization job templates
|
11
|
+
[**organization_job_templates_show**](OrganizationJobTemplatesApi.md#organization_job_templates_show) | **GET** /accounts/{account_id}/job_templates/{id} | Get a single organization job template
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
## organization_job_template_create
|
16
|
+
|
17
|
+
> OrganizationJobTemplateDetails organization_job_template_create(account_id, organization_job_template_create_parameters, opts)
|
18
|
+
|
19
|
+
Create an organization job template
|
20
|
+
|
21
|
+
Create a new organization job template.
|
22
|
+
|
23
|
+
### Example
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
# load the gem
|
27
|
+
require 'phrase'
|
28
|
+
# setup authorization
|
29
|
+
Phrase.configure do |config|
|
30
|
+
# Configure HTTP basic authorization: Basic
|
31
|
+
config.username = 'YOUR USERNAME'
|
32
|
+
config.password = 'YOUR PASSWORD'
|
33
|
+
|
34
|
+
# Configure API key authorization: Token
|
35
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
36
|
+
config.api_key_prefix['Authorization'] = 'token'
|
37
|
+
end
|
38
|
+
|
39
|
+
api_instance = Phrase::OrganizationJobTemplatesApi.new
|
40
|
+
account_id = 'account_id_example' # String | Account ID
|
41
|
+
organization_job_template_create_parameters = Phrase::OrganizationJobTemplateCreateParameters.new # OrganizationJobTemplateCreateParameters |
|
42
|
+
opts = {
|
43
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
44
|
+
}
|
45
|
+
|
46
|
+
begin
|
47
|
+
#Create an organization job template
|
48
|
+
result = api_instance.organization_job_template_create(account_id, organization_job_template_create_parameters, opts)
|
49
|
+
pp result
|
50
|
+
rescue Phrase::ApiError => e
|
51
|
+
puts "Exception when calling OrganizationJobTemplatesApi->organization_job_template_create: #{e}"
|
52
|
+
end
|
53
|
+
```
|
54
|
+
|
55
|
+
### Parameters
|
56
|
+
|
57
|
+
|
58
|
+
Name | Type | Description | Notes
|
59
|
+
------------- | ------------- | ------------- | -------------
|
60
|
+
**account_id** | **String**| Account ID |
|
61
|
+
**organization_job_template_create_parameters** | [**OrganizationJobTemplateCreateParameters**](OrganizationJobTemplateCreateParameters.md)| |
|
62
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
63
|
+
|
64
|
+
### Return type
|
65
|
+
|
66
|
+
Response<([**OrganizationJobTemplateDetails**](OrganizationJobTemplateDetails.md))>
|
67
|
+
|
68
|
+
### Authorization
|
69
|
+
|
70
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
71
|
+
|
72
|
+
### HTTP request headers
|
73
|
+
|
74
|
+
- **Content-Type**: application/json
|
75
|
+
- **Accept**: application/json
|
76
|
+
|
77
|
+
|
78
|
+
## organization_job_template_delete
|
79
|
+
|
80
|
+
> organization_job_template_delete(account_id, id, opts)
|
81
|
+
|
82
|
+
Delete an organization job template
|
83
|
+
|
84
|
+
Delete an existing organization job template.
|
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::OrganizationJobTemplatesApi.new
|
103
|
+
account_id = 'account_id_example' # String | Account ID
|
104
|
+
id = 'id_example' # String | ID
|
105
|
+
opts = {
|
106
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
107
|
+
}
|
108
|
+
|
109
|
+
begin
|
110
|
+
#Delete an organization job template
|
111
|
+
api_instance.organization_job_template_delete(account_id, id, opts)
|
112
|
+
rescue Phrase::ApiError => e
|
113
|
+
puts "Exception when calling OrganizationJobTemplatesApi->organization_job_template_delete: #{e}"
|
114
|
+
end
|
115
|
+
```
|
116
|
+
|
117
|
+
### Parameters
|
118
|
+
|
119
|
+
|
120
|
+
Name | Type | Description | Notes
|
121
|
+
------------- | ------------- | ------------- | -------------
|
122
|
+
**account_id** | **String**| Account ID |
|
123
|
+
**id** | **String**| ID |
|
124
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
125
|
+
|
126
|
+
### Return type
|
127
|
+
|
128
|
+
Response<(nil (empty response body))>
|
129
|
+
|
130
|
+
### Authorization
|
131
|
+
|
132
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
133
|
+
|
134
|
+
### HTTP request headers
|
135
|
+
|
136
|
+
- **Content-Type**: Not defined
|
137
|
+
- **Accept**: Not defined
|
138
|
+
|
139
|
+
|
140
|
+
## organization_job_template_update
|
141
|
+
|
142
|
+
> OrganizationJobTemplateDetails organization_job_template_update(account_id, id, organization_job_template_update_parameters, opts)
|
143
|
+
|
144
|
+
Update an organization job template
|
145
|
+
|
146
|
+
Update an existing organization job template.
|
147
|
+
|
148
|
+
### Example
|
149
|
+
|
150
|
+
```ruby
|
151
|
+
# load the gem
|
152
|
+
require 'phrase'
|
153
|
+
# setup authorization
|
154
|
+
Phrase.configure do |config|
|
155
|
+
# Configure HTTP basic authorization: Basic
|
156
|
+
config.username = 'YOUR USERNAME'
|
157
|
+
config.password = 'YOUR PASSWORD'
|
158
|
+
|
159
|
+
# Configure API key authorization: Token
|
160
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
161
|
+
config.api_key_prefix['Authorization'] = 'token'
|
162
|
+
end
|
163
|
+
|
164
|
+
api_instance = Phrase::OrganizationJobTemplatesApi.new
|
165
|
+
account_id = 'account_id_example' # String | Account ID
|
166
|
+
id = 'id_example' # String | ID
|
167
|
+
organization_job_template_update_parameters = Phrase::OrganizationJobTemplateUpdateParameters.new # OrganizationJobTemplateUpdateParameters |
|
168
|
+
opts = {
|
169
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
170
|
+
}
|
171
|
+
|
172
|
+
begin
|
173
|
+
#Update an organization job template
|
174
|
+
result = api_instance.organization_job_template_update(account_id, id, organization_job_template_update_parameters, opts)
|
175
|
+
pp result
|
176
|
+
rescue Phrase::ApiError => e
|
177
|
+
puts "Exception when calling OrganizationJobTemplatesApi->organization_job_template_update: #{e}"
|
178
|
+
end
|
179
|
+
```
|
180
|
+
|
181
|
+
### Parameters
|
182
|
+
|
183
|
+
|
184
|
+
Name | Type | Description | Notes
|
185
|
+
------------- | ------------- | ------------- | -------------
|
186
|
+
**account_id** | **String**| Account ID |
|
187
|
+
**id** | **String**| ID |
|
188
|
+
**organization_job_template_update_parameters** | [**OrganizationJobTemplateUpdateParameters**](OrganizationJobTemplateUpdateParameters.md)| |
|
189
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
190
|
+
|
191
|
+
### Return type
|
192
|
+
|
193
|
+
Response<([**OrganizationJobTemplateDetails**](OrganizationJobTemplateDetails.md))>
|
194
|
+
|
195
|
+
### Authorization
|
196
|
+
|
197
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
198
|
+
|
199
|
+
### HTTP request headers
|
200
|
+
|
201
|
+
- **Content-Type**: application/json
|
202
|
+
- **Accept**: application/json
|
203
|
+
|
204
|
+
|
205
|
+
## organization_job_templates_list
|
206
|
+
|
207
|
+
> Array<OrganizationJobTemplate> organization_job_templates_list(account_id, opts)
|
208
|
+
|
209
|
+
List organization job templates
|
210
|
+
|
211
|
+
List all job templates for the given account.
|
212
|
+
|
213
|
+
### Example
|
214
|
+
|
215
|
+
```ruby
|
216
|
+
# load the gem
|
217
|
+
require 'phrase'
|
218
|
+
# setup authorization
|
219
|
+
Phrase.configure do |config|
|
220
|
+
# Configure HTTP basic authorization: Basic
|
221
|
+
config.username = 'YOUR USERNAME'
|
222
|
+
config.password = 'YOUR PASSWORD'
|
223
|
+
|
224
|
+
# Configure API key authorization: Token
|
225
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
226
|
+
config.api_key_prefix['Authorization'] = 'token'
|
227
|
+
end
|
228
|
+
|
229
|
+
api_instance = Phrase::OrganizationJobTemplatesApi.new
|
230
|
+
account_id = 'account_id_example' # String | Account ID
|
231
|
+
opts = {
|
232
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
233
|
+
page: 1, # Integer | Page number
|
234
|
+
per_page: 25 # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
235
|
+
}
|
236
|
+
|
237
|
+
begin
|
238
|
+
#List organization job templates
|
239
|
+
result = api_instance.organization_job_templates_list(account_id, opts)
|
240
|
+
pp result
|
241
|
+
rescue Phrase::ApiError => e
|
242
|
+
puts "Exception when calling OrganizationJobTemplatesApi->organization_job_templates_list: #{e}"
|
243
|
+
end
|
244
|
+
```
|
245
|
+
|
246
|
+
### Parameters
|
247
|
+
|
248
|
+
|
249
|
+
Name | Type | Description | Notes
|
250
|
+
------------- | ------------- | ------------- | -------------
|
251
|
+
**account_id** | **String**| Account ID |
|
252
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
253
|
+
**page** | **Integer**| Page number | [optional]
|
254
|
+
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
|
255
|
+
|
256
|
+
### Return type
|
257
|
+
|
258
|
+
Response<([**Array<OrganizationJobTemplate>**](OrganizationJobTemplate.md))>
|
259
|
+
|
260
|
+
### Authorization
|
261
|
+
|
262
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
263
|
+
|
264
|
+
### HTTP request headers
|
265
|
+
|
266
|
+
- **Content-Type**: Not defined
|
267
|
+
- **Accept**: application/json
|
268
|
+
|
269
|
+
|
270
|
+
## organization_job_templates_show
|
271
|
+
|
272
|
+
> OrganizationJobTemplateDetails organization_job_templates_show(account_id, id, opts)
|
273
|
+
|
274
|
+
Get a single organization job template
|
275
|
+
|
276
|
+
Get details on a single organization job template for a given account.
|
277
|
+
|
278
|
+
### Example
|
279
|
+
|
280
|
+
```ruby
|
281
|
+
# load the gem
|
282
|
+
require 'phrase'
|
283
|
+
# setup authorization
|
284
|
+
Phrase.configure do |config|
|
285
|
+
# Configure HTTP basic authorization: Basic
|
286
|
+
config.username = 'YOUR USERNAME'
|
287
|
+
config.password = 'YOUR PASSWORD'
|
288
|
+
|
289
|
+
# Configure API key authorization: Token
|
290
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
291
|
+
config.api_key_prefix['Authorization'] = 'token'
|
292
|
+
end
|
293
|
+
|
294
|
+
api_instance = Phrase::OrganizationJobTemplatesApi.new
|
295
|
+
account_id = 'account_id_example' # String | Account ID
|
296
|
+
id = 'id_example' # String | ID
|
297
|
+
opts = {
|
298
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
299
|
+
}
|
300
|
+
|
301
|
+
begin
|
302
|
+
#Get a single organization job template
|
303
|
+
result = api_instance.organization_job_templates_show(account_id, id, opts)
|
304
|
+
pp result
|
305
|
+
rescue Phrase::ApiError => e
|
306
|
+
puts "Exception when calling OrganizationJobTemplatesApi->organization_job_templates_show: #{e}"
|
307
|
+
end
|
308
|
+
```
|
309
|
+
|
310
|
+
### Parameters
|
311
|
+
|
312
|
+
|
313
|
+
Name | Type | Description | Notes
|
314
|
+
------------- | ------------- | ------------- | -------------
|
315
|
+
**account_id** | **String**| Account ID |
|
316
|
+
**id** | **String**| ID |
|
317
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
318
|
+
|
319
|
+
### Return type
|
320
|
+
|
321
|
+
Response<([**OrganizationJobTemplateDetails**](OrganizationJobTemplateDetails.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
|
+
|
data/docs/Release.md
CHANGED
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
12
12
|
**platforms** | **Array<String>** | | [optional]
|
13
13
|
**environments** | **Array<String>** | | [optional]
|
14
14
|
**locales** | [**Array<LocalePreview>**](LocalePreview.md) | | [optional]
|
15
|
+
**tags** | **Array<String>** | | [optional]
|
15
16
|
**project** | [**ProjectShort**](ProjectShort.md) | | [optional]
|
16
17
|
**created_at** | **DateTime** | | [optional]
|
17
18
|
**updated_at** | **DateTime** | | [optional]
|
@@ -29,6 +30,7 @@ instance = Phrase::Release.new(id: null,
|
|
29
30
|
platforms: null,
|
30
31
|
environments: null,
|
31
32
|
locales: null,
|
33
|
+
tags: null,
|
32
34
|
project: null,
|
33
35
|
created_at: null,
|
34
36
|
updated_at: null)
|
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**description** | **String** | Description of the release | [optional]
|
8
8
|
**platforms** | **Array<String>** | List of platforms the release should support. | [optional]
|
9
9
|
**locale_ids** | **Array<String>** | List of locale ids that will be included in the release. If empty, distribution locales will be used | [optional]
|
10
|
+
**tags** | **Array<String>** | Only include tagged keys in the release. For a key to be included it must be tagged with all tags provided | [optional]
|
10
11
|
**branch** | **String** | Branch used for release | [optional]
|
11
12
|
|
12
13
|
## Code Sample
|
@@ -17,6 +18,7 @@ require 'Phrase'
|
|
17
18
|
instance = Phrase::ReleaseCreateParameters.new(description: My first Release,
|
18
19
|
platforms: ["android","ios"],
|
19
20
|
locale_ids: ["abcd1234cdef1234abcd1234cdef1234","fff565db236400772368235db2c6117e"],
|
21
|
+
tags: ["android","feature1"],
|
20
22
|
branch: my-feature-branch)
|
21
23
|
```
|
22
24
|
|
data/docs/ReleasePreview.md
CHANGED
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
12
12
|
**platforms** | **Array<String>** | | [optional]
|
13
13
|
**environments** | **Array<String>** | | [optional]
|
14
14
|
**locale_codes** | **Array<String>** | | [optional]
|
15
|
+
**tags** | **Array<String>** | | [optional]
|
15
16
|
**project** | [**ProjectShort**](ProjectShort.md) | | [optional]
|
16
17
|
**created_at** | **DateTime** | | [optional]
|
17
18
|
**updated_at** | **DateTime** | | [optional]
|
@@ -29,6 +30,7 @@ instance = Phrase::ReleasePreview.new(id: null,
|
|
29
30
|
platforms: null,
|
30
31
|
environments: null,
|
31
32
|
locale_codes: null,
|
33
|
+
tags: null,
|
32
34
|
project: null,
|
33
35
|
created_at: null,
|
34
36
|
updated_at: null)
|