phrase 2.8.2 → 2.8.7
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 +15 -12
- data/docs/AccountsApi.md +2 -2
- data/docs/AuthorizationsApi.md +2 -2
- data/docs/BitbucketSyncApi.md +2 -2
- data/docs/BlacklistedKeysApi.md +2 -2
- data/docs/BranchesApi.md +5 -5
- data/docs/CommentsApi.md +2 -2
- data/docs/DistributionsApi.md +2 -2
- data/docs/DocumentsApi.md +2 -2
- data/docs/GitHubSyncApi.md +2 -2
- data/docs/GitLabSyncApi.md +4 -4
- data/docs/GlossariesApi.md +2 -2
- data/docs/GlossaryTermsApi.md +2 -2
- data/docs/InvitationsApi.md +2 -2
- data/docs/JobCommentsApi.md +6 -6
- data/docs/JobLocale.md +3 -1
- data/docs/JobLocaleUpdateParameters.md +5 -1
- data/docs/JobLocalesApi.md +2 -2
- 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 +10 -10
- data/docs/JobTemplateLocalesCreateParameters.md +5 -1
- data/docs/JobTemplatesApi.md +41 -41
- data/docs/JobsApi.md +4 -4
- data/docs/KeysApi.md +4 -4
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/LocaleTeamPreview.md +21 -0
- data/docs/{JobTemplateUserPreview.md → LocaleUserPreview.md} +2 -2
- data/docs/LocalesApi.md +12 -8
- data/docs/MembersApi.md +2 -2
- data/docs/NotificationGroupDetail.md +1 -1
- data/docs/NotificationGroupsApi.md +6 -6
- data/docs/NotificationsApi.md +8 -6
- data/docs/OrdersApi.md +2 -2
- 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/ProjectsApi.md +2 -2
- data/docs/ReleasesApi.md +2 -2
- data/docs/ScreenshotMarkersApi.md +2 -2
- data/docs/ScreenshotsApi.md +2 -2
- data/docs/SearchApi.md +1 -1
- data/docs/SpacesApi.md +4 -4
- data/docs/StyleGuidesApi.md +2 -2
- data/docs/TagsApi.md +2 -2
- data/docs/TeamsApi.md +2 -2
- data/docs/TranslationsApi.md +31 -27
- 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 +5 -5
- data/docs/VariablesApi.md +2 -2
- data/docs/VersionsHistoryApi.md +2 -2
- data/docs/WebhooksApi.md +2 -2
- data/lib/phrase/api/accounts_api.rb +2 -2
- data/lib/phrase/api/authorizations_api.rb +2 -2
- data/lib/phrase/api/bitbucket_sync_api.rb +4 -4
- data/lib/phrase/api/blacklisted_keys_api.rb +2 -2
- data/lib/phrase/api/branches_api.rb +8 -8
- data/lib/phrase/api/comments_api.rb +2 -2
- data/lib/phrase/api/distributions_api.rb +2 -2
- data/lib/phrase/api/documents_api.rb +2 -2
- data/lib/phrase/api/git_hub_sync_api.rb +4 -4
- data/lib/phrase/api/git_lab_sync_api.rb +6 -6
- data/lib/phrase/api/glossaries_api.rb +2 -2
- data/lib/phrase/api/glossary_terms_api.rb +2 -2
- data/lib/phrase/api/invitations_api.rb +2 -2
- data/lib/phrase/api/job_comments_api.rb +9 -9
- data/lib/phrase/api/job_locales_api.rb +2 -2
- data/lib/phrase/api/job_template_locales_api.rb +14 -14
- data/lib/phrase/api/job_templates_api.rb +72 -72
- data/lib/phrase/api/jobs_api.rb +4 -4
- data/lib/phrase/api/keys_api.rb +4 -4
- data/lib/phrase/api/locales_api.rb +14 -8
- data/lib/phrase/api/members_api.rb +2 -2
- data/lib/phrase/api/notification_groups_api.rb +8 -8
- data/lib/phrase/api/notifications_api.rb +11 -8
- data/lib/phrase/api/orders_api.rb +2 -2
- data/lib/phrase/api/projects_api.rb +2 -2
- data/lib/phrase/api/releases_api.rb +2 -2
- data/lib/phrase/api/screenshot_markers_api.rb +2 -2
- data/lib/phrase/api/screenshots_api.rb +2 -2
- data/lib/phrase/api/search_api.rb +2 -2
- data/lib/phrase/api/spaces_api.rb +4 -4
- data/lib/phrase/api/style_guides_api.rb +2 -2
- data/lib/phrase/api/tags_api.rb +2 -2
- data/lib/phrase/api/teams_api.rb +2 -2
- data/lib/phrase/api/translations_api.rb +28 -22
- data/lib/phrase/api/uploads_api.rb +4 -4
- data/lib/phrase/api/variables_api.rb +2 -2
- data/lib/phrase/api/versions_history_api.rb +2 -2
- data/lib/phrase/api/webhooks_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/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 +5 -2
- data/spec/api/accounts_api_spec.rb +1 -1
- data/spec/api/authorizations_api_spec.rb +1 -1
- data/spec/api/bitbucket_sync_api_spec.rb +2 -2
- data/spec/api/blacklisted_keys_api_spec.rb +1 -1
- data/spec/api/branches_api_spec.rb +4 -4
- data/spec/api/comments_api_spec.rb +1 -1
- data/spec/api/distributions_api_spec.rb +1 -1
- data/spec/api/documents_api_spec.rb +1 -1
- data/spec/api/git_hub_sync_api_spec.rb +2 -2
- data/spec/api/git_lab_sync_api_spec.rb +3 -3
- data/spec/api/glossaries_api_spec.rb +1 -1
- data/spec/api/glossary_terms_api_spec.rb +1 -1
- data/spec/api/invitations_api_spec.rb +1 -1
- data/spec/api/job_comments_api_spec.rb +3 -3
- data/spec/api/job_locales_api_spec.rb +1 -1
- data/spec/api/job_template_locales_api_spec.rb +5 -5
- data/spec/api/job_templates_api_spec.rb +18 -18
- data/spec/api/jobs_api_spec.rb +2 -2
- data/spec/api/keys_api_spec.rb +2 -2
- data/spec/api/locales_api_spec.rb +6 -4
- data/spec/api/members_api_spec.rb +1 -1
- data/spec/api/notification_groups_api_spec.rb +3 -3
- data/spec/api/notifications_api_spec.rb +4 -3
- data/spec/api/orders_api_spec.rb +1 -1
- data/spec/api/projects_api_spec.rb +1 -1
- data/spec/api/releases_api_spec.rb +1 -1
- data/spec/api/screenshot_markers_api_spec.rb +1 -1
- data/spec/api/screenshots_api_spec.rb +1 -1
- data/spec/api/search_api_spec.rb +1 -1
- data/spec/api/spaces_api_spec.rb +2 -2
- data/spec/api/style_guides_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +1 -1
- data/spec/api/teams_api_spec.rb +1 -1
- data/spec/api/translations_api_spec.rb +13 -11
- data/spec/api/uploads_api_spec.rb +2 -2
- data/spec/api/variables_api_spec.rb +1 -1
- data/spec/api/versions_history_api_spec.rb +1 -1
- data/spec/api/webhooks_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/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 +237 -225
|
@@ -12,8 +12,8 @@ module Phrase
|
|
|
12
12
|
# @param [Hash] opts the optional parameters
|
|
13
13
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
14
14
|
# @option opts [Integer] :page Page number
|
|
15
|
-
# @option opts [Integer] :per_page
|
|
16
|
-
# @return [Array<
|
|
15
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
16
|
+
# @return [Array<NotificationGroupDetail>]
|
|
17
17
|
def notification_groups_list(opts = {})
|
|
18
18
|
data, _status_code, _headers = notification_groups_list_with_http_info(opts)
|
|
19
19
|
data
|
|
@@ -24,8 +24,8 @@ module Phrase
|
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
26
26
|
# @option opts [Integer] :page Page number
|
|
27
|
-
# @option opts [Integer] :per_page
|
|
28
|
-
# @return [Array<(Response<(Array<
|
|
27
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
28
|
+
# @return [Array<(Response<(Array<NotificationGroupDetail>)>, Integer, Hash)>] Response<(Array<NotificationGroupDetail>)> data, response status code and response headers
|
|
29
29
|
def notification_groups_list_with_http_info(opts = {})
|
|
30
30
|
if @api_client.config.debugging
|
|
31
31
|
@api_client.config.logger.debug 'Calling API: NotificationGroupsApi.notification_groups_list ...'
|
|
@@ -51,7 +51,7 @@ module Phrase
|
|
|
51
51
|
post_body = opts[:body]
|
|
52
52
|
|
|
53
53
|
# return_type
|
|
54
|
-
return_type = opts[:return_type] || 'Array<
|
|
54
|
+
return_type = opts[:return_type] || 'Array<NotificationGroupDetail>'
|
|
55
55
|
|
|
56
56
|
# auth_names
|
|
57
57
|
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
@@ -77,7 +77,7 @@ module Phrase
|
|
|
77
77
|
# Mark all notification groups of the current user as read
|
|
78
78
|
# @param [Hash] opts the optional parameters
|
|
79
79
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
80
|
-
# @return [Array<
|
|
80
|
+
# @return [Array<NotificationGroupDetail>]
|
|
81
81
|
def notification_groups_mark_all_as_read(opts = {})
|
|
82
82
|
data, _status_code, _headers = notification_groups_mark_all_as_read_with_http_info(opts)
|
|
83
83
|
data
|
|
@@ -87,7 +87,7 @@ module Phrase
|
|
|
87
87
|
# Mark all notification groups of the current user as read
|
|
88
88
|
# @param [Hash] opts the optional parameters
|
|
89
89
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
90
|
-
# @return [Array<(Response<(Array<
|
|
90
|
+
# @return [Array<(Response<(Array<NotificationGroupDetail>)>, Integer, Hash)>] Response<(Array<NotificationGroupDetail>)> data, response status code and response headers
|
|
91
91
|
def notification_groups_mark_all_as_read_with_http_info(opts = {})
|
|
92
92
|
if @api_client.config.debugging
|
|
93
93
|
@api_client.config.logger.debug 'Calling API: NotificationGroupsApi.notification_groups_mark_all_as_read ...'
|
|
@@ -111,7 +111,7 @@ module Phrase
|
|
|
111
111
|
post_body = opts[:body]
|
|
112
112
|
|
|
113
113
|
# return_type
|
|
114
|
-
return_type = opts[:return_type] || 'Array<
|
|
114
|
+
return_type = opts[:return_type] || 'Array<NotificationGroupDetail>'
|
|
115
115
|
|
|
116
116
|
# auth_names
|
|
117
117
|
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
@@ -12,8 +12,9 @@ module Phrase
|
|
|
12
12
|
# @param [Hash] opts the optional parameters
|
|
13
13
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
14
14
|
# @option opts [Integer] :page Page number
|
|
15
|
-
# @option opts [Integer] :per_page
|
|
16
|
-
# @
|
|
15
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
16
|
+
# @option opts [Boolean] :unseen Include only unseen notifications
|
|
17
|
+
# @return [Array<Notification>]
|
|
17
18
|
def notifications_list(opts = {})
|
|
18
19
|
data, _status_code, _headers = notifications_list_with_http_info(opts)
|
|
19
20
|
data
|
|
@@ -24,8 +25,9 @@ module Phrase
|
|
|
24
25
|
# @param [Hash] opts the optional parameters
|
|
25
26
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
26
27
|
# @option opts [Integer] :page Page number
|
|
27
|
-
# @option opts [Integer] :per_page
|
|
28
|
-
# @
|
|
28
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
29
|
+
# @option opts [Boolean] :unseen Include only unseen notifications
|
|
30
|
+
# @return [Array<(Response<(Array<Notification>)>, Integer, Hash)>] Response<(Array<Notification>)> data, response status code and response headers
|
|
29
31
|
def notifications_list_with_http_info(opts = {})
|
|
30
32
|
if @api_client.config.debugging
|
|
31
33
|
@api_client.config.logger.debug 'Calling API: NotificationsApi.notifications_list ...'
|
|
@@ -37,6 +39,7 @@ module Phrase
|
|
|
37
39
|
query_params = opts[:query_params] || {}
|
|
38
40
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
39
41
|
query_params[:'per_page'] = opts[:'per_page'] if !opts[:'per_page'].nil?
|
|
42
|
+
query_params[:'unseen'] = opts[:'unseen'] if !opts[:'unseen'].nil?
|
|
40
43
|
|
|
41
44
|
# header parameters
|
|
42
45
|
header_params = opts[:header_params] || {}
|
|
@@ -51,7 +54,7 @@ module Phrase
|
|
|
51
54
|
post_body = opts[:body]
|
|
52
55
|
|
|
53
56
|
# return_type
|
|
54
|
-
return_type = opts[:return_type] || 'Array<
|
|
57
|
+
return_type = opts[:return_type] || 'Array<Notification>'
|
|
55
58
|
|
|
56
59
|
# auth_names
|
|
57
60
|
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
@@ -77,7 +80,7 @@ module Phrase
|
|
|
77
80
|
# Mark all notifications of the current user as read
|
|
78
81
|
# @param [Hash] opts the optional parameters
|
|
79
82
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
80
|
-
# @return [Array<
|
|
83
|
+
# @return [Array<Notification>]
|
|
81
84
|
def notifications_mark_all_as_read(opts = {})
|
|
82
85
|
data, _status_code, _headers = notifications_mark_all_as_read_with_http_info(opts)
|
|
83
86
|
data
|
|
@@ -87,7 +90,7 @@ module Phrase
|
|
|
87
90
|
# Mark all notifications of the current user as read
|
|
88
91
|
# @param [Hash] opts the optional parameters
|
|
89
92
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
90
|
-
# @return [Array<(Response<(Array<
|
|
93
|
+
# @return [Array<(Response<(Array<Notification>)>, Integer, Hash)>] Response<(Array<Notification>)> data, response status code and response headers
|
|
91
94
|
def notifications_mark_all_as_read_with_http_info(opts = {})
|
|
92
95
|
if @api_client.config.debugging
|
|
93
96
|
@api_client.config.logger.debug 'Calling API: NotificationsApi.notifications_mark_all_as_read ...'
|
|
@@ -111,7 +114,7 @@ module Phrase
|
|
|
111
114
|
post_body = opts[:body]
|
|
112
115
|
|
|
113
116
|
# return_type
|
|
114
|
-
return_type = opts[:return_type] || 'Array<
|
|
117
|
+
return_type = opts[:return_type] || 'Array<Notification>'
|
|
115
118
|
|
|
116
119
|
# auth_names
|
|
117
120
|
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
|
@@ -315,7 +315,7 @@ module Phrase
|
|
|
315
315
|
# @param [Hash] opts the optional parameters
|
|
316
316
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
317
317
|
# @option opts [Integer] :page Page number
|
|
318
|
-
# @option opts [Integer] :per_page
|
|
318
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
319
319
|
# @option opts [String] :branch specify the branch to use
|
|
320
320
|
# @return [Array<TranslationOrder>]
|
|
321
321
|
def orders_list(project_id, opts = {})
|
|
@@ -329,7 +329,7 @@ module Phrase
|
|
|
329
329
|
# @param [Hash] opts the optional parameters
|
|
330
330
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
331
331
|
# @option opts [Integer] :page Page number
|
|
332
|
-
# @option opts [Integer] :per_page
|
|
332
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
333
333
|
# @option opts [String] :branch specify the branch to use
|
|
334
334
|
# @return [Array<(Response<(Array<TranslationOrder>)>, Integer, Hash)>] Response<(Array<TranslationOrder>)> data, response status code and response headers
|
|
335
335
|
def orders_list_with_http_info(project_id, opts = {})
|
|
@@ -284,7 +284,7 @@ module Phrase
|
|
|
284
284
|
# @param [Hash] opts the optional parameters
|
|
285
285
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
286
286
|
# @option opts [Integer] :page Page number
|
|
287
|
-
# @option opts [Integer] :per_page
|
|
287
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
288
288
|
# @option opts [String] :account_id Filter by Account ID
|
|
289
289
|
# @option opts [String] :sort_by Sort projects. Valid options are \"name_asc\", \"name_desc\", \"updated_at_asc\", \"updated_at_desc\", \"space_asc\" and \"space_desc\".
|
|
290
290
|
# @option opts [Array<String>] :filters Filter projects. Valid options are [\"favorites\"].
|
|
@@ -299,7 +299,7 @@ module Phrase
|
|
|
299
299
|
# @param [Hash] opts the optional parameters
|
|
300
300
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
301
301
|
# @option opts [Integer] :page Page number
|
|
302
|
-
# @option opts [Integer] :per_page
|
|
302
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
303
303
|
# @option opts [String] :account_id Filter by Account ID
|
|
304
304
|
# @option opts [String] :sort_by Sort projects. Valid options are \"name_asc\", \"name_desc\", \"updated_at_asc\", \"updated_at_desc\", \"space_asc\" and \"space_desc\".
|
|
305
305
|
# @option opts [Array<String>] :filters Filter projects. Valid options are [\"favorites\"].
|
|
@@ -412,7 +412,7 @@ module Phrase
|
|
|
412
412
|
# @param [Hash] opts the optional parameters
|
|
413
413
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
414
414
|
# @option opts [Integer] :page Page number
|
|
415
|
-
# @option opts [Integer] :per_page
|
|
415
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
416
416
|
# @return [Array<ReleasePreview>]
|
|
417
417
|
def releases_list(account_id, distribution_id, opts = {})
|
|
418
418
|
data, _status_code, _headers = releases_list_with_http_info(account_id, distribution_id, opts)
|
|
@@ -426,7 +426,7 @@ module Phrase
|
|
|
426
426
|
# @param [Hash] opts the optional parameters
|
|
427
427
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
428
428
|
# @option opts [Integer] :page Page number
|
|
429
|
-
# @option opts [Integer] :per_page
|
|
429
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
430
430
|
# @return [Array<(Response<(Array<ReleasePreview>)>, Integer, Hash)>] Response<(Array<ReleasePreview>)> data, response status code and response headers
|
|
431
431
|
def releases_list_with_http_info(account_id, distribution_id, opts = {})
|
|
432
432
|
if @api_client.config.debugging
|
|
@@ -328,7 +328,7 @@ module Phrase
|
|
|
328
328
|
# @param [Hash] opts the optional parameters
|
|
329
329
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
330
330
|
# @option opts [Integer] :page Page number
|
|
331
|
-
# @option opts [Integer] :per_page
|
|
331
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
332
332
|
# @option opts [String] :branch specify the branch to use
|
|
333
333
|
# @return [Array<ScreenshotMarker>]
|
|
334
334
|
def screenshot_markers_list(project_id, id, opts = {})
|
|
@@ -343,7 +343,7 @@ module Phrase
|
|
|
343
343
|
# @param [Hash] opts the optional parameters
|
|
344
344
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
345
345
|
# @option opts [Integer] :page Page number
|
|
346
|
-
# @option opts [Integer] :per_page
|
|
346
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
347
347
|
# @option opts [String] :branch specify the branch to use
|
|
348
348
|
# @return [Array<(Response<(Array<ScreenshotMarker>)>, Integer, Hash)>] Response<(Array<ScreenshotMarker>)> data, response status code and response headers
|
|
349
349
|
def screenshot_markers_list_with_http_info(project_id, id, opts = {})
|
|
@@ -321,7 +321,7 @@ module Phrase
|
|
|
321
321
|
# @param [Hash] opts the optional parameters
|
|
322
322
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
323
323
|
# @option opts [Integer] :page Page number
|
|
324
|
-
# @option opts [Integer] :per_page
|
|
324
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
325
325
|
# @option opts [String] :branch specify the branch to use
|
|
326
326
|
# @option opts [String] :key_id filter by key
|
|
327
327
|
# @return [Array<Screenshot>]
|
|
@@ -336,7 +336,7 @@ module Phrase
|
|
|
336
336
|
# @param [Hash] opts the optional parameters
|
|
337
337
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
338
338
|
# @option opts [Integer] :page Page number
|
|
339
|
-
# @option opts [Integer] :per_page
|
|
339
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
340
340
|
# @option opts [String] :branch specify the branch to use
|
|
341
341
|
# @option opts [String] :key_id filter by key
|
|
342
342
|
# @return [Array<(Response<(Array<Screenshot>)>, Integer, Hash)>] Response<(Array<Screenshot>)> data, response status code and response headers
|
|
@@ -8,7 +8,7 @@ module Phrase
|
|
|
8
8
|
@api_client = api_client
|
|
9
9
|
end
|
|
10
10
|
# Search across projects
|
|
11
|
-
# Search for keys and translations in all account projects
|
|
11
|
+
# Search for keys and translations in all account projects <br><br><i>Note: Search is limited to 10000 results and may not include recently updated data depending on the project sizes.</i>
|
|
12
12
|
# @param account_id [String] Account ID
|
|
13
13
|
# @param search_in_account_parameters [SearchInAccountParameters]
|
|
14
14
|
# @param [Hash] opts the optional parameters
|
|
@@ -20,7 +20,7 @@ module Phrase
|
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
# Search across projects
|
|
23
|
-
# Search for keys and translations in all account projects
|
|
23
|
+
# Search for keys and translations in all account projects <br><br><i>Note: Search is limited to 10000 results and may not include recently updated data depending on the project sizes.</i>
|
|
24
24
|
# @param account_id [String] Account ID
|
|
25
25
|
# @param search_in_account_parameters [SearchInAccountParameters]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
@@ -309,7 +309,7 @@ module Phrase
|
|
|
309
309
|
# @param [Hash] opts the optional parameters
|
|
310
310
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
311
311
|
# @option opts [Integer] :page Page number
|
|
312
|
-
# @option opts [Integer] :per_page
|
|
312
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
313
313
|
# @return [Array<Space>]
|
|
314
314
|
def spaces_list(account_id, opts = {})
|
|
315
315
|
data, _status_code, _headers = spaces_list_with_http_info(account_id, opts)
|
|
@@ -322,7 +322,7 @@ module Phrase
|
|
|
322
322
|
# @param [Hash] opts the optional parameters
|
|
323
323
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
324
324
|
# @option opts [Integer] :page Page number
|
|
325
|
-
# @option opts [Integer] :per_page
|
|
325
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
326
326
|
# @return [Array<(Response<(Array<Space>)>, Integer, Hash)>] Response<(Array<Space>)> data, response status code and response headers
|
|
327
327
|
def spaces_list_with_http_info(account_id, opts = {})
|
|
328
328
|
if @api_client.config.debugging
|
|
@@ -536,7 +536,7 @@ module Phrase
|
|
|
536
536
|
# @param [Hash] opts the optional parameters
|
|
537
537
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
538
538
|
# @option opts [Integer] :page Page number
|
|
539
|
-
# @option opts [Integer] :per_page
|
|
539
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
540
540
|
# @return [Array<Project>]
|
|
541
541
|
def spaces_projects_list(account_id, space_id, opts = {})
|
|
542
542
|
data, _status_code, _headers = spaces_projects_list_with_http_info(account_id, space_id, opts)
|
|
@@ -550,7 +550,7 @@ module Phrase
|
|
|
550
550
|
# @param [Hash] opts the optional parameters
|
|
551
551
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
552
552
|
# @option opts [Integer] :page Page number
|
|
553
|
-
# @option opts [Integer] :per_page
|
|
553
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
554
554
|
# @return [Array<(Response<(Array<Project>)>, Integer, Hash)>] Response<(Array<Project>)> data, response status code and response headers
|
|
555
555
|
def spaces_projects_list_with_http_info(account_id, space_id, opts = {})
|
|
556
556
|
if @api_client.config.debugging
|
|
@@ -309,7 +309,7 @@ module Phrase
|
|
|
309
309
|
# @param [Hash] opts the optional parameters
|
|
310
310
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
311
311
|
# @option opts [Integer] :page Page number
|
|
312
|
-
# @option opts [Integer] :per_page
|
|
312
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
313
313
|
# @return [Array<Styleguide>]
|
|
314
314
|
def styleguides_list(project_id, opts = {})
|
|
315
315
|
data, _status_code, _headers = styleguides_list_with_http_info(project_id, opts)
|
|
@@ -322,7 +322,7 @@ module Phrase
|
|
|
322
322
|
# @param [Hash] opts the optional parameters
|
|
323
323
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
324
324
|
# @option opts [Integer] :page Page number
|
|
325
|
-
# @option opts [Integer] :per_page
|
|
325
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
326
326
|
# @return [Array<(Response<(Array<Styleguide>)>, Integer, Hash)>] Response<(Array<Styleguide>)> data, response status code and response headers
|
|
327
327
|
def styleguides_list_with_http_info(project_id, opts = {})
|
|
328
328
|
if @api_client.config.debugging
|
data/lib/phrase/api/tags_api.rb
CHANGED
|
@@ -235,7 +235,7 @@ module Phrase
|
|
|
235
235
|
# @param [Hash] opts the optional parameters
|
|
236
236
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
237
237
|
# @option opts [Integer] :page Page number
|
|
238
|
-
# @option opts [Integer] :per_page
|
|
238
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
239
239
|
# @option opts [String] :branch specify the branch to use
|
|
240
240
|
# @return [Array<Tag>]
|
|
241
241
|
def tags_list(project_id, opts = {})
|
|
@@ -249,7 +249,7 @@ module Phrase
|
|
|
249
249
|
# @param [Hash] opts the optional parameters
|
|
250
250
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
251
251
|
# @option opts [Integer] :page Page number
|
|
252
|
-
# @option opts [Integer] :per_page
|
|
252
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
253
253
|
# @option opts [String] :branch specify the branch to use
|
|
254
254
|
# @return [Array<(Response<(Array<Tag>)>, Integer, Hash)>] Response<(Array<Tag>)> data, response status code and response headers
|
|
255
255
|
def tags_list_with_http_info(project_id, opts = {})
|
data/lib/phrase/api/teams_api.rb
CHANGED
|
@@ -309,7 +309,7 @@ module Phrase
|
|
|
309
309
|
# @param [Hash] opts the optional parameters
|
|
310
310
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
311
311
|
# @option opts [Integer] :page Page number
|
|
312
|
-
# @option opts [Integer] :per_page
|
|
312
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
313
313
|
# @return [Array<Team>]
|
|
314
314
|
def teams_list(account_id, opts = {})
|
|
315
315
|
data, _status_code, _headers = teams_list_with_http_info(account_id, opts)
|
|
@@ -322,7 +322,7 @@ module Phrase
|
|
|
322
322
|
# @param [Hash] opts the optional parameters
|
|
323
323
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
324
324
|
# @option opts [Integer] :page Page number
|
|
325
|
-
# @option opts [Integer] :per_page
|
|
325
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
326
326
|
# @return [Array<(Response<(Array<Team>)>, Integer, Hash)>] Response<(Array<Team>)> data, response status code and response headers
|
|
327
327
|
def teams_list_with_http_info(account_id, opts = {})
|
|
328
328
|
if @api_client.config.debugging
|
|
@@ -161,7 +161,7 @@ module Phrase
|
|
|
161
161
|
return response, status_code, headers
|
|
162
162
|
end
|
|
163
163
|
|
|
164
|
-
#
|
|
164
|
+
# Include a translation
|
|
165
165
|
# Remove exclude from export flag from an existing translation.
|
|
166
166
|
# @param project_id [String] Project ID
|
|
167
167
|
# @param id [String] ID
|
|
@@ -174,7 +174,7 @@ module Phrase
|
|
|
174
174
|
data
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
#
|
|
177
|
+
# Include a translation
|
|
178
178
|
# Remove exclude from export flag from an existing translation.
|
|
179
179
|
# @param project_id [String] Project ID
|
|
180
180
|
# @param id [String] ID
|
|
@@ -643,7 +643,7 @@ module Phrase
|
|
|
643
643
|
# @param [Hash] opts the optional parameters
|
|
644
644
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
645
645
|
# @option opts [Integer] :page Page number
|
|
646
|
-
# @option opts [Integer] :per_page
|
|
646
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
647
647
|
# @option opts [String] :branch specify the branch to use
|
|
648
648
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
649
649
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
@@ -661,7 +661,7 @@ module Phrase
|
|
|
661
661
|
# @param [Hash] opts the optional parameters
|
|
662
662
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
663
663
|
# @option opts [Integer] :page Page number
|
|
664
|
-
# @option opts [Integer] :per_page
|
|
664
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
665
665
|
# @option opts [String] :branch specify the branch to use
|
|
666
666
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
667
667
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
@@ -733,11 +733,11 @@ module Phrase
|
|
|
733
733
|
# @param [Hash] opts the optional parameters
|
|
734
734
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
735
735
|
# @option opts [Integer] :page Page number
|
|
736
|
-
# @option opts [Integer] :per_page
|
|
736
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
737
737
|
# @option opts [String] :branch specify the branch to use
|
|
738
738
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
739
739
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
740
|
-
# @option opts [String] :q 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>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</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>.
|
|
740
|
+
# @option opts [String] :q Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><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>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</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>.
|
|
741
741
|
# @return [Array<Translation>]
|
|
742
742
|
def translations_by_locale(project_id, locale_id, opts = {})
|
|
743
743
|
data, _status_code, _headers = translations_by_locale_with_http_info(project_id, locale_id, opts)
|
|
@@ -751,11 +751,11 @@ module Phrase
|
|
|
751
751
|
# @param [Hash] opts the optional parameters
|
|
752
752
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
753
753
|
# @option opts [Integer] :page Page number
|
|
754
|
-
# @option opts [Integer] :per_page
|
|
754
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
755
755
|
# @option opts [String] :branch specify the branch to use
|
|
756
756
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
757
757
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
758
|
-
# @option opts [String] :q 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>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</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>.
|
|
758
|
+
# @option opts [String] :q Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><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>unverified:{true|false}</code> for verification status</li> <li><code>tags:XYZ</code> for tags on the translation</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>.
|
|
759
759
|
# @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
|
|
760
760
|
def translations_by_locale_with_http_info(project_id, locale_id, opts = {})
|
|
761
761
|
if @api_client.config.debugging
|
|
@@ -816,7 +816,7 @@ module Phrase
|
|
|
816
816
|
return response, status_code, headers
|
|
817
817
|
end
|
|
818
818
|
|
|
819
|
-
#
|
|
819
|
+
# Exclude translations by query
|
|
820
820
|
# Exclude translations matching query from locale export.
|
|
821
821
|
# @param project_id [String] Project ID
|
|
822
822
|
# @param translations_exclude_parameters [TranslationsExcludeParameters]
|
|
@@ -828,7 +828,7 @@ module Phrase
|
|
|
828
828
|
data
|
|
829
829
|
end
|
|
830
830
|
|
|
831
|
-
#
|
|
831
|
+
# Exclude translations by query
|
|
832
832
|
# Exclude translations matching query from locale export.
|
|
833
833
|
# @param project_id [String] Project ID
|
|
834
834
|
# @param translations_exclude_parameters [TranslationsExcludeParameters]
|
|
@@ -890,7 +890,7 @@ module Phrase
|
|
|
890
890
|
return response, status_code, headers
|
|
891
891
|
end
|
|
892
892
|
|
|
893
|
-
#
|
|
893
|
+
# Include translations by query
|
|
894
894
|
# Include translations matching query in locale export.
|
|
895
895
|
# @param project_id [String] Project ID
|
|
896
896
|
# @param translations_include_parameters [TranslationsIncludeParameters]
|
|
@@ -902,7 +902,7 @@ module Phrase
|
|
|
902
902
|
data
|
|
903
903
|
end
|
|
904
904
|
|
|
905
|
-
#
|
|
905
|
+
# Include translations by query
|
|
906
906
|
# Include translations matching query in locale export.
|
|
907
907
|
# @param project_id [String] Project ID
|
|
908
908
|
# @param translations_include_parameters [TranslationsIncludeParameters]
|
|
@@ -969,12 +969,14 @@ module Phrase
|
|
|
969
969
|
# @param project_id [String] Project ID
|
|
970
970
|
# @param [Hash] opts the optional parameters
|
|
971
971
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
972
|
+
# @option opts [String] :if_modified_since Last modified condition, see <a href=\"#overview--conditional-get-requests--http-caching\">Conditional GET requests / HTTP Caching</a> (optional)
|
|
973
|
+
# @option opts [String] :if_none_match ETag condition, see <a href=\"#overview--conditional-get-requests--http-caching\">Conditional GET requests / HTTP Caching</a> (optional)
|
|
972
974
|
# @option opts [Integer] :page Page number
|
|
973
|
-
# @option opts [Integer] :per_page
|
|
975
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
974
976
|
# @option opts [String] :branch specify the branch to use
|
|
975
977
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
976
978
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
977
|
-
# @option opts [String] :q 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>.
|
|
979
|
+
# @option opts [String] :q Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><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>.
|
|
978
980
|
# @return [Array<Translation>]
|
|
979
981
|
def translations_list(project_id, opts = {})
|
|
980
982
|
data, _status_code, _headers = translations_list_with_http_info(project_id, opts)
|
|
@@ -986,12 +988,14 @@ module Phrase
|
|
|
986
988
|
# @param project_id [String] Project ID
|
|
987
989
|
# @param [Hash] opts the optional parameters
|
|
988
990
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
991
|
+
# @option opts [String] :if_modified_since Last modified condition, see <a href=\"#overview--conditional-get-requests--http-caching\">Conditional GET requests / HTTP Caching</a> (optional)
|
|
992
|
+
# @option opts [String] :if_none_match ETag condition, see <a href=\"#overview--conditional-get-requests--http-caching\">Conditional GET requests / HTTP Caching</a> (optional)
|
|
989
993
|
# @option opts [Integer] :page Page number
|
|
990
|
-
# @option opts [Integer] :per_page
|
|
994
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
991
995
|
# @option opts [String] :branch specify the branch to use
|
|
992
996
|
# @option opts [String] :sort Sort criteria. Can be one of: key_name, created_at, updated_at.
|
|
993
997
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
|
994
|
-
# @option opts [String] :q 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>.
|
|
998
|
+
# @option opts [String] :q Specify a query to find translations by content (including wildcards).<br><br> <i>Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).</i><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>.
|
|
995
999
|
# @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
|
|
996
1000
|
def translations_list_with_http_info(project_id, opts = {})
|
|
997
1001
|
if @api_client.config.debugging
|
|
@@ -1018,6 +1022,8 @@ module Phrase
|
|
|
1018
1022
|
# HTTP header 'Accept' (if needed)
|
|
1019
1023
|
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
1020
1024
|
header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
|
|
1025
|
+
header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil?
|
|
1026
|
+
header_params[:'If-None-Match'] = opts[:'if_none_match'] if !opts[:'if_none_match'].nil?
|
|
1021
1027
|
|
|
1022
1028
|
# form parameters
|
|
1023
1029
|
form_params = opts[:form_params] || {}
|
|
@@ -1129,7 +1135,7 @@ module Phrase
|
|
|
1129
1135
|
# @param [Hash] opts the optional parameters
|
|
1130
1136
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
1131
1137
|
# @option opts [Integer] :page Page number
|
|
1132
|
-
# @option opts [Integer] :per_page
|
|
1138
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
1133
1139
|
# @return [Array<Translation>]
|
|
1134
1140
|
def translations_search(project_id, translations_search_parameters, opts = {})
|
|
1135
1141
|
data, _status_code, _headers = translations_search_with_http_info(project_id, translations_search_parameters, opts)
|
|
@@ -1143,7 +1149,7 @@ module Phrase
|
|
|
1143
1149
|
# @param [Hash] opts the optional parameters
|
|
1144
1150
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
1145
1151
|
# @option opts [Integer] :page Page number
|
|
1146
|
-
# @option opts [Integer] :per_page
|
|
1152
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
1147
1153
|
# @return [Array<(Response<(Array<Translation>)>, Integer, Hash)>] Response<(Array<Translation>)> data, response status code and response headers
|
|
1148
1154
|
def translations_search_with_http_info(project_id, translations_search_parameters, opts = {})
|
|
1149
1155
|
if @api_client.config.debugging
|
|
@@ -1202,7 +1208,7 @@ module Phrase
|
|
|
1202
1208
|
return response, status_code, headers
|
|
1203
1209
|
end
|
|
1204
1210
|
|
|
1205
|
-
#
|
|
1211
|
+
# Unverify translations by query
|
|
1206
1212
|
# Mark translations matching query as unverified.
|
|
1207
1213
|
# @param project_id [String] Project ID
|
|
1208
1214
|
# @param translations_unverify_parameters [TranslationsUnverifyParameters]
|
|
@@ -1214,7 +1220,7 @@ module Phrase
|
|
|
1214
1220
|
data
|
|
1215
1221
|
end
|
|
1216
1222
|
|
|
1217
|
-
#
|
|
1223
|
+
# Unverify translations by query
|
|
1218
1224
|
# Mark translations matching query as unverified.
|
|
1219
1225
|
# @param project_id [String] Project ID
|
|
1220
1226
|
# @param translations_unverify_parameters [TranslationsUnverifyParameters]
|
|
@@ -1276,7 +1282,7 @@ module Phrase
|
|
|
1276
1282
|
return response, status_code, headers
|
|
1277
1283
|
end
|
|
1278
1284
|
|
|
1279
|
-
# Verify translations
|
|
1285
|
+
# Verify translations by query
|
|
1280
1286
|
# Verify translations matching query.
|
|
1281
1287
|
# @param project_id [String] Project ID
|
|
1282
1288
|
# @param translations_verify_parameters [TranslationsVerifyParameters]
|
|
@@ -1288,7 +1294,7 @@ module Phrase
|
|
|
1288
1294
|
data
|
|
1289
1295
|
end
|
|
1290
1296
|
|
|
1291
|
-
# Verify translations
|
|
1297
|
+
# Verify translations by query
|
|
1292
1298
|
# Verify translations matching query.
|
|
1293
1299
|
# @param project_id [String] Project ID
|
|
1294
1300
|
# @param translations_verify_parameters [TranslationsVerifyParameters]
|
|
@@ -120,7 +120,7 @@ module Phrase
|
|
|
120
120
|
return response, status_code, headers
|
|
121
121
|
end
|
|
122
122
|
|
|
123
|
-
#
|
|
123
|
+
# Get a single upload
|
|
124
124
|
# View details and summary for a single upload.
|
|
125
125
|
# @param project_id [String] Project ID
|
|
126
126
|
# @param id [String] ID
|
|
@@ -133,7 +133,7 @@ module Phrase
|
|
|
133
133
|
data
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
-
#
|
|
136
|
+
# Get a single upload
|
|
137
137
|
# View details and summary for a single upload.
|
|
138
138
|
# @param project_id [String] Project ID
|
|
139
139
|
# @param id [String] ID
|
|
@@ -201,7 +201,7 @@ module Phrase
|
|
|
201
201
|
# @param [Hash] opts the optional parameters
|
|
202
202
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
203
203
|
# @option opts [Integer] :page Page number
|
|
204
|
-
# @option opts [Integer] :per_page
|
|
204
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
205
205
|
# @option opts [String] :branch specify the branch to use
|
|
206
206
|
# @return [Array<Upload>]
|
|
207
207
|
def uploads_list(project_id, opts = {})
|
|
@@ -215,7 +215,7 @@ module Phrase
|
|
|
215
215
|
# @param [Hash] opts the optional parameters
|
|
216
216
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
217
217
|
# @option opts [Integer] :page Page number
|
|
218
|
-
# @option opts [Integer] :per_page
|
|
218
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
219
219
|
# @option opts [String] :branch specify the branch to use
|
|
220
220
|
# @return [Array<(Response<(Array<Upload>)>, Integer, Hash)>] Response<(Array<Upload>)> data, response status code and response headers
|
|
221
221
|
def uploads_list_with_http_info(project_id, opts = {})
|
|
@@ -309,7 +309,7 @@ module Phrase
|
|
|
309
309
|
# @param [Hash] opts the optional parameters
|
|
310
310
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
311
311
|
# @option opts [Integer] :page Page number
|
|
312
|
-
# @option opts [Integer] :per_page
|
|
312
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
313
313
|
# @return [Array<Variable>]
|
|
314
314
|
def variables_list(project_id, opts = {})
|
|
315
315
|
data, _status_code, _headers = variables_list_with_http_info(project_id, opts)
|
|
@@ -322,7 +322,7 @@ module Phrase
|
|
|
322
322
|
# @param [Hash] opts the optional parameters
|
|
323
323
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
|
324
324
|
# @option opts [Integer] :page Page number
|
|
325
|
-
# @option opts [Integer] :per_page
|
|
325
|
+
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
|
326
326
|
# @return [Array<(Response<(Array<Variable>)>, Integer, Hash)>] Response<(Array<Variable>)> data, response status code and response headers
|
|
327
327
|
def variables_list_with_http_info(project_id, opts = {})
|
|
328
328
|
if @api_client.config.debugging
|