phrase 1.0.12 → 2.1.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 +56 -9
- data/docs/Account.md +3 -1
- data/docs/AccountDetails.md +5 -1
- data/docs/AccountDetails1.md +3 -1
- data/docs/AccountSearchResult.md +29 -0
- data/docs/Branch.md +5 -1
- data/docs/Comment.md +3 -1
- data/docs/CurrentUser.md +31 -0
- data/docs/JobLocale.md +5 -1
- data/docs/JobTemplate.md +29 -0
- data/docs/JobTemplateCreateParameters.md +21 -0
- data/docs/JobTemplateLocale.md +23 -0
- data/docs/JobTemplateLocaleUpdateParameters.md +23 -0
- data/docs/JobTemplateLocalesApi.md +347 -0
- data/docs/JobTemplateLocalesCreateParameters.md +23 -0
- data/docs/JobTemplatePreview.md +19 -0
- data/docs/JobTemplateUpdateParameters.md +21 -0
- data/docs/JobTemplateUserPreview.md +23 -0
- data/docs/JobTemplatesApi.md +337 -0
- data/docs/KeysApi.md +137 -9
- data/docs/KeysExcludeParameters.md +23 -0
- data/docs/KeysIncludeParameters.md +23 -0
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/KeysTagParameters.md +1 -1
- data/docs/KeysUntagParameters.md +1 -1
- data/docs/LocalePreview1.md +23 -0
- data/docs/LocalesApi.md +73 -6
- data/docs/MemberSpaces.md +2 -2
- data/docs/MemberUpdateParameters.md +4 -2
- data/docs/Notification.md +41 -0
- data/docs/NotificationGroup.md +23 -0
- data/docs/NotificationGroupDetail.md +27 -0
- data/docs/NotificationGroupsApi.md +194 -0
- data/docs/NotificationsApi.md +194 -0
- data/docs/OrderCreateParameters.md +2 -0
- data/docs/Project.md +2 -0
- data/docs/ProjectCreateParameters.md +35 -1
- data/docs/ProjectDetails.md +2 -0
- data/docs/ProjectUpdateParameters.md +43 -9
- data/docs/ProjectsApi.md +7 -1
- data/docs/ScreenshotCreateParameters.md +3 -1
- data/docs/ScreenshotMarkerCreateParameters.md +3 -1
- data/docs/ScreenshotMarkerUpdateParameters.md +3 -1
- data/docs/ScreenshotMarkersApi.md +9 -3
- data/docs/ScreenshotUpdateParameters.md +3 -1
- data/docs/ScreenshotsApi.md +8 -2
- data/docs/SearchApi.md +72 -0
- data/docs/SearchInAccountParameters.md +23 -0
- data/docs/Space1.md +25 -0
- data/docs/Subscription.md +19 -0
- data/docs/TranslationOrder.md +2 -0
- data/docs/TranslationsApi.md +25 -25
- data/docs/User.md +0 -2
- data/docs/UsersApi.md +2 -2
- data/docs/Variable.md +23 -0
- data/docs/VariableCreateParameters.md +19 -0
- data/docs/VariableUpdateParameters.md +19 -0
- data/docs/VariablesApi.md +331 -0
- data/lib/phrase.rb +28 -0
- data/lib/phrase/api/job_template_locales_api.rb +417 -0
- data/lib/phrase/api/job_templates_api.rb +387 -0
- data/lib/phrase/api/keys_api.rb +158 -10
- data/lib/phrase/api/locales_api.rb +76 -5
- data/lib/phrase/api/notification_groups_api.rb +202 -0
- data/lib/phrase/api/notifications_api.rb +202 -0
- data/lib/phrase/api/projects_api.rb +9 -0
- data/lib/phrase/api/screenshot_markers_api.rb +9 -0
- data/lib/phrase/api/screenshots_api.rb +9 -0
- data/lib/phrase/api/search_api.rb +84 -0
- data/lib/phrase/api/translations_api.rb +35 -35
- data/lib/phrase/api/users_api.rb +3 -3
- data/lib/phrase/api/variables_api.rb +378 -0
- data/lib/phrase/models/account.rb +13 -4
- data/lib/phrase/models/account_details.rb +22 -4
- data/lib/phrase/models/account_details1.rb +10 -1
- data/lib/phrase/models/account_search_result.rb +250 -0
- data/lib/phrase/models/branch.rb +19 -1
- data/lib/phrase/models/comment.rb +15 -4
- data/lib/phrase/models/current_user.rb +257 -0
- data/lib/phrase/models/job_locale.rb +22 -4
- data/lib/phrase/models/job_template.rb +248 -0
- data/lib/phrase/models/job_template_create_parameters.rb +220 -0
- data/lib/phrase/models/job_template_locale.rb +223 -0
- data/lib/phrase/models/job_template_locale_update_parameters.rb +234 -0
- data/lib/phrase/models/job_template_locales_create_parameters.rb +234 -0
- data/lib/phrase/models/job_template_preview.rb +203 -0
- data/lib/phrase/models/job_template_update_parameters.rb +220 -0
- data/lib/phrase/models/job_template_user_preview.rb +221 -0
- data/lib/phrase/models/keys_exclude_parameters.rb +225 -0
- data/lib/phrase/models/keys_include_parameters.rb +225 -0
- data/lib/phrase/models/keys_search_parameters.rb +1 -1
- data/lib/phrase/models/keys_tag_parameters.rb +1 -1
- data/lib/phrase/models/keys_untag_parameters.rb +1 -1
- data/lib/phrase/models/locale_preview1.rb +221 -0
- data/lib/phrase/models/member_spaces.rb +2 -2
- data/lib/phrase/models/member_update_parameters.rb +12 -2
- data/lib/phrase/models/notification.rb +302 -0
- data/lib/phrase/models/notification_group.rb +221 -0
- data/lib/phrase/models/notification_group_detail.rb +239 -0
- data/lib/phrase/models/order_create_parameters.rb +11 -1
- data/lib/phrase/models/project.rb +10 -1
- data/lib/phrase/models/project_create_parameters.rb +174 -4
- data/lib/phrase/models/project_details.rb +10 -1
- data/lib/phrase/models/project_update_parameters.rb +183 -13
- data/lib/phrase/models/screenshot_create_parameters.rb +11 -1
- data/lib/phrase/models/screenshot_marker_create_parameters.rb +11 -1
- data/lib/phrase/models/screenshot_marker_update_parameters.rb +11 -1
- data/lib/phrase/models/screenshot_update_parameters.rb +11 -1
- data/lib/phrase/models/search_in_account_parameters.rb +225 -0
- data/lib/phrase/models/space1.rb +230 -0
- data/lib/phrase/models/subscription.rb +203 -0
- data/lib/phrase/models/translation_order.rb +10 -1
- data/lib/phrase/models/user.rb +1 -10
- data/lib/phrase/models/variable.rb +221 -0
- data/lib/phrase/models/variable_create_parameters.rb +205 -0
- data/lib/phrase/models/variable_update_parameters.rb +205 -0
- data/lib/phrase/version.rb +1 -1
- data/spec/api/job_template_locales_api_spec.rb +103 -0
- data/spec/api/job_templates_api_spec.rb +98 -0
- data/spec/api/keys_api_spec.rb +32 -4
- data/spec/api/locales_api_spec.rb +17 -2
- data/spec/api/notification_groups_api_spec.rb +62 -0
- data/spec/api/notifications_api_spec.rb +62 -0
- data/spec/api/projects_api_spec.rb +3 -0
- data/spec/api/screenshot_markers_api_spec.rb +3 -0
- data/spec/api/screenshots_api_spec.rb +3 -0
- data/spec/api/search_api_spec.rb +37 -0
- data/spec/api/translations_api_spec.rb +10 -10
- data/spec/api/users_api_spec.rb +1 -1
- data/spec/api/variables_api_spec.rb +95 -0
- data/spec/models/account_details1_spec.rb +6 -0
- data/spec/models/account_details_spec.rb +12 -0
- data/spec/models/account_search_result_spec.rb +65 -0
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/branch_spec.rb +12 -0
- data/spec/models/comment_spec.rb +6 -0
- data/spec/models/current_user_spec.rb +71 -0
- data/spec/models/job_locale_spec.rb +12 -0
- data/spec/models/job_template_create_parameters_spec.rb +41 -0
- data/spec/models/job_template_locale_spec.rb +47 -0
- data/spec/models/job_template_locale_update_parameters_spec.rb +47 -0
- data/spec/models/job_template_locales_create_parameters_spec.rb +47 -0
- data/spec/models/job_template_preview_spec.rb +35 -0
- data/spec/models/job_template_spec.rb +65 -0
- data/spec/models/job_template_update_parameters_spec.rb +41 -0
- data/spec/models/job_template_user_preview_spec.rb +47 -0
- data/spec/models/keys_exclude_parameters_spec.rb +47 -0
- data/spec/models/keys_include_parameters_spec.rb +47 -0
- data/spec/models/locale_preview1_spec.rb +47 -0
- data/spec/models/member_update_parameters_spec.rb +6 -0
- data/spec/models/notification_group_detail_spec.rb +59 -0
- data/spec/models/notification_group_spec.rb +47 -0
- data/spec/models/notification_spec.rb +101 -0
- data/spec/models/order_create_parameters_spec.rb +6 -0
- data/spec/models/project_create_parameters_spec.rb +102 -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 +103 -1
- data/spec/models/screenshot_create_parameters_spec.rb +6 -0
- data/spec/models/screenshot_marker_create_parameters_spec.rb +6 -0
- data/spec/models/screenshot_marker_update_parameters_spec.rb +6 -0
- data/spec/models/screenshot_update_parameters_spec.rb +6 -0
- data/spec/models/search_in_account_parameters_spec.rb +47 -0
- data/spec/models/space1_spec.rb +53 -0
- data/spec/models/subscription_spec.rb +35 -0
- data/spec/models/translation_order_spec.rb +6 -0
- data/spec/models/user_spec.rb +0 -6
- data/spec/models/variable_create_parameters_spec.rb +35 -0
- data/spec/models/variable_spec.rb +47 -0
- data/spec/models/variable_update_parameters_spec.rb +35 -0
- metadata +281 -169
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Phrase::VariableUpdateParameters
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**name** | **String** | Name of the variable | [optional]
|
|
8
|
+
**value** | **String** | Value of the variable | [optional]
|
|
9
|
+
|
|
10
|
+
## Code Sample
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
require 'Phrase'
|
|
14
|
+
|
|
15
|
+
instance = Phrase::VariableUpdateParameters.new(name: MY_VARIABLE,
|
|
16
|
+
value: Hello World)
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
|
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
# Phrase::VariablesApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.phrase.com/v2*
|
|
4
|
+
|
|
5
|
+
Method | HTTP request | Description
|
|
6
|
+
------------- | ------------- | -------------
|
|
7
|
+
[**variable_create**](VariablesApi.md#variable_create) | **POST** /projects/{project_id}/variables | Create a variable
|
|
8
|
+
[**variable_delete**](VariablesApi.md#variable_delete) | **DELETE** /projects/{project_id}/variables/{name} | Delete a variable
|
|
9
|
+
[**variable_show**](VariablesApi.md#variable_show) | **GET** /projects/{project_id}/variables/{name} | Get a single variable
|
|
10
|
+
[**variable_update**](VariablesApi.md#variable_update) | **PATCH** /projects/{project_id}/variables/{name} | Update a variable
|
|
11
|
+
[**variables_list**](VariablesApi.md#variables_list) | **GET** /projects/{project_id}/variables | List variables
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## variable_create
|
|
16
|
+
|
|
17
|
+
> Variable variable_create(project_id, variable_create_parameters, opts)
|
|
18
|
+
|
|
19
|
+
Create a variable
|
|
20
|
+
|
|
21
|
+
Create a new variable.
|
|
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::VariablesApi.new
|
|
40
|
+
project_id = 'project_id_example' # String | Project ID
|
|
41
|
+
variable_create_parameters = Phrase::VariableCreateParameters.new # VariableCreateParameters |
|
|
42
|
+
opts = {
|
|
43
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
begin
|
|
47
|
+
#Create a variable
|
|
48
|
+
result = api_instance.variable_create(project_id, variable_create_parameters, opts)
|
|
49
|
+
pp result
|
|
50
|
+
rescue Phrase::ApiError => e
|
|
51
|
+
puts "Exception when calling VariablesApi->variable_create: #{e}"
|
|
52
|
+
end
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Parameters
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
Name | Type | Description | Notes
|
|
59
|
+
------------- | ------------- | ------------- | -------------
|
|
60
|
+
**project_id** | **String**| Project ID |
|
|
61
|
+
**variable_create_parameters** | [**VariableCreateParameters**](VariableCreateParameters.md)| |
|
|
62
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
63
|
+
|
|
64
|
+
### Return type
|
|
65
|
+
|
|
66
|
+
Response<([**Variable**](Variable.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
|
+
## variable_delete
|
|
79
|
+
|
|
80
|
+
> variable_delete(project_id, name, opts)
|
|
81
|
+
|
|
82
|
+
Delete a variable
|
|
83
|
+
|
|
84
|
+
Delete an existing variable.
|
|
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::VariablesApi.new
|
|
103
|
+
project_id = 'project_id_example' # String | Project ID
|
|
104
|
+
name = 'name_example' # String | name
|
|
105
|
+
opts = {
|
|
106
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
begin
|
|
110
|
+
#Delete a variable
|
|
111
|
+
api_instance.variable_delete(project_id, name, opts)
|
|
112
|
+
rescue Phrase::ApiError => e
|
|
113
|
+
puts "Exception when calling VariablesApi->variable_delete: #{e}"
|
|
114
|
+
end
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
### Parameters
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
Name | Type | Description | Notes
|
|
121
|
+
------------- | ------------- | ------------- | -------------
|
|
122
|
+
**project_id** | **String**| Project ID |
|
|
123
|
+
**name** | **String**| name |
|
|
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
|
+
## variable_show
|
|
141
|
+
|
|
142
|
+
> Variable variable_show(project_id, name, opts)
|
|
143
|
+
|
|
144
|
+
Get a single variable
|
|
145
|
+
|
|
146
|
+
Get details on a single variable for a given project.
|
|
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::VariablesApi.new
|
|
165
|
+
project_id = 'project_id_example' # String | Project ID
|
|
166
|
+
name = 'name_example' # String | name
|
|
167
|
+
opts = {
|
|
168
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
begin
|
|
172
|
+
#Get a single variable
|
|
173
|
+
result = api_instance.variable_show(project_id, name, opts)
|
|
174
|
+
pp result
|
|
175
|
+
rescue Phrase::ApiError => e
|
|
176
|
+
puts "Exception when calling VariablesApi->variable_show: #{e}"
|
|
177
|
+
end
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Parameters
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
Name | Type | Description | Notes
|
|
184
|
+
------------- | ------------- | ------------- | -------------
|
|
185
|
+
**project_id** | **String**| Project ID |
|
|
186
|
+
**name** | **String**| name |
|
|
187
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
188
|
+
|
|
189
|
+
### Return type
|
|
190
|
+
|
|
191
|
+
Response<([**Variable**](Variable.md))>
|
|
192
|
+
|
|
193
|
+
### Authorization
|
|
194
|
+
|
|
195
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
196
|
+
|
|
197
|
+
### HTTP request headers
|
|
198
|
+
|
|
199
|
+
- **Content-Type**: Not defined
|
|
200
|
+
- **Accept**: application/json
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
## variable_update
|
|
204
|
+
|
|
205
|
+
> Variable variable_update(project_id, name, variable_update_parameters, opts)
|
|
206
|
+
|
|
207
|
+
Update a variable
|
|
208
|
+
|
|
209
|
+
Update an existing variable.
|
|
210
|
+
|
|
211
|
+
### Example
|
|
212
|
+
|
|
213
|
+
```ruby
|
|
214
|
+
# load the gem
|
|
215
|
+
require 'phrase'
|
|
216
|
+
# setup authorization
|
|
217
|
+
Phrase.configure do |config|
|
|
218
|
+
# Configure HTTP basic authorization: Basic
|
|
219
|
+
config.username = 'YOUR USERNAME'
|
|
220
|
+
config.password = 'YOUR PASSWORD'
|
|
221
|
+
|
|
222
|
+
# Configure API key authorization: Token
|
|
223
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
224
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
api_instance = Phrase::VariablesApi.new
|
|
228
|
+
project_id = 'project_id_example' # String | Project ID
|
|
229
|
+
name = 'name_example' # String | name
|
|
230
|
+
variable_update_parameters = Phrase::VariableUpdateParameters.new # VariableUpdateParameters |
|
|
231
|
+
opts = {
|
|
232
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example' # String | Two-Factor-Authentication token (optional)
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
begin
|
|
236
|
+
#Update a variable
|
|
237
|
+
result = api_instance.variable_update(project_id, name, variable_update_parameters, opts)
|
|
238
|
+
pp result
|
|
239
|
+
rescue Phrase::ApiError => e
|
|
240
|
+
puts "Exception when calling VariablesApi->variable_update: #{e}"
|
|
241
|
+
end
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### Parameters
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
Name | Type | Description | Notes
|
|
248
|
+
------------- | ------------- | ------------- | -------------
|
|
249
|
+
**project_id** | **String**| Project ID |
|
|
250
|
+
**name** | **String**| name |
|
|
251
|
+
**variable_update_parameters** | [**VariableUpdateParameters**](VariableUpdateParameters.md)| |
|
|
252
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
253
|
+
|
|
254
|
+
### Return type
|
|
255
|
+
|
|
256
|
+
Response<([**Variable**](Variable.md))>
|
|
257
|
+
|
|
258
|
+
### Authorization
|
|
259
|
+
|
|
260
|
+
[Basic](../README.md#Basic), [Token](../README.md#Token)
|
|
261
|
+
|
|
262
|
+
### HTTP request headers
|
|
263
|
+
|
|
264
|
+
- **Content-Type**: application/json
|
|
265
|
+
- **Accept**: application/json
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
## variables_list
|
|
269
|
+
|
|
270
|
+
> Array<Variable> variables_list(project_id, opts)
|
|
271
|
+
|
|
272
|
+
List variables
|
|
273
|
+
|
|
274
|
+
List all variables for the current project.
|
|
275
|
+
|
|
276
|
+
### Example
|
|
277
|
+
|
|
278
|
+
```ruby
|
|
279
|
+
# load the gem
|
|
280
|
+
require 'phrase'
|
|
281
|
+
# setup authorization
|
|
282
|
+
Phrase.configure do |config|
|
|
283
|
+
# Configure HTTP basic authorization: Basic
|
|
284
|
+
config.username = 'YOUR USERNAME'
|
|
285
|
+
config.password = 'YOUR PASSWORD'
|
|
286
|
+
|
|
287
|
+
# Configure API key authorization: Token
|
|
288
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
|
289
|
+
config.api_key_prefix['Authorization'] = 'token'
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
api_instance = Phrase::VariablesApi.new
|
|
293
|
+
project_id = 'project_id_example' # String | Project ID
|
|
294
|
+
opts = {
|
|
295
|
+
x_phrase_app_otp: 'x_phrase_app_otp_example', # String | Two-Factor-Authentication token (optional)
|
|
296
|
+
page: 1, # Integer | Page number
|
|
297
|
+
per_page: 25 # Integer | allows you to specify a page size up to 100 items, 25 by default
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
begin
|
|
301
|
+
#List variables
|
|
302
|
+
result = api_instance.variables_list(project_id, opts)
|
|
303
|
+
pp result
|
|
304
|
+
rescue Phrase::ApiError => e
|
|
305
|
+
puts "Exception when calling VariablesApi->variables_list: #{e}"
|
|
306
|
+
end
|
|
307
|
+
```
|
|
308
|
+
|
|
309
|
+
### Parameters
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
Name | Type | Description | Notes
|
|
313
|
+
------------- | ------------- | ------------- | -------------
|
|
314
|
+
**project_id** | **String**| Project ID |
|
|
315
|
+
**x_phrase_app_otp** | **String**| Two-Factor-Authentication token (optional) | [optional]
|
|
316
|
+
**page** | **Integer**| Page number | [optional]
|
|
317
|
+
**per_page** | **Integer**| allows you to specify a page size up to 100 items, 25 by default | [optional]
|
|
318
|
+
|
|
319
|
+
### Return type
|
|
320
|
+
|
|
321
|
+
Response<([**Array<Variable>**](Variable.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/lib/phrase.rb
CHANGED
|
@@ -11,6 +11,7 @@ require 'phrase/configuration'
|
|
|
11
11
|
require 'phrase/models/account'
|
|
12
12
|
require 'phrase/models/account_details'
|
|
13
13
|
require 'phrase/models/account_details1'
|
|
14
|
+
require 'phrase/models/account_search_result'
|
|
14
15
|
require 'phrase/models/affected_count'
|
|
15
16
|
require 'phrase/models/affected_resources'
|
|
16
17
|
require 'phrase/models/authorization'
|
|
@@ -34,6 +35,7 @@ require 'phrase/models/comment'
|
|
|
34
35
|
require 'phrase/models/comment_create_parameters'
|
|
35
36
|
require 'phrase/models/comment_mark_read_parameters'
|
|
36
37
|
require 'phrase/models/comment_update_parameters'
|
|
38
|
+
require 'phrase/models/current_user'
|
|
37
39
|
require 'phrase/models/distribution'
|
|
38
40
|
require 'phrase/models/distribution_create_parameters'
|
|
39
41
|
require 'phrase/models/distribution_preview'
|
|
@@ -76,10 +78,20 @@ require 'phrase/models/job_locales_create_parameters'
|
|
|
76
78
|
require 'phrase/models/job_preview'
|
|
77
79
|
require 'phrase/models/job_reopen_parameters'
|
|
78
80
|
require 'phrase/models/job_start_parameters'
|
|
81
|
+
require 'phrase/models/job_template'
|
|
82
|
+
require 'phrase/models/job_template_create_parameters'
|
|
83
|
+
require 'phrase/models/job_template_locale'
|
|
84
|
+
require 'phrase/models/job_template_locale_update_parameters'
|
|
85
|
+
require 'phrase/models/job_template_locales_create_parameters'
|
|
86
|
+
require 'phrase/models/job_template_preview'
|
|
87
|
+
require 'phrase/models/job_template_update_parameters'
|
|
88
|
+
require 'phrase/models/job_template_user_preview'
|
|
79
89
|
require 'phrase/models/job_update_parameters'
|
|
80
90
|
require 'phrase/models/key_create_parameters'
|
|
81
91
|
require 'phrase/models/key_preview'
|
|
82
92
|
require 'phrase/models/key_update_parameters'
|
|
93
|
+
require 'phrase/models/keys_exclude_parameters'
|
|
94
|
+
require 'phrase/models/keys_include_parameters'
|
|
83
95
|
require 'phrase/models/keys_search_parameters'
|
|
84
96
|
require 'phrase/models/keys_tag_parameters'
|
|
85
97
|
require 'phrase/models/keys_untag_parameters'
|
|
@@ -88,6 +100,7 @@ require 'phrase/models/locale_create_parameters'
|
|
|
88
100
|
require 'phrase/models/locale_details'
|
|
89
101
|
require 'phrase/models/locale_details1'
|
|
90
102
|
require 'phrase/models/locale_preview'
|
|
103
|
+
require 'phrase/models/locale_preview1'
|
|
91
104
|
require 'phrase/models/locale_statistics'
|
|
92
105
|
require 'phrase/models/locale_update_parameters'
|
|
93
106
|
require 'phrase/models/member'
|
|
@@ -96,6 +109,9 @@ require 'phrase/models/member_project_detail_project_roles'
|
|
|
96
109
|
require 'phrase/models/member_spaces'
|
|
97
110
|
require 'phrase/models/member_update_parameters'
|
|
98
111
|
require 'phrase/models/member_update_settings_parameters'
|
|
112
|
+
require 'phrase/models/notification'
|
|
113
|
+
require 'phrase/models/notification_group'
|
|
114
|
+
require 'phrase/models/notification_group_detail'
|
|
99
115
|
require 'phrase/models/order_confirm_parameters'
|
|
100
116
|
require 'phrase/models/order_create_parameters'
|
|
101
117
|
require 'phrase/models/project'
|
|
@@ -116,7 +132,9 @@ require 'phrase/models/screenshot_marker'
|
|
|
116
132
|
require 'phrase/models/screenshot_marker_create_parameters'
|
|
117
133
|
require 'phrase/models/screenshot_marker_update_parameters'
|
|
118
134
|
require 'phrase/models/screenshot_update_parameters'
|
|
135
|
+
require 'phrase/models/search_in_account_parameters'
|
|
119
136
|
require 'phrase/models/space'
|
|
137
|
+
require 'phrase/models/space1'
|
|
120
138
|
require 'phrase/models/space_create_parameters'
|
|
121
139
|
require 'phrase/models/space_update_parameters'
|
|
122
140
|
require 'phrase/models/spaces_projects_create_parameters'
|
|
@@ -126,6 +144,7 @@ require 'phrase/models/styleguide_details'
|
|
|
126
144
|
require 'phrase/models/styleguide_details1'
|
|
127
145
|
require 'phrase/models/styleguide_preview'
|
|
128
146
|
require 'phrase/models/styleguide_update_parameters'
|
|
147
|
+
require 'phrase/models/subscription'
|
|
129
148
|
require 'phrase/models/tag'
|
|
130
149
|
require 'phrase/models/tag_create_parameters'
|
|
131
150
|
require 'phrase/models/tag_with_stats'
|
|
@@ -167,6 +186,9 @@ require 'phrase/models/upload_create_parameters'
|
|
|
167
186
|
require 'phrase/models/upload_summary'
|
|
168
187
|
require 'phrase/models/user'
|
|
169
188
|
require 'phrase/models/user_preview'
|
|
189
|
+
require 'phrase/models/variable'
|
|
190
|
+
require 'phrase/models/variable_create_parameters'
|
|
191
|
+
require 'phrase/models/variable_update_parameters'
|
|
170
192
|
require 'phrase/models/webhook'
|
|
171
193
|
require 'phrase/models/webhook_create_parameters'
|
|
172
194
|
require 'phrase/models/webhook_update_parameters'
|
|
@@ -188,15 +210,20 @@ require 'phrase/api/glossary_term_translations_api'
|
|
|
188
210
|
require 'phrase/api/glossary_terms_api'
|
|
189
211
|
require 'phrase/api/invitations_api'
|
|
190
212
|
require 'phrase/api/job_locales_api'
|
|
213
|
+
require 'phrase/api/job_template_locales_api'
|
|
214
|
+
require 'phrase/api/job_templates_api'
|
|
191
215
|
require 'phrase/api/jobs_api'
|
|
192
216
|
require 'phrase/api/keys_api'
|
|
193
217
|
require 'phrase/api/locales_api'
|
|
194
218
|
require 'phrase/api/members_api'
|
|
219
|
+
require 'phrase/api/notification_groups_api'
|
|
220
|
+
require 'phrase/api/notifications_api'
|
|
195
221
|
require 'phrase/api/orders_api'
|
|
196
222
|
require 'phrase/api/projects_api'
|
|
197
223
|
require 'phrase/api/releases_api'
|
|
198
224
|
require 'phrase/api/screenshot_markers_api'
|
|
199
225
|
require 'phrase/api/screenshots_api'
|
|
226
|
+
require 'phrase/api/search_api'
|
|
200
227
|
require 'phrase/api/spaces_api'
|
|
201
228
|
require 'phrase/api/style_guides_api'
|
|
202
229
|
require 'phrase/api/tags_api'
|
|
@@ -204,6 +231,7 @@ require 'phrase/api/teams_api'
|
|
|
204
231
|
require 'phrase/api/translations_api'
|
|
205
232
|
require 'phrase/api/uploads_api'
|
|
206
233
|
require 'phrase/api/users_api'
|
|
234
|
+
require 'phrase/api/variables_api'
|
|
207
235
|
require 'phrase/api/versions_history_api'
|
|
208
236
|
require 'phrase/api/webhooks_api'
|
|
209
237
|
|