phrase 2.0.0 → 2.3.1
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 +41 -3
- 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/JobCreateParameters.md +2 -0
- data/docs/JobDetails.md +2 -0
- data/docs/JobDetails1.md +2 -0
- 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 +132 -4
- 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 -3
- 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/ProjectsApi.md +7 -1
- 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/TranslationsVerifyParameters.md +3 -5
- data/docs/User.md +0 -2
- 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 +152 -4
- data/lib/phrase/api/locales_api.rb +80 -2
- 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/search_api.rb +84 -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/job_create_parameters.rb +11 -1
- data/lib/phrase/models/job_details.rb +10 -1
- data/lib/phrase/models/job_details1.rb +10 -1
- 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/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/translations_verify_parameters.rb +14 -24
- data/lib/phrase/models/user.rb +1 -10
- data/lib/phrase/version.rb +1 -1
- data/lib/phrase.rb +23 -0
- 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 +30 -2
- data/spec/api/locales_api_spec.rb +18 -1
- 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/search_api_spec.rb +37 -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/job_create_parameters_spec.rb +6 -0
- data/spec/models/job_details1_spec.rb +6 -0
- data/spec/models/job_details_spec.rb +6 -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/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/translations_verify_parameters_spec.rb +2 -8
- data/spec/models/user_spec.rb +0 -6
- metadata +262 -170
|
@@ -5,22 +5,18 @@ module Phrase
|
|
|
5
5
|
# specify the branch to use
|
|
6
6
|
attr_accessor :branch
|
|
7
7
|
|
|
8
|
+
# specify the locale of the translations to be verified
|
|
9
|
+
attr_accessor :locale_id
|
|
10
|
+
|
|
8
11
|
# Specify a query to find translations by content (including wildcards).<br><br> The following qualifiers are supported in the query:<br> <ul> <li><code>id:translation_id,...</code> for queries on a comma-separated list of ids</li> <li><code>tags:XYZ</code> for tags on the translation</li> <li><code>unverified:{true|false}</code> for verification status</li> <li><code>excluded:{true|false}</code> for exclusion status</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
9
12
|
attr_accessor :q
|
|
10
13
|
|
|
11
|
-
# Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
12
|
-
attr_accessor :sort
|
|
13
|
-
|
|
14
|
-
# Order direction. Can be one of: asc, desc.
|
|
15
|
-
attr_accessor :order
|
|
16
|
-
|
|
17
14
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
18
15
|
def self.attribute_map
|
|
19
16
|
{
|
|
20
17
|
:'branch' => :'branch',
|
|
21
|
-
:'
|
|
22
|
-
:'
|
|
23
|
-
:'order' => :'order'
|
|
18
|
+
:'locale_id' => :'locale_id',
|
|
19
|
+
:'q' => :'q'
|
|
24
20
|
}
|
|
25
21
|
end
|
|
26
22
|
|
|
@@ -28,9 +24,8 @@ module Phrase
|
|
|
28
24
|
def self.openapi_types
|
|
29
25
|
{
|
|
30
26
|
:'branch' => :'String',
|
|
31
|
-
:'
|
|
32
|
-
:'
|
|
33
|
-
:'order' => :'String'
|
|
27
|
+
:'locale_id' => :'String',
|
|
28
|
+
:'q' => :'String'
|
|
34
29
|
}
|
|
35
30
|
end
|
|
36
31
|
|
|
@@ -59,16 +54,12 @@ module Phrase
|
|
|
59
54
|
self.branch = attributes[:'branch']
|
|
60
55
|
end
|
|
61
56
|
|
|
62
|
-
if attributes.key?(:'
|
|
63
|
-
self.
|
|
57
|
+
if attributes.key?(:'locale_id')
|
|
58
|
+
self.locale_id = attributes[:'locale_id']
|
|
64
59
|
end
|
|
65
60
|
|
|
66
|
-
if attributes.key?(:'
|
|
67
|
-
self.
|
|
68
|
-
end
|
|
69
|
-
|
|
70
|
-
if attributes.key?(:'order')
|
|
71
|
-
self.order = attributes[:'order']
|
|
61
|
+
if attributes.key?(:'q')
|
|
62
|
+
self.q = attributes[:'q']
|
|
72
63
|
end
|
|
73
64
|
end
|
|
74
65
|
|
|
@@ -91,9 +82,8 @@ module Phrase
|
|
|
91
82
|
return true if self.equal?(o)
|
|
92
83
|
self.class == o.class &&
|
|
93
84
|
branch == o.branch &&
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
order == o.order
|
|
85
|
+
locale_id == o.locale_id &&
|
|
86
|
+
q == o.q
|
|
97
87
|
end
|
|
98
88
|
|
|
99
89
|
# @see the `==` method
|
|
@@ -105,7 +95,7 @@ module Phrase
|
|
|
105
95
|
# Calculates hash code according to all attributes.
|
|
106
96
|
# @return [Integer] Hash code
|
|
107
97
|
def hash
|
|
108
|
-
[branch,
|
|
98
|
+
[branch, locale_id, q].hash
|
|
109
99
|
end
|
|
110
100
|
|
|
111
101
|
# Builds the object from hash
|
data/lib/phrase/models/user.rb
CHANGED
|
@@ -8,8 +8,6 @@ module Phrase
|
|
|
8
8
|
|
|
9
9
|
attr_accessor :name
|
|
10
10
|
|
|
11
|
-
attr_accessor :email
|
|
12
|
-
|
|
13
11
|
attr_accessor :position
|
|
14
12
|
|
|
15
13
|
attr_accessor :created_at
|
|
@@ -22,7 +20,6 @@ module Phrase
|
|
|
22
20
|
:'id' => :'id',
|
|
23
21
|
:'username' => :'username',
|
|
24
22
|
:'name' => :'name',
|
|
25
|
-
:'email' => :'email',
|
|
26
23
|
:'position' => :'position',
|
|
27
24
|
:'created_at' => :'created_at',
|
|
28
25
|
:'updated_at' => :'updated_at'
|
|
@@ -35,7 +32,6 @@ module Phrase
|
|
|
35
32
|
:'id' => :'String',
|
|
36
33
|
:'username' => :'String',
|
|
37
34
|
:'name' => :'String',
|
|
38
|
-
:'email' => :'String',
|
|
39
35
|
:'position' => :'String',
|
|
40
36
|
:'created_at' => :'DateTime',
|
|
41
37
|
:'updated_at' => :'DateTime'
|
|
@@ -75,10 +71,6 @@ module Phrase
|
|
|
75
71
|
self.name = attributes[:'name']
|
|
76
72
|
end
|
|
77
73
|
|
|
78
|
-
if attributes.key?(:'email')
|
|
79
|
-
self.email = attributes[:'email']
|
|
80
|
-
end
|
|
81
|
-
|
|
82
74
|
if attributes.key?(:'position')
|
|
83
75
|
self.position = attributes[:'position']
|
|
84
76
|
end
|
|
@@ -113,7 +105,6 @@ module Phrase
|
|
|
113
105
|
id == o.id &&
|
|
114
106
|
username == o.username &&
|
|
115
107
|
name == o.name &&
|
|
116
|
-
email == o.email &&
|
|
117
108
|
position == o.position &&
|
|
118
109
|
created_at == o.created_at &&
|
|
119
110
|
updated_at == o.updated_at
|
|
@@ -128,7 +119,7 @@ module Phrase
|
|
|
128
119
|
# Calculates hash code according to all attributes.
|
|
129
120
|
# @return [Integer] Hash code
|
|
130
121
|
def hash
|
|
131
|
-
[id, username, name,
|
|
122
|
+
[id, username, name, position, created_at, updated_at].hash
|
|
132
123
|
end
|
|
133
124
|
|
|
134
125
|
# Builds the object from hash
|
data/lib/phrase/version.rb
CHANGED
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'
|
|
@@ -77,10 +78,20 @@ require 'phrase/models/job_locales_create_parameters'
|
|
|
77
78
|
require 'phrase/models/job_preview'
|
|
78
79
|
require 'phrase/models/job_reopen_parameters'
|
|
79
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'
|
|
80
89
|
require 'phrase/models/job_update_parameters'
|
|
81
90
|
require 'phrase/models/key_create_parameters'
|
|
82
91
|
require 'phrase/models/key_preview'
|
|
83
92
|
require 'phrase/models/key_update_parameters'
|
|
93
|
+
require 'phrase/models/keys_exclude_parameters'
|
|
94
|
+
require 'phrase/models/keys_include_parameters'
|
|
84
95
|
require 'phrase/models/keys_search_parameters'
|
|
85
96
|
require 'phrase/models/keys_tag_parameters'
|
|
86
97
|
require 'phrase/models/keys_untag_parameters'
|
|
@@ -89,6 +100,7 @@ require 'phrase/models/locale_create_parameters'
|
|
|
89
100
|
require 'phrase/models/locale_details'
|
|
90
101
|
require 'phrase/models/locale_details1'
|
|
91
102
|
require 'phrase/models/locale_preview'
|
|
103
|
+
require 'phrase/models/locale_preview1'
|
|
92
104
|
require 'phrase/models/locale_statistics'
|
|
93
105
|
require 'phrase/models/locale_update_parameters'
|
|
94
106
|
require 'phrase/models/member'
|
|
@@ -97,6 +109,9 @@ require 'phrase/models/member_project_detail_project_roles'
|
|
|
97
109
|
require 'phrase/models/member_spaces'
|
|
98
110
|
require 'phrase/models/member_update_parameters'
|
|
99
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'
|
|
100
115
|
require 'phrase/models/order_confirm_parameters'
|
|
101
116
|
require 'phrase/models/order_create_parameters'
|
|
102
117
|
require 'phrase/models/project'
|
|
@@ -117,7 +132,9 @@ require 'phrase/models/screenshot_marker'
|
|
|
117
132
|
require 'phrase/models/screenshot_marker_create_parameters'
|
|
118
133
|
require 'phrase/models/screenshot_marker_update_parameters'
|
|
119
134
|
require 'phrase/models/screenshot_update_parameters'
|
|
135
|
+
require 'phrase/models/search_in_account_parameters'
|
|
120
136
|
require 'phrase/models/space'
|
|
137
|
+
require 'phrase/models/space1'
|
|
121
138
|
require 'phrase/models/space_create_parameters'
|
|
122
139
|
require 'phrase/models/space_update_parameters'
|
|
123
140
|
require 'phrase/models/spaces_projects_create_parameters'
|
|
@@ -127,6 +144,7 @@ require 'phrase/models/styleguide_details'
|
|
|
127
144
|
require 'phrase/models/styleguide_details1'
|
|
128
145
|
require 'phrase/models/styleguide_preview'
|
|
129
146
|
require 'phrase/models/styleguide_update_parameters'
|
|
147
|
+
require 'phrase/models/subscription'
|
|
130
148
|
require 'phrase/models/tag'
|
|
131
149
|
require 'phrase/models/tag_create_parameters'
|
|
132
150
|
require 'phrase/models/tag_with_stats'
|
|
@@ -192,15 +210,20 @@ require 'phrase/api/glossary_term_translations_api'
|
|
|
192
210
|
require 'phrase/api/glossary_terms_api'
|
|
193
211
|
require 'phrase/api/invitations_api'
|
|
194
212
|
require 'phrase/api/job_locales_api'
|
|
213
|
+
require 'phrase/api/job_template_locales_api'
|
|
214
|
+
require 'phrase/api/job_templates_api'
|
|
195
215
|
require 'phrase/api/jobs_api'
|
|
196
216
|
require 'phrase/api/keys_api'
|
|
197
217
|
require 'phrase/api/locales_api'
|
|
198
218
|
require 'phrase/api/members_api'
|
|
219
|
+
require 'phrase/api/notification_groups_api'
|
|
220
|
+
require 'phrase/api/notifications_api'
|
|
199
221
|
require 'phrase/api/orders_api'
|
|
200
222
|
require 'phrase/api/projects_api'
|
|
201
223
|
require 'phrase/api/releases_api'
|
|
202
224
|
require 'phrase/api/screenshot_markers_api'
|
|
203
225
|
require 'phrase/api/screenshots_api'
|
|
226
|
+
require 'phrase/api/search_api'
|
|
204
227
|
require 'phrase/api/spaces_api'
|
|
205
228
|
require 'phrase/api/style_guides_api'
|
|
206
229
|
require 'phrase/api/tags_api'
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
|
|
4
|
+
# Unit tests for Phrase::JobTemplateLocalesApi
|
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
6
|
+
# Please update as you see appropriate
|
|
7
|
+
describe 'JobTemplateLocalesApi' do
|
|
8
|
+
before do
|
|
9
|
+
# run before each test
|
|
10
|
+
@api_instance = Phrase::JobTemplateLocalesApi.new
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
# run after each test
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of JobTemplateLocalesApi' do
|
|
18
|
+
it 'should create an instance of JobTemplateLocalesApi' do
|
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::JobTemplateLocalesApi)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# unit tests for job_template_locale_delete
|
|
24
|
+
# Delete a job template locale
|
|
25
|
+
# Delete an existing job template locale.
|
|
26
|
+
# @param project_id Project ID
|
|
27
|
+
# @param job_template_id Job Template ID
|
|
28
|
+
# @param job_template_locale_id Job Template Locale ID
|
|
29
|
+
# @param [Hash] opts the optional parameters
|
|
30
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
31
|
+
# @option opts [String] :branch specify the branch to use
|
|
32
|
+
# @return [nil]
|
|
33
|
+
describe 'job_template_locale_delete test' do
|
|
34
|
+
it 'should work' do
|
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
# unit tests for job_template_locale_show
|
|
40
|
+
# Get a single job template locale
|
|
41
|
+
# Get a single job template locale for a given job template.
|
|
42
|
+
# @param project_id Project ID
|
|
43
|
+
# @param job_template_id Job Template ID
|
|
44
|
+
# @param job_template_locale_id Job Template Locale ID
|
|
45
|
+
# @param [Hash] opts the optional parameters
|
|
46
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
47
|
+
# @option opts [String] :branch specify the branch to use
|
|
48
|
+
# @return [Object]
|
|
49
|
+
describe 'job_template_locale_show test' do
|
|
50
|
+
it 'should work' do
|
|
51
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# unit tests for job_template_locale_update
|
|
56
|
+
# Update a job template locale
|
|
57
|
+
# Update an existing job template locale.
|
|
58
|
+
# @param project_id Project ID
|
|
59
|
+
# @param job_template_id Job Template ID
|
|
60
|
+
# @param job_template_locale_id Job Template Locale ID
|
|
61
|
+
# @param job_template_locale_update_parameters
|
|
62
|
+
# @param [Hash] opts the optional parameters
|
|
63
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
64
|
+
# @return [Object]
|
|
65
|
+
describe 'job_template_locale_update test' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# unit tests for job_template_locales_create
|
|
72
|
+
# Create a job template locale
|
|
73
|
+
# Create a new job template locale.
|
|
74
|
+
# @param project_id Project ID
|
|
75
|
+
# @param job_template_id Job Template ID
|
|
76
|
+
# @param job_template_locales_create_parameters
|
|
77
|
+
# @param [Hash] opts the optional parameters
|
|
78
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
79
|
+
# @return [JobTemplateLocale]
|
|
80
|
+
describe 'job_template_locales_create test' do
|
|
81
|
+
it 'should work' do
|
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# unit tests for job_template_locales_list
|
|
87
|
+
# List job template locales
|
|
88
|
+
# List all job template locales for a given job template.
|
|
89
|
+
# @param project_id Project ID
|
|
90
|
+
# @param job_template_id Job Template ID
|
|
91
|
+
# @param [Hash] opts the optional parameters
|
|
92
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
93
|
+
# @option opts [Integer] :page Page number
|
|
94
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
95
|
+
# @option opts [String] :branch specify the branch to use
|
|
96
|
+
# @return [Array<Object>]
|
|
97
|
+
describe 'job_template_locales_list test' do
|
|
98
|
+
it 'should work' do
|
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
end
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
require 'json'
|
|
3
|
+
|
|
4
|
+
# Unit tests for Phrase::JobTemplatesApi
|
|
5
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
6
|
+
# Please update as you see appropriate
|
|
7
|
+
describe 'JobTemplatesApi' do
|
|
8
|
+
before do
|
|
9
|
+
# run before each test
|
|
10
|
+
@api_instance = Phrase::JobTemplatesApi.new
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
after do
|
|
14
|
+
# run after each test
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
describe 'test an instance of JobTemplatesApi' do
|
|
18
|
+
it 'should create an instance of JobTemplatesApi' do
|
|
19
|
+
expect(@api_instance).to be_instance_of(Phrase::JobTemplatesApi)
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# unit tests for job_template_create
|
|
24
|
+
# Create a job template
|
|
25
|
+
# Create a new job template.
|
|
26
|
+
# @param project_id Project ID
|
|
27
|
+
# @param job_template_create_parameters
|
|
28
|
+
# @param [Hash] opts the optional parameters
|
|
29
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
30
|
+
# @return [Object]
|
|
31
|
+
describe 'job_template_create test' do
|
|
32
|
+
it 'should work' do
|
|
33
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# unit tests for job_template_delete
|
|
38
|
+
# Delete a job template
|
|
39
|
+
# Delete an existing job template.
|
|
40
|
+
# @param project_id Project ID
|
|
41
|
+
# @param id ID
|
|
42
|
+
# @param [Hash] opts the optional parameters
|
|
43
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
44
|
+
# @option opts [String] :branch specify the branch to use
|
|
45
|
+
# @return [nil]
|
|
46
|
+
describe 'job_template_delete test' do
|
|
47
|
+
it 'should work' do
|
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# unit tests for job_template_show
|
|
53
|
+
# Get a single job template
|
|
54
|
+
# Get details on a single job template for a given project.
|
|
55
|
+
# @param project_id Project ID
|
|
56
|
+
# @param id ID
|
|
57
|
+
# @param [Hash] opts the optional parameters
|
|
58
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
59
|
+
# @option opts [String] :branch specify the branch to use
|
|
60
|
+
# @return [Object]
|
|
61
|
+
describe 'job_template_show test' do
|
|
62
|
+
it 'should work' do
|
|
63
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# unit tests for job_template_update
|
|
68
|
+
# Update a job template
|
|
69
|
+
# Update an existing job template.
|
|
70
|
+
# @param project_id Project ID
|
|
71
|
+
# @param id ID
|
|
72
|
+
# @param job_template_update_parameters
|
|
73
|
+
# @param [Hash] opts the optional parameters
|
|
74
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
75
|
+
# @return [Object]
|
|
76
|
+
describe 'job_template_update test' do
|
|
77
|
+
it 'should work' do
|
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# unit tests for job_templates_list
|
|
83
|
+
# List job templates
|
|
84
|
+
# List all job templates for the given project.
|
|
85
|
+
# @param project_id Project ID
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
88
|
+
# @option opts [Integer] :page Page number
|
|
89
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
|
90
|
+
# @option opts [String] :branch specify the branch to use
|
|
91
|
+
# @return [Array<JobTemplate>]
|
|
92
|
+
describe 'job_templates_list test' do
|
|
93
|
+
it 'should work' do
|
|
94
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
95
|
+
end
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
end
|
data/spec/api/keys_api_spec.rb
CHANGED
|
@@ -86,7 +86,7 @@ describe 'KeysApi' do
|
|
|
86
86
|
# @param [Hash] opts the optional parameters
|
|
87
87
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
88
88
|
# @option opts [String] :branch specify the branch to use
|
|
89
|
-
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names -
|
|
89
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
90
90
|
# @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
|
91
91
|
# @return [AffectedResources]
|
|
92
92
|
describe 'keys_delete_collection test' do
|
|
@@ -95,6 +95,34 @@ describe 'KeysApi' do
|
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
97
|
|
|
98
|
+
# unit tests for keys_exclude
|
|
99
|
+
# Exclude a locale on a collection of keys
|
|
100
|
+
# Exclude a locale on keys matching query. Same constraints as list.
|
|
101
|
+
# @param project_id Project ID
|
|
102
|
+
# @param keys_exclude_parameters
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
105
|
+
# @return [AffectedResources]
|
|
106
|
+
describe 'keys_exclude test' do
|
|
107
|
+
it 'should work' do
|
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# unit tests for keys_include
|
|
113
|
+
# Include a locale on a collection of keys
|
|
114
|
+
# Include a locale on keys matching query. Same constraints as list.
|
|
115
|
+
# @param project_id Project ID
|
|
116
|
+
# @param keys_include_parameters
|
|
117
|
+
# @param [Hash] opts the optional parameters
|
|
118
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
119
|
+
# @return [AffectedResources]
|
|
120
|
+
describe 'keys_include test' do
|
|
121
|
+
it 'should work' do
|
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
98
126
|
# unit tests for keys_list
|
|
99
127
|
# List keys
|
|
100
128
|
# List all keys for the given project. Alternatively you can POST requests to /search.
|
|
@@ -106,7 +134,7 @@ describe 'KeysApi' do
|
|
|
106
134
|
# @option opts [String] :branch specify the branch to use
|
|
107
135
|
# @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
|
|
108
136
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
109
|
-
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names -
|
|
137
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards).<br><br> The following qualifiers are also supported in the search term:<br> <ul> <li><code>ids:key_id,...</code> for queries on a comma-separated list of ids</li> <li><code>name:key_name</code> for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes</li> <li><code>tags:tag_name</code> to filter for keys with certain tags</li> <li><code>translated:{true|false}</code> for translation status (also requires <code>locale_id</code> to be specified)</li> <li><code>updated_at:{>=|<=}2013-02-21T00:00:00Z</code> for date range queries</li> <li><code>unmentioned_in_upload:upload_id</code> to filter keys unmentioned within upload</li> </ul> Find more examples <a href=\"#overview--usage-examples\">here</a>.
|
|
110
138
|
# @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
|
111
139
|
# @return [Array<TranslationKey>]
|
|
112
140
|
describe 'keys_list test' do
|