phrase 2.8.3 → 2.9.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/LICENSE +1 -1
- data/README.md +31 -12
- data/docs/BitbucketSyncApi.md +2 -2
- data/docs/BranchesApi.md +3 -3
- data/docs/GitHubSyncApi.md +2 -2
- data/docs/GitLabSyncApi.md +2 -2
- data/docs/JobCommentsApi.md +6 -6
- data/docs/JobLocale.md +3 -1
- data/docs/JobLocaleUpdateParameters.md +5 -1
- data/docs/JobLocalesCreateParameters.md +6 -2
- data/docs/JobTemplateDetails.md +35 -0
- data/docs/JobTemplateDetails1.md +21 -0
- data/docs/JobTemplateLocaleUpdateParameters.md +6 -2
- data/docs/{JobTemplateLocale.md → JobTemplateLocales.md} +6 -4
- data/docs/JobTemplateLocalesApi.md +8 -8
- data/docs/JobTemplateLocalesCreateParameters.md +5 -1
- data/docs/JobTemplatesApi.md +41 -41
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/LocaleTeamPreview.md +21 -0
- data/docs/{JobTemplateUserPreview.md → LocaleUserPreview.md} +2 -2
- data/docs/LocalesApi.md +8 -4
- data/docs/NotificationGroupDetail.md +1 -1
- data/docs/NotificationGroupsApi.md +4 -4
- data/docs/NotificationsApi.md +4 -4
- 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/Project.md +2 -0
- data/docs/ProjectCreateParameters.md +5 -1
- data/docs/ProjectDetails.md +2 -0
- data/docs/ProjectUpdateParameters.md +5 -1
- data/docs/SearchApi.md +1 -1
- data/docs/TranslationsApi.md +23 -19
- data/docs/TranslationsExcludeParameters.md +1 -1
- data/docs/TranslationsIncludeParameters.md +1 -1
- data/docs/TranslationsReviewParameters.md +1 -1
- data/docs/TranslationsSearchParameters.md +1 -1
- data/docs/TranslationsUnverifyParameters.md +1 -1
- data/docs/TranslationsVerifyParameters.md +1 -1
- data/docs/UploadsApi.md +3 -3
- data/lib/phrase/api/bitbucket_sync_api.rb +4 -4
- data/lib/phrase/api/branches_api.rb +6 -6
- data/lib/phrase/api/git_hub_sync_api.rb +4 -4
- data/lib/phrase/api/git_lab_sync_api.rb +4 -4
- data/lib/phrase/api/job_comments_api.rb +9 -9
- data/lib/phrase/api/job_template_locales_api.rb +12 -12
- data/lib/phrase/api/job_templates_api.rb +72 -72
- data/lib/phrase/api/locales_api.rb +10 -4
- data/lib/phrase/api/notification_groups_api.rb +6 -6
- data/lib/phrase/api/notifications_api.rb +6 -6
- 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/api/search_api.rb +2 -2
- data/lib/phrase/api/translations_api.rb +20 -14
- data/lib/phrase/api/uploads_api.rb +2 -2
- data/lib/phrase/models/job_locale.rb +13 -2
- data/lib/phrase/models/job_locale_update_parameters.rb +28 -4
- data/lib/phrase/models/job_locales_create_parameters.rb +33 -4
- data/lib/phrase/models/job_template_details.rb +285 -0
- data/lib/phrase/models/job_template_details1.rb +214 -0
- data/lib/phrase/models/job_template_locale_update_parameters.rb +28 -9
- data/lib/phrase/models/{job_template_locale.rb → job_template_locales.rb} +18 -7
- data/lib/phrase/models/job_template_locales_create_parameters.rb +28 -4
- data/lib/phrase/models/keys_search_parameters.rb +1 -1
- data/lib/phrase/models/locale_team_preview.rb +212 -0
- data/lib/phrase/models/{job_template_user_preview.rb → locale_user_preview.rb} +3 -3
- data/lib/phrase/models/notification_group_detail.rb +1 -1
- 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/project.rb +10 -1
- data/lib/phrase/models/project_create_parameters.rb +22 -2
- data/lib/phrase/models/project_details.rb +10 -1
- data/lib/phrase/models/project_update_parameters.rb +22 -2
- data/lib/phrase/models/translations_exclude_parameters.rb +1 -1
- data/lib/phrase/models/translations_include_parameters.rb +1 -1
- data/lib/phrase/models/translations_review_parameters.rb +1 -1
- data/lib/phrase/models/translations_search_parameters.rb +1 -1
- data/lib/phrase/models/translations_unverify_parameters.rb +1 -1
- data/lib/phrase/models/translations_verify_parameters.rb +1 -1
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +13 -2
- data/spec/api/bitbucket_sync_api_spec.rb +2 -2
- data/spec/api/branches_api_spec.rb +3 -3
- data/spec/api/git_hub_sync_api_spec.rb +2 -2
- data/spec/api/git_lab_sync_api_spec.rb +2 -2
- data/spec/api/job_comments_api_spec.rb +3 -3
- data/spec/api/job_template_locales_api_spec.rb +4 -4
- data/spec/api/job_templates_api_spec.rb +17 -17
- data/spec/api/locales_api_spec.rb +4 -2
- data/spec/api/notification_groups_api_spec.rb +2 -2
- data/spec/api/notifications_api_spec.rb +2 -2
- 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/api/search_api_spec.rb +1 -1
- data/spec/api/translations_api_spec.rb +9 -7
- data/spec/api/uploads_api_spec.rb +1 -1
- data/spec/models/job_locale_spec.rb +6 -0
- data/spec/models/job_locale_update_parameters_spec.rb +12 -0
- data/spec/models/job_locales_create_parameters_spec.rb +12 -0
- data/spec/models/job_template_details1_spec.rb +41 -0
- data/spec/models/job_template_details_spec.rb +83 -0
- data/spec/models/job_template_locale_update_parameters_spec.rb +12 -0
- data/spec/models/job_template_locales_create_parameters_spec.rb +12 -0
- data/spec/models/{job_template_locale_spec.rb → job_template_locales_spec.rb} +12 -6
- data/spec/models/locale_team_preview_spec.rb +41 -0
- data/spec/models/{job_template_user_preview_spec.rb → locale_user_preview_spec.rb} +6 -6
- 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/project_create_parameters_spec.rb +12 -0
- data/spec/models/project_details_spec.rb +6 -0
- data/spec/models/project_spec.rb +6 -0
- data/spec/models/project_update_parameters_spec.rb +12 -0
- metadata +269 -225
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
# Phrase::OrganizationJobTemplateLocalesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.phrase.com/v2*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**organization_job_template_locale_delete**](OrganizationJobTemplateLocalesApi.md#organization_job_template_locale_delete) | **DELETE** /accounts/{account_id}/job_templates/{job_template_id}/locales/{job_template_locale_id} | Delete an organization job template locale
|
|
8
|
+
[**organization_job_template_locale_show**](OrganizationJobTemplateLocalesApi.md#organization_job_template_locale_show) | **GET** /accounts/{account_id}/job_templates/{job_template_id}/locales/{job_template_locale_id} | Get a single organization job template locale
|
|
9
|
+
[**organization_job_template_locale_update**](OrganizationJobTemplateLocalesApi.md#organization_job_template_locale_update) | **PATCH** /accounts/{account_id}/job_templates/{job_template_id}/locales/{job_template_locale_id} | Update an organization job template locale
|
|
10
|
+
[**organization_job_template_locales_create**](OrganizationJobTemplateLocalesApi.md#organization_job_template_locales_create) | **POST** /accounts/{account_id}/job_templates/{job_template_id}/locales | Create an organization job template locale
|
|
11
|
+
[**organization_job_template_locales_list**](OrganizationJobTemplateLocalesApi.md#organization_job_template_locales_list) | **GET** /accounts/{account_id}/job_templates/{job_template_id}/locales | List organization job template locales
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## organization_job_template_locale_delete
|
|
16
|
+
|
|
17
|
+
> organization_job_template_locale_delete(account_id, job_template_id, job_template_locale_id, opts)
|
|
18
|
+
|
|
19
|
+
Delete an organization job template locale
|
|
20
|
+
|
|
21
|
+
Delete an existing organization job template locale.
|
|
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::OrganizationJobTemplateLocalesApi.new
|
|
40
|
+
account_id = 'account_id_example' # String | Account ID
|
|
41
|
+
job_template_id = 'job_template_id_example' # String | Job Template ID
|
|
42
|
+
job_template_locale_id = 'job_template_locale_id_example' # String | Job Template Locale ID
|
|
43
|
+
opts = {
|
|
44
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
begin
|
|
48
|
+
#Delete an organization job template locale
|
|
49
|
+
api_instance.organization_job_template_locale_delete(account_id, job_template_id, job_template_locale_id, opts)
|
|
50
|
+
rescue Phrase::ApiError => e
|
|
51
|
+
puts "Exception when calling OrganizationJobTemplateLocalesApi->organization_job_template_locale_delete: #{e}"
|
|
52
|
+
end
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Parameters
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
Name | Type | Description | Notes
|
|
59
|
+
------------- | ------------- | ------------- | -------------
|
|
60
|
+
**account_id** | **String**| Account ID |
|
|
61
|
+
**job_template_id** | **String**| Job Template ID |
|
|
62
|
+
**job_template_locale_id** | **String**| Job Template Locale ID |
|
|
63
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [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
|
+
## organization_job_template_locale_show
|
|
80
|
+
|
|
81
|
+
> JobTemplateLocales organization_job_template_locale_show(account_id, job_template_id, job_template_locale_id, opts)
|
|
82
|
+
|
|
83
|
+
Get a single organization job template locale
|
|
84
|
+
|
|
85
|
+
Get a single job template locale for a given organization job template.
|
|
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::OrganizationJobTemplateLocalesApi.new
|
|
104
|
+
account_id = 'account_id_example' # String | Account ID
|
|
105
|
+
job_template_id = 'job_template_id_example' # String | Job Template ID
|
|
106
|
+
job_template_locale_id = 'job_template_locale_id_example' # String | Job Template Locale ID
|
|
107
|
+
opts = {
|
|
108
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
begin
|
|
112
|
+
#Get a single organization job template locale
|
|
113
|
+
result = api_instance.organization_job_template_locale_show(account_id, job_template_id, job_template_locale_id, opts)
|
|
114
|
+
pp result
|
|
115
|
+
rescue Phrase::ApiError => e
|
|
116
|
+
puts "Exception when calling OrganizationJobTemplateLocalesApi->organization_job_template_locale_show: #{e}"
|
|
117
|
+
end
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### Parameters
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
Name | Type | Description | Notes
|
|
124
|
+
------------- | ------------- | ------------- | -------------
|
|
125
|
+
**account_id** | **String**| Account ID |
|
|
126
|
+
**job_template_id** | **String**| Job Template ID |
|
|
127
|
+
**job_template_locale_id** | **String**| Job Template Locale ID |
|
|
128
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
129
|
+
|
|
130
|
+
### Return type
|
|
131
|
+
|
|
132
|
+
Response<([**JobTemplateLocales**](JobTemplateLocales.md))>
|
|
133
|
+
|
|
134
|
+
### Authorization
|
|
135
|
+
|
|
136
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
137
|
+
|
|
138
|
+
### HTTP request headers
|
|
139
|
+
|
|
140
|
+
- **Content-Type**: Not defined
|
|
141
|
+
- **Accept**: application/json
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
## organization_job_template_locale_update
|
|
145
|
+
|
|
146
|
+
> JobTemplateLocales organization_job_template_locale_update(account_id, job_template_id, job_template_locale_id, organization_job_template_locale_update_parameters, opts)
|
|
147
|
+
|
|
148
|
+
Update an organization job template locale
|
|
149
|
+
|
|
150
|
+
Update an existing organization job template locale.
|
|
151
|
+
|
|
152
|
+
### Example
|
|
153
|
+
|
|
154
|
+
```ruby
|
|
155
|
+
# load the gem
|
|
156
|
+
require 'phrase'
|
|
157
|
+
# setup authorization
|
|
158
|
+
Phrase.configure do |config|
|
|
159
|
+
# Configure HTTP basic authorization: Basic
|
|
160
|
+
config.username = 'YOUR USERNAME'
|
|
161
|
+
config.password = 'YOUR PASSWORD'
|
|
162
|
+
|
|
163
|
+
# Configure API key authorization: Token
|
|
164
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
165
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
api_instance = Phrase::OrganizationJobTemplateLocalesApi.new
|
|
169
|
+
account_id = 'account_id_example' # String | Account ID
|
|
170
|
+
job_template_id = 'job_template_id_example' # String | Job Template ID
|
|
171
|
+
job_template_locale_id = 'job_template_locale_id_example' # String | Job Template Locale ID
|
|
172
|
+
organization_job_template_locale_update_parameters = Phrase::OrganizationJobTemplateLocaleUpdateParameters.new # OrganizationJobTemplateLocaleUpdateParameters |
|
|
173
|
+
opts = {
|
|
174
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
begin
|
|
178
|
+
#Update an organization job template locale
|
|
179
|
+
result = api_instance.organization_job_template_locale_update(account_id, job_template_id, job_template_locale_id, organization_job_template_locale_update_parameters, opts)
|
|
180
|
+
pp result
|
|
181
|
+
rescue Phrase::ApiError => e
|
|
182
|
+
puts "Exception when calling OrganizationJobTemplateLocalesApi->organization_job_template_locale_update: #{e}"
|
|
183
|
+
end
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### Parameters
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
Name | Type | Description | Notes
|
|
190
|
+
------------- | ------------- | ------------- | -------------
|
|
191
|
+
**account_id** | **String**| Account ID |
|
|
192
|
+
**job_template_id** | **String**| Job Template ID |
|
|
193
|
+
**job_template_locale_id** | **String**| Job Template Locale ID |
|
|
194
|
+
**organization_job_template_locale_update_parameters** | [**OrganizationJobTemplateLocaleUpdateParameters**](OrganizationJobTemplateLocaleUpdateParameters.md)| |
|
|
195
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
196
|
+
|
|
197
|
+
### Return type
|
|
198
|
+
|
|
199
|
+
Response<([**JobTemplateLocales**](JobTemplateLocales.md))>
|
|
200
|
+
|
|
201
|
+
### Authorization
|
|
202
|
+
|
|
203
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
204
|
+
|
|
205
|
+
### HTTP request headers
|
|
206
|
+
|
|
207
|
+
- **Content-Type**: application/json
|
|
208
|
+
- **Accept**: application/json
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
## organization_job_template_locales_create
|
|
212
|
+
|
|
213
|
+
> JobTemplateLocales organization_job_template_locales_create(account_id, job_template_id, organization_job_template_locales_create_parameters, opts)
|
|
214
|
+
|
|
215
|
+
Create an organization job template locale
|
|
216
|
+
|
|
217
|
+
Create a new organization job template locale.
|
|
218
|
+
|
|
219
|
+
### Example
|
|
220
|
+
|
|
221
|
+
```ruby
|
|
222
|
+
# load the gem
|
|
223
|
+
require 'phrase'
|
|
224
|
+
# setup authorization
|
|
225
|
+
Phrase.configure do |config|
|
|
226
|
+
# Configure HTTP basic authorization: Basic
|
|
227
|
+
config.username = 'YOUR USERNAME'
|
|
228
|
+
config.password = 'YOUR PASSWORD'
|
|
229
|
+
|
|
230
|
+
# Configure API key authorization: Token
|
|
231
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
232
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
api_instance = Phrase::OrganizationJobTemplateLocalesApi.new
|
|
236
|
+
account_id = 'account_id_example' # String | Account ID
|
|
237
|
+
job_template_id = 'job_template_id_example' # String | Job Template ID
|
|
238
|
+
organization_job_template_locales_create_parameters = Phrase::OrganizationJobTemplateLocalesCreateParameters.new # OrganizationJobTemplateLocalesCreateParameters |
|
|
239
|
+
opts = {
|
|
240
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
begin
|
|
244
|
+
#Create an organization job template locale
|
|
245
|
+
result = api_instance.organization_job_template_locales_create(account_id, job_template_id, organization_job_template_locales_create_parameters, opts)
|
|
246
|
+
pp result
|
|
247
|
+
rescue Phrase::ApiError => e
|
|
248
|
+
puts "Exception when calling OrganizationJobTemplateLocalesApi->organization_job_template_locales_create: #{e}"
|
|
249
|
+
end
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
### Parameters
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
Name | Type | Description | Notes
|
|
256
|
+
------------- | ------------- | ------------- | -------------
|
|
257
|
+
**account_id** | **String**| Account ID |
|
|
258
|
+
**job_template_id** | **String**| Job Template ID |
|
|
259
|
+
**organization_job_template_locales_create_parameters** | [**OrganizationJobTemplateLocalesCreateParameters**](OrganizationJobTemplateLocalesCreateParameters.md)| |
|
|
260
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
261
|
+
|
|
262
|
+
### Return type
|
|
263
|
+
|
|
264
|
+
Response<([**JobTemplateLocales**](JobTemplateLocales.md))>
|
|
265
|
+
|
|
266
|
+
### Authorization
|
|
267
|
+
|
|
268
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
269
|
+
|
|
270
|
+
### HTTP request headers
|
|
271
|
+
|
|
272
|
+
- **Content-Type**: application/json
|
|
273
|
+
- **Accept**: application/json
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
## organization_job_template_locales_list
|
|
277
|
+
|
|
278
|
+
> Array<JobTemplateLocales> organization_job_template_locales_list(account_id, job_template_id, opts)
|
|
279
|
+
|
|
280
|
+
List organization job template locales
|
|
281
|
+
|
|
282
|
+
List all job template locales for a given organization job template.
|
|
283
|
+
|
|
284
|
+
### Example
|
|
285
|
+
|
|
286
|
+
```ruby
|
|
287
|
+
# load the gem
|
|
288
|
+
require 'phrase'
|
|
289
|
+
# setup authorization
|
|
290
|
+
Phrase.configure do |config|
|
|
291
|
+
# Configure HTTP basic authorization: Basic
|
|
292
|
+
config.username = 'YOUR USERNAME'
|
|
293
|
+
config.password = 'YOUR PASSWORD'
|
|
294
|
+
|
|
295
|
+
# Configure API key authorization: Token
|
|
296
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
297
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
api_instance = Phrase::OrganizationJobTemplateLocalesApi.new
|
|
301
|
+
account_id = 'account_id_example' # String | Account ID
|
|
302
|
+
job_template_id = 'job_template_id_example' # String | Job Template ID
|
|
303
|
+
opts = {
|
|
304
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
|
305
|
+
page: 1, # Integer | Page number
|
|
306
|
+
per_page: 25 # Integer | Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
begin
|
|
310
|
+
#List organization job template locales
|
|
311
|
+
result = api_instance.organization_job_template_locales_list(account_id, job_template_id, opts)
|
|
312
|
+
pp result
|
|
313
|
+
rescue Phrase::ApiError => e
|
|
314
|
+
puts "Exception when calling OrganizationJobTemplateLocalesApi->organization_job_template_locales_list: #{e}"
|
|
315
|
+
end
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
### Parameters
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
Name | Type | Description | Notes
|
|
322
|
+
------------- | ------------- | ------------- | -------------
|
|
323
|
+
**account_id** | **String**| Account ID |
|
|
324
|
+
**job_template_id** | **String**| Job Template ID |
|
|
325
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
326
|
+
**page** | **Integer**| Page number | [optional]
|
|
327
|
+
**per_page** | **Integer**| Limit on the number of objects to be returned, between 1 and 100. 25 by default | [optional]
|
|
328
|
+
|
|
329
|
+
### Return type
|
|
330
|
+
|
|
331
|
+
Response<([**Array<JobTemplateLocales>**](JobTemplateLocales.md))>
|
|
332
|
+
|
|
333
|
+
### Authorization
|
|
334
|
+
|
|
335
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
336
|
+
|
|
337
|
+
### HTTP request headers
|
|
338
|
+
|
|
339
|
+
- **Content-Type**: Not defined
|
|
340
|
+
- **Accept**: application/json
|
|
341
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Phrase::OrganizationJobTemplateLocalesCreateParameters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**locale_name** | **String** | locale name |
|
|
8
|
+
**locale_code** | **String** | locale code |
|
|
9
|
+
**user_ids** | **Array<String>** | Array of user ids to be assigned to the job template locale | [optional]
|
|
10
|
+
**reviewer_ids** | **Array<String>** | Array of reviewer ids to be assigned to the job template locale | [optional]
|
|
11
|
+
**translator_team_ids** | **Array<String>** | Array of team ids to be assigned to the job locale as translators | [optional]
|
|
12
|
+
**reviewer_team_ids** | **Array<String>** | Array of team ids to be assigned to the job locale as reviewers | [optional]
|
|
13
|
+
|
|
14
|
+
## Code Sample
|
|
15
|
+
|
|
16
|
+
```ruby
|
|
17
|
+
require 'Phrase'
|
|
18
|
+
|
|
19
|
+
instance = Phrase::OrganizationJobTemplateLocalesCreateParameters.new(locale_name: de-1,
|
|
20
|
+
locale_code: de-DE,
|
|
21
|
+
user_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
22
|
+
reviewer_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
23
|
+
translator_team_ids: ["abcd1234cdef1234abcd1234cdef1234"],
|
|
24
|
+
reviewer_team_ids: ["abcd1234cdef1234abcd1234cdef1234"])
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Phrase::OrganizationJobTemplateUpdateParameters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**name** | **String** | Job template name |
|
|
8
|
+
**briefing** | **String** | Briefing for the translators | [optional]
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'Phrase'
|
|
14
|
+
|
|
15
|
+
instance = Phrase::OrganizationJobTemplateUpdateParameters.new(name: template,
|
|
16
|
+
briefing: text)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|