phrase 4.5.0 → 4.7.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/CHANGELOG.md +16 -0
- data/README.md +3 -3
- data/docs/BranchesApi.md +3 -3
- data/docs/DistributionCreateParameters.md +1 -1
- data/docs/DistributionUpdateParameters.md +1 -1
- data/docs/InvitationCreateParameters.md +2 -2
- data/docs/InvitationsApi.md +7 -7
- data/docs/JobsApi.md +4 -4
- data/docs/KeyCreateParameters.md +3 -1
- data/docs/KeyPreview.md +3 -1
- data/docs/KeyUpdateParameters.md +3 -1
- data/docs/KeysApi.md +4 -4
- data/docs/KeysExcludeParameters.md +1 -1
- data/docs/KeysIncludeParameters.md +1 -1
- data/docs/KeysSearchParameters.md +1 -1
- data/docs/KeysTagParameters.md +1 -1
- data/docs/KeysUntagParameters.md +1 -1
- data/docs/Locale.md +2 -0
- data/docs/LocaleCreateParameters.md +3 -3
- data/docs/LocaleDetails.md +2 -0
- data/docs/LocaleDownloadCreateParameters.md +7 -5
- data/docs/LocaleDownloadsApi.md +8 -8
- data/docs/LocaleUpdateParameters.md +3 -3
- data/docs/LocalesApi.md +17 -15
- data/docs/MemberUpdateParameters.md +1 -1
- data/docs/MembersApi.md +5 -5
- data/docs/OrdersApi.md +1 -1
- data/docs/ProjectCreateParameters.md +5 -5
- data/docs/ProjectUpdateParameters.md +6 -6
- data/docs/ReleaseTriggersApi.md +1 -1
- data/docs/ScreenshotMarkerCreateParameters.md +1 -1
- data/docs/ScreenshotMarkerUpdateParameters.md +1 -1
- data/docs/ScreenshotUpdateParameters.md +1 -1
- data/docs/SearchApi.md +1 -1
- data/docs/TagsApi.md +2 -0
- data/docs/TranslationCreateParameters.md +1 -1
- data/docs/TranslationKey.md +2 -0
- data/docs/TranslationKeyDetails.md +2 -0
- data/docs/TranslationUpdateParameters.md +1 -1
- data/docs/TranslationsApi.md +13 -13
- 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/TranslationsUnreviewParameters.md +1 -1
- data/docs/TranslationsUnverifyParameters.md +1 -1
- data/docs/TranslationsVerifyParameters.md +1 -1
- data/lib/phrase/api/branches_api.rb +6 -6
- data/lib/phrase/api/invitations_api.rb +14 -14
- data/lib/phrase/api/jobs_api.rb +4 -4
- data/lib/phrase/api/keys_api.rb +4 -4
- data/lib/phrase/api/locale_downloads_api.rb +8 -8
- data/lib/phrase/api/locales_api.rb +17 -14
- data/lib/phrase/api/members_api.rb +10 -10
- data/lib/phrase/api/orders_api.rb +2 -2
- data/lib/phrase/api/release_triggers_api.rb +2 -2
- data/lib/phrase/api/search_api.rb +2 -2
- data/lib/phrase/api/tags_api.rb +3 -0
- data/lib/phrase/api/translations_api.rb +16 -16
- data/lib/phrase/models/distribution_create_parameters.rb +1 -1
- data/lib/phrase/models/distribution_update_parameters.rb +1 -1
- data/lib/phrase/models/invitation_create_parameters.rb +2 -2
- data/lib/phrase/models/key_create_parameters.rb +11 -1
- data/lib/phrase/models/key_preview.rb +13 -4
- data/lib/phrase/models/key_update_parameters.rb +11 -1
- data/lib/phrase/models/keys_exclude_parameters.rb +1 -1
- data/lib/phrase/models/keys_include_parameters.rb +1 -1
- 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.rb +12 -1
- data/lib/phrase/models/locale_create_parameters.rb +3 -3
- data/lib/phrase/models/locale_details.rb +12 -1
- data/lib/phrase/models/locale_download_create_parameters.rb +18 -8
- data/lib/phrase/models/locale_update_parameters.rb +3 -3
- data/lib/phrase/models/member_update_parameters.rb +1 -1
- data/lib/phrase/models/project_create_parameters.rb +4 -4
- data/lib/phrase/models/project_update_parameters.rb +5 -5
- data/lib/phrase/models/screenshot_marker_create_parameters.rb +1 -1
- data/lib/phrase/models/screenshot_marker_update_parameters.rb +1 -1
- data/lib/phrase/models/translation_create_parameters.rb +1 -1
- data/lib/phrase/models/translation_key.rb +10 -1
- data/lib/phrase/models/translation_key_details.rb +10 -1
- data/lib/phrase/models/translation_update_parameters.rb +1 -1
- 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_unreview_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/spec/api/branches_api_spec.rb +3 -3
- data/spec/api/invitations_api_spec.rb +7 -7
- data/spec/api/jobs_api_spec.rb +2 -2
- data/spec/api/keys_api_spec.rb +2 -2
- data/spec/api/locale_downloads_api_spec.rb +4 -4
- data/spec/api/members_api_spec.rb +5 -5
- data/spec/api/orders_api_spec.rb +1 -1
- data/spec/api/release_triggers_api_spec.rb +1 -1
- data/spec/api/search_api_spec.rb +1 -1
- data/spec/api/tags_api_spec.rb +1 -0
- data/spec/api/translations_api_spec.rb +8 -8
- data/spec/models/key_create_parameters_spec.rb +6 -0
- data/spec/models/key_preview_spec.rb +6 -0
- data/spec/models/key_update_parameters_spec.rb +6 -0
- data/spec/models/locale_details_spec.rb +6 -0
- data/spec/models/locale_download_create_parameters_spec.rb +6 -0
- data/spec/models/locale_spec.rb +6 -0
- data/spec/models/translation_key_details_spec.rb +6 -0
- data/spec/models/translation_key_spec.rb +6 -0
- metadata +231 -231
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
7
7
|
**branch** | **String** | specify the branch to use | [optional]
|
8
8
|
**locale_id** | **String** | specify the locale of the translations to be verified | [optional]
|
9
|
-
**q** | **String** | Specify a query to find translations by content (including wildcards)
|
9
|
+
**q** | **String** | Specify a query to find translations by content (including wildcards). *Note: Search is limited to 10000 results and may not include recently updated data (depending on the project size).* The following qualifiers are supported in the query: * `id:translation_id,...` for queries on a comma-separated list of ids * `tags:XYZ` for tags on the translation * `unverified:{true|false}` for verification status * `excluded:{true|false}` for exclusion status * `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries Find more examples [here](/en/api/strings/usage-examples). | [optional]
|
10
10
|
|
11
11
|
## Code Sample
|
12
12
|
|
@@ -8,7 +8,7 @@ module Phrase
|
|
8
8
|
@api_client = api_client
|
9
9
|
end
|
10
10
|
# Compare branches
|
11
|
-
# Compare branch with main branch.
|
11
|
+
# Compare branch with main branch. *Note: Comparing a branch may take several minutes depending on the project size.*
|
12
12
|
# @param project_id [String] Project ID
|
13
13
|
# @param name [String] name
|
14
14
|
# @param [Hash] opts the optional parameters
|
@@ -20,7 +20,7 @@ module Phrase
|
|
20
20
|
end
|
21
21
|
|
22
22
|
# Compare branches
|
23
|
-
# Compare branch with main branch.
|
23
|
+
# Compare branch with main branch. *Note: Comparing a branch may take several minutes depending on the project size.*
|
24
24
|
# @param project_id [String] Project ID
|
25
25
|
# @param name [String] name
|
26
26
|
# @param [Hash] opts the optional parameters
|
@@ -78,7 +78,7 @@ module Phrase
|
|
78
78
|
end
|
79
79
|
|
80
80
|
# Create a branch
|
81
|
-
# Create a new branch.
|
81
|
+
# Create a new branch. *Note: Creating a new branch may take several minutes depending on the project size.*
|
82
82
|
# @param project_id [String] Project ID
|
83
83
|
# @param branch_create_parameters [BranchCreateParameters]
|
84
84
|
# @param [Hash] opts the optional parameters
|
@@ -90,7 +90,7 @@ module Phrase
|
|
90
90
|
end
|
91
91
|
|
92
92
|
# Create a branch
|
93
|
-
# Create a new branch.
|
93
|
+
# Create a new branch. *Note: Creating a new branch may take several minutes depending on the project size.*
|
94
94
|
# @param project_id [String] Project ID
|
95
95
|
# @param branch_create_parameters [BranchCreateParameters]
|
96
96
|
# @param [Hash] opts the optional parameters
|
@@ -222,7 +222,7 @@ module Phrase
|
|
222
222
|
end
|
223
223
|
|
224
224
|
# Merge a branch
|
225
|
-
# Merge an existing branch.
|
225
|
+
# Merge an existing branch. *Note: Merging a branch may take several minutes depending on diff size.*
|
226
226
|
# @param project_id [String] Project ID
|
227
227
|
# @param name [String] name
|
228
228
|
# @param branch_merge_parameters [BranchMergeParameters]
|
@@ -235,7 +235,7 @@ module Phrase
|
|
235
235
|
end
|
236
236
|
|
237
237
|
# Merge a branch
|
238
|
-
# Merge an existing branch.
|
238
|
+
# Merge an existing branch. *Note: Merging a branch may take several minutes depending on diff size.*
|
239
239
|
# @param project_id [String] Project ID
|
240
240
|
# @param name [String] name
|
241
241
|
# @param branch_merge_parameters [BranchMergeParameters]
|
@@ -8,7 +8,7 @@ module Phrase
|
|
8
8
|
@api_client = api_client
|
9
9
|
end
|
10
10
|
# Create a new invitation
|
11
|
-
# Invite a person to an account. Developers and translators need
|
11
|
+
# Invite a person to an account. Developers and translators need `project_ids` and `locale_ids` assigned to access them. Access token scope must include `team.manage`.
|
12
12
|
# @param account_id [String] Account ID
|
13
13
|
# @param invitation_create_parameters [InvitationCreateParameters]
|
14
14
|
# @param [Hash] opts the optional parameters
|
@@ -20,7 +20,7 @@ module Phrase
|
|
20
20
|
end
|
21
21
|
|
22
22
|
# Create a new invitation
|
23
|
-
# Invite a person to an account. Developers and translators need
|
23
|
+
# Invite a person to an account. Developers and translators need `project_ids` and `locale_ids` assigned to access them. Access token scope must include `team.manage`.
|
24
24
|
# @param account_id [String] Account ID
|
25
25
|
# @param invitation_create_parameters [InvitationCreateParameters]
|
26
26
|
# @param [Hash] opts the optional parameters
|
@@ -82,7 +82,7 @@ module Phrase
|
|
82
82
|
end
|
83
83
|
|
84
84
|
# Delete an invitation
|
85
|
-
# Delete an existing invitation (must not be accepted yet). Access token scope must include
|
85
|
+
# Delete an existing invitation (must not be accepted yet). Access token scope must include `team.manage`.
|
86
86
|
# @param account_id [String] Account ID
|
87
87
|
# @param id [String] ID
|
88
88
|
# @param [Hash] opts the optional parameters
|
@@ -94,7 +94,7 @@ module Phrase
|
|
94
94
|
end
|
95
95
|
|
96
96
|
# Delete an invitation
|
97
|
-
# Delete an existing invitation (must not be accepted yet). Access token scope must include
|
97
|
+
# Delete an existing invitation (must not be accepted yet). Access token scope must include `team.manage`.
|
98
98
|
# @param account_id [String] Account ID
|
99
99
|
# @param id [String] ID
|
100
100
|
# @param [Hash] opts the optional parameters
|
@@ -152,7 +152,7 @@ module Phrase
|
|
152
152
|
end
|
153
153
|
|
154
154
|
# Resend an invitation
|
155
|
-
# Resend the invitation email (must not be accepted yet). Access token scope must include
|
155
|
+
# Resend the invitation email (must not be accepted yet). Access token scope must include `team.manage`.
|
156
156
|
# @param account_id [String] Account ID
|
157
157
|
# @param id [String] ID
|
158
158
|
# @param [Hash] opts the optional parameters
|
@@ -164,7 +164,7 @@ module Phrase
|
|
164
164
|
end
|
165
165
|
|
166
166
|
# Resend an invitation
|
167
|
-
# Resend the invitation email (must not be accepted yet). Access token scope must include
|
167
|
+
# Resend the invitation email (must not be accepted yet). Access token scope must include `team.manage`.
|
168
168
|
# @param account_id [String] Account ID
|
169
169
|
# @param id [String] ID
|
170
170
|
# @param [Hash] opts the optional parameters
|
@@ -224,7 +224,7 @@ module Phrase
|
|
224
224
|
end
|
225
225
|
|
226
226
|
# Get a single invitation
|
227
|
-
# Get details on a single invitation. Access token scope must include
|
227
|
+
# Get details on a single invitation. Access token scope must include `team.manage`.
|
228
228
|
# @param account_id [String] Account ID
|
229
229
|
# @param id [String] ID
|
230
230
|
# @param [Hash] opts the optional parameters
|
@@ -236,7 +236,7 @@ module Phrase
|
|
236
236
|
end
|
237
237
|
|
238
238
|
# Get a single invitation
|
239
|
-
# Get details on a single invitation. Access token scope must include
|
239
|
+
# Get details on a single invitation. Access token scope must include `team.manage`.
|
240
240
|
# @param account_id [String] Account ID
|
241
241
|
# @param id [String] ID
|
242
242
|
# @param [Hash] opts the optional parameters
|
@@ -296,7 +296,7 @@ module Phrase
|
|
296
296
|
end
|
297
297
|
|
298
298
|
# Update an invitation
|
299
|
-
# Update an existing invitation (must not be accepted yet). The
|
299
|
+
# Update an existing invitation (must not be accepted yet). The `email` cannot be updated. Developers and translators need `project_ids` and `locale_ids` assigned to access them. Access token scope must include `team.manage`.
|
300
300
|
# @param account_id [String] Account ID
|
301
301
|
# @param id [String] ID
|
302
302
|
# @param invitation_update_parameters [InvitationUpdateParameters]
|
@@ -309,7 +309,7 @@ module Phrase
|
|
309
309
|
end
|
310
310
|
|
311
311
|
# Update an invitation
|
312
|
-
# Update an existing invitation (must not be accepted yet). The
|
312
|
+
# Update an existing invitation (must not be accepted yet). The `email` cannot be updated. Developers and translators need `project_ids` and `locale_ids` assigned to access them. Access token scope must include `team.manage`.
|
313
313
|
# @param account_id [String] Account ID
|
314
314
|
# @param id [String] ID
|
315
315
|
# @param invitation_update_parameters [InvitationUpdateParameters]
|
@@ -376,7 +376,7 @@ module Phrase
|
|
376
376
|
end
|
377
377
|
|
378
378
|
# Update a member's invitation access
|
379
|
-
# Update member's settings in the invitations. Access token scope must include
|
379
|
+
# Update member's settings in the invitations. Access token scope must include `team.manage`.
|
380
380
|
# @param project_id [String] Project ID
|
381
381
|
# @param id [String] ID
|
382
382
|
# @param invitation_update_settings_parameters [InvitationUpdateSettingsParameters]
|
@@ -389,7 +389,7 @@ module Phrase
|
|
389
389
|
end
|
390
390
|
|
391
391
|
# Update a member's invitation access
|
392
|
-
# Update member's settings in the invitations. Access token scope must include
|
392
|
+
# Update member's settings in the invitations. Access token scope must include `team.manage`.
|
393
393
|
# @param project_id [String] Project ID
|
394
394
|
# @param id [String] ID
|
395
395
|
# @param invitation_update_settings_parameters [InvitationUpdateSettingsParameters]
|
@@ -456,7 +456,7 @@ module Phrase
|
|
456
456
|
end
|
457
457
|
|
458
458
|
# List invitations
|
459
|
-
# List invitations for an account. It will also list the accessible resources like projects and locales the invited user has access to. In case nothing is shown the default access from the role is used. Access token scope must include
|
459
|
+
# List invitations for an account. It will also list the accessible resources like projects and locales the invited user has access to. In case nothing is shown the default access from the role is used. Access token scope must include `team.manage`.
|
460
460
|
# @param account_id [String] Account ID
|
461
461
|
# @param [Hash] opts the optional parameters
|
462
462
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -469,7 +469,7 @@ module Phrase
|
|
469
469
|
end
|
470
470
|
|
471
471
|
# List invitations
|
472
|
-
# List invitations for an account. It will also list the accessible resources like projects and locales the invited user has access to. In case nothing is shown the default access from the role is used. Access token scope must include
|
472
|
+
# List invitations for an account. It will also list the accessible resources like projects and locales the invited user has access to. In case nothing is shown the default access from the role is used. Access token scope must include `team.manage`.
|
473
473
|
# @param account_id [String] Account ID
|
474
474
|
# @param [Hash] opts the optional parameters
|
475
475
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
data/lib/phrase/api/jobs_api.rb
CHANGED
@@ -862,7 +862,7 @@ module Phrase
|
|
862
862
|
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
863
863
|
# @option opts [String] :owned_by filter by user owning job
|
864
864
|
# @option opts [String] :assigned_to filter by user assigned to job
|
865
|
-
# @option opts [String] :state filter by state of job; valid states are:
|
865
|
+
# @option opts [String] :state filter by state of job; valid states are: `draft`, `in_progress`, `completed`
|
866
866
|
# @option opts [String] :updated_since filter by jobs updated since given date
|
867
867
|
# @return [Array<Job>]
|
868
868
|
def jobs_by_account(account_id, opts = {})
|
@@ -879,7 +879,7 @@ module Phrase
|
|
879
879
|
# @option opts [Integer] :per_page Limit on the number of objects to be returned, between 1 and 100. 25 by default
|
880
880
|
# @option opts [String] :owned_by filter by user owning job
|
881
881
|
# @option opts [String] :assigned_to filter by user assigned to job
|
882
|
-
# @option opts [String] :state filter by state of job; valid states are:
|
882
|
+
# @option opts [String] :state filter by state of job; valid states are: `draft`, `in_progress`, `completed`
|
883
883
|
# @option opts [String] :updated_since filter by jobs updated since given date
|
884
884
|
# @return [Array<(Response<(Array<Job>)>, Integer, Hash)>] Response<(Array<Job>)> data, response status code and response headers
|
885
885
|
def jobs_by_account_with_http_info(account_id, opts = {})
|
@@ -947,7 +947,7 @@ module Phrase
|
|
947
947
|
# @option opts [String] :branch Branch to use
|
948
948
|
# @option opts [String] :owned_by filter by user owning job
|
949
949
|
# @option opts [String] :assigned_to filter by user assigned to job
|
950
|
-
# @option opts [String] :state filter by state of job; valid states are:
|
950
|
+
# @option opts [String] :state filter by state of job; valid states are: `draft`, `in_progress`, `completed`
|
951
951
|
# @option opts [String] :updated_since filter by jobs updated since given date
|
952
952
|
# @return [Array<Job>]
|
953
953
|
def jobs_list(project_id, opts = {})
|
@@ -965,7 +965,7 @@ module Phrase
|
|
965
965
|
# @option opts [String] :branch Branch to use
|
966
966
|
# @option opts [String] :owned_by filter by user owning job
|
967
967
|
# @option opts [String] :assigned_to filter by user assigned to job
|
968
|
-
# @option opts [String] :state filter by state of job; valid states are:
|
968
|
+
# @option opts [String] :state filter by state of job; valid states are: `draft`, `in_progress`, `completed`
|
969
969
|
# @option opts [String] :updated_since filter by jobs updated since given date
|
970
970
|
# @return [Array<(Response<(Array<Job>)>, Integer, Hash)>] Response<(Array<Job>)> data, response status code and response headers
|
971
971
|
def jobs_list_with_http_info(project_id, opts = {})
|
data/lib/phrase/api/keys_api.rb
CHANGED
@@ -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 [String] :branch specify the branch to use
|
318
|
-
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards)
|
318
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
|
319
319
|
# @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
320
320
|
# @return [AffectedResources]
|
321
321
|
def keys_delete_collection(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 [String] :branch specify the branch to use
|
332
|
-
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards)
|
332
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
|
333
333
|
# @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
334
334
|
# @return [Array<(Response<(AffectedResources)>, Integer, Hash)>] Response<(AffectedResources)> data, response status code and response headers
|
335
335
|
def keys_delete_collection_with_http_info(project_id, opts = {})
|
@@ -542,7 +542,7 @@ module Phrase
|
|
542
542
|
# @option opts [String] :branch specify the branch to use
|
543
543
|
# @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
|
544
544
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
545
|
-
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards)
|
545
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
|
546
546
|
# @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
547
547
|
# @return [Array<TranslationKey>]
|
548
548
|
def keys_list(project_id, opts = {})
|
@@ -560,7 +560,7 @@ module Phrase
|
|
560
560
|
# @option opts [String] :branch specify the branch to use
|
561
561
|
# @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
|
562
562
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
563
|
-
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards)
|
563
|
+
# @option opts [String] :q Specify a query to do broad search for keys by name (including wildcards). The following qualifiers are also supported in the search term: - `ids:key_id,...` for queries on a comma-separated list of ids - `name:key_name` for text queries on exact key names - spaces, commas, and colons need to be escaped with double backslashes - `tags:tag_name` to filter for keys with certain tags - `translated:{true|false}` for translation status (also requires `locale_id` to be specified) - `updated_at:{>=|<=}2013-02-21T00:00:00Z` for date range queries - `unmentioned_in_upload:upload_id,...` to filter keys unmentioned within upload. When multiple upload IDs provided, matches only keys not mentioned in **all** uploads **Caution:** Query parameters with empty values will be treated as though they are not included in the request and will be ignored. Find more examples [here](/en/api/strings/usage-examples).
|
564
564
|
# @option opts [String] :locale_id Locale used to determine the translation state of a key when filtering for untranslated or translated keys.
|
565
565
|
# @return [Array<(Response<(Array<TranslationKey>)>, Integer, Hash)>] Response<(Array<TranslationKey>)> data, response status code and response headers
|
566
566
|
def keys_list_with_http_info(project_id, opts = {})
|
@@ -14,8 +14,8 @@ module Phrase
|
|
14
14
|
# @param locale_download_create_parameters [LocaleDownloadCreateParameters]
|
15
15
|
# @param [Hash] opts the optional parameters
|
16
16
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
17
|
-
# @option opts [String] :if_modified_since Last modified condition, see
|
18
|
-
# @option opts [String] :if_none_match ETag condition, see
|
17
|
+
# @option opts [String] :if_modified_since Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
18
|
+
# @option opts [String] :if_none_match ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
19
19
|
# @return [LocaleDownload]
|
20
20
|
def locale_download_create(project_id, locale_id, locale_download_create_parameters, opts = {})
|
21
21
|
data, _status_code, _headers = locale_download_create_with_http_info(project_id, locale_id, locale_download_create_parameters, opts)
|
@@ -29,8 +29,8 @@ module Phrase
|
|
29
29
|
# @param locale_download_create_parameters [LocaleDownloadCreateParameters]
|
30
30
|
# @param [Hash] opts the optional parameters
|
31
31
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
32
|
-
# @option opts [String] :if_modified_since Last modified condition, see
|
33
|
-
# @option opts [String] :if_none_match ETag condition, see
|
32
|
+
# @option opts [String] :if_modified_since Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
33
|
+
# @option opts [String] :if_none_match ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
34
34
|
# @return [Array<(Response<(LocaleDownload)>, Integer, Hash)>] Response<(LocaleDownload)> data, response status code and response headers
|
35
35
|
def locale_download_create_with_http_info(project_id, locale_id, locale_download_create_parameters, opts = {})
|
36
36
|
if @api_client.config.debugging
|
@@ -100,8 +100,8 @@ module Phrase
|
|
100
100
|
# @param id [String] ID
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
102
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
103
|
-
# @option opts [String] :if_modified_since Last modified condition, see
|
104
|
-
# @option opts [String] :if_none_match ETag condition, see
|
103
|
+
# @option opts [String] :if_modified_since Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
104
|
+
# @option opts [String] :if_none_match ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
105
105
|
# @return [LocaleDownload]
|
106
106
|
def locale_download_show(project_id, locale_id, id, opts = {})
|
107
107
|
data, _status_code, _headers = locale_download_show_with_http_info(project_id, locale_id, id, opts)
|
@@ -115,8 +115,8 @@ module Phrase
|
|
115
115
|
# @param id [String] ID
|
116
116
|
# @param [Hash] opts the optional parameters
|
117
117
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
118
|
-
# @option opts [String] :if_modified_since Last modified condition, see
|
119
|
-
# @option opts [String] :if_none_match ETag condition, see
|
118
|
+
# @option opts [String] :if_modified_since Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
119
|
+
# @option opts [String] :if_none_match ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
120
120
|
# @return [Array<(Response<(LocaleDownload)>, Integer, Hash)>] Response<(LocaleDownload)> data, response status code and response headers
|
121
121
|
def locale_download_show_with_http_info(project_id, locale_id, id, opts = {})
|
122
122
|
if @api_client.config.debugging
|
@@ -232,10 +232,10 @@ module Phrase
|
|
232
232
|
# @param id [String] Locale ID or locale name
|
233
233
|
# @param [Hash] opts the optional parameters
|
234
234
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
235
|
-
# @option opts [String] :if_modified_since Last modified condition, see
|
236
|
-
# @option opts [String] :if_none_match ETag condition, see
|
235
|
+
# @option opts [String] :if_modified_since Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
236
|
+
# @option opts [String] :if_none_match ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
237
237
|
# @option opts [String] :branch specify the branch to use
|
238
|
-
# @option opts [String] :file_format File format name. See the
|
238
|
+
# @option opts [String] :file_format File format name. See the [format guide](https://support.phrase.com/hc/en-us/sections/6111343326364) for all supported file formats.
|
239
239
|
# @option opts [String] :tags Limit results to keys tagged with a list of comma separated tag names.
|
240
240
|
# @option opts [String] :tag Limit download to tagged keys. This parameter is deprecated. Please use the \"tags\" parameter instead
|
241
241
|
# @option opts [Boolean] :include_empty_translations Indicates whether keys without translations should be included in the output as well.
|
@@ -243,17 +243,18 @@ module Phrase
|
|
243
243
|
# @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
|
244
244
|
# @option opts [Boolean] :keep_notranslate_tags Indicates whether [NOTRANSLATE] tags should be kept.
|
245
245
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
|
246
|
-
# @option opts [Object] :format_options Additional formatting and render options. See the
|
246
|
+
# @option opts [Object] :format_options Additional formatting and render options. See the [format guide](https://support.phrase.com/hc/en-us/sections/6111343326364) for a list of options available for each format. Specify format options like this: `...&format_options[foo]=bar`
|
247
247
|
# @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
248
|
-
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with
|
248
|
+
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with `include_unverified_translations`.
|
249
249
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
250
250
|
# @option opts [Boolean] :use_last_reviewed_version If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project.
|
251
|
-
# @option opts [String] :fallback_locale_id If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to
|
252
|
-
# @option opts [String] :source_locale_id Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a
|
251
|
+
# @option opts [String] :fallback_locale_id If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to `true`.
|
252
|
+
# @option opts [String] :source_locale_id Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a `tag` parameter indicating a specific job.
|
253
253
|
# @option opts [String] :translation_key_prefix Download all translation keys, and remove the specified prefix where possible. Warning: this may create duplicate key names if other keys share the same name after the prefix is removed.
|
254
254
|
# @option opts [Boolean] :filter_by_prefix Only download translation keys containing the specified prefix, and remove the prefix from the generated file.
|
255
255
|
# @option opts [Object] :custom_metadata_filters Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
|
256
256
|
# @option opts [Array<String>] :locale_ids Locale IDs or locale names
|
257
|
+
# @option opts [String] :updated_since Only include translations and keys that have been updated since the given date. The date must be in ISO 8601 format (e.g., `2023-01-01T00:00:00Z`).
|
257
258
|
# @return [File]
|
258
259
|
def locale_download(project_id, id, opts = {})
|
259
260
|
data, _status_code, _headers = locale_download_with_http_info(project_id, id, opts)
|
@@ -266,10 +267,10 @@ module Phrase
|
|
266
267
|
# @param id [String] Locale ID or locale name
|
267
268
|
# @param [Hash] opts the optional parameters
|
268
269
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
269
|
-
# @option opts [String] :if_modified_since Last modified condition, see
|
270
|
-
# @option opts [String] :if_none_match ETag condition, see
|
270
|
+
# @option opts [String] :if_modified_since Last modified condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
271
|
+
# @option opts [String] :if_none_match ETag condition, see [Conditional GET requests / HTTP Caching](/en/api/strings/pagination#conditional-get-requests-%2F-http-caching) (optional)
|
271
272
|
# @option opts [String] :branch specify the branch to use
|
272
|
-
# @option opts [String] :file_format File format name. See the
|
273
|
+
# @option opts [String] :file_format File format name. See the [format guide](https://support.phrase.com/hc/en-us/sections/6111343326364) for all supported file formats.
|
273
274
|
# @option opts [String] :tags Limit results to keys tagged with a list of comma separated tag names.
|
274
275
|
# @option opts [String] :tag Limit download to tagged keys. This parameter is deprecated. Please use the \"tags\" parameter instead
|
275
276
|
# @option opts [Boolean] :include_empty_translations Indicates whether keys without translations should be included in the output as well.
|
@@ -277,17 +278,18 @@ module Phrase
|
|
277
278
|
# @option opts [Boolean] :include_translated_keys Include translated keys in the locale file. Use in combination with include_empty_translations to obtain only untranslated keys.
|
278
279
|
# @option opts [Boolean] :keep_notranslate_tags Indicates whether [NOTRANSLATE] tags should be kept.
|
279
280
|
# @option opts [Boolean] :convert_emoji This option is obsolete. Projects that were created on or after Nov 29th 2019 or that did not contain emoji by then will not require this flag any longer since emoji are now supported natively.
|
280
|
-
# @option opts [Object] :format_options Additional formatting and render options. See the
|
281
|
+
# @option opts [Object] :format_options Additional formatting and render options. See the [format guide](https://support.phrase.com/hc/en-us/sections/6111343326364) for a list of options available for each format. Specify format options like this: `...&format_options[foo]=bar`
|
281
282
|
# @option opts [String] :encoding Enforces a specific encoding on the file contents. Valid options are \"UTF-8\", \"UTF-16\" and \"ISO-8859-1\".
|
282
|
-
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with
|
283
|
+
# @option opts [Boolean] :skip_unverified_translations Indicates whether the locale file should skip all unverified translations. This parameter is deprecated and should be replaced with `include_unverified_translations`.
|
283
284
|
# @option opts [Boolean] :include_unverified_translations if set to false unverified translations are excluded
|
284
285
|
# @option opts [Boolean] :use_last_reviewed_version If set to true the last reviewed version of a translation is used. This is only available if the review workflow is enabled for the project.
|
285
|
-
# @option opts [String] :fallback_locale_id If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to
|
286
|
-
# @option opts [String] :source_locale_id Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a
|
286
|
+
# @option opts [String] :fallback_locale_id If a key has no translation in the locale being downloaded the translation in the fallback locale will be used. Provide the ID of the locale that should be used as the fallback. Requires include_empty_translations to be set to `true`.
|
287
|
+
# @option opts [String] :source_locale_id Provides the source language of a corresponding job as the source language of the generated locale file. This parameter will be ignored unless used in combination with a `tag` parameter indicating a specific job.
|
287
288
|
# @option opts [String] :translation_key_prefix Download all translation keys, and remove the specified prefix where possible. Warning: this may create duplicate key names if other keys share the same name after the prefix is removed.
|
288
289
|
# @option opts [Boolean] :filter_by_prefix Only download translation keys containing the specified prefix, and remove the prefix from the generated file.
|
289
290
|
# @option opts [Object] :custom_metadata_filters Custom metadata filters. Provide the name of the metadata field and the value to filter by. Only keys with matching metadata will be included in the download.
|
290
291
|
# @option opts [Array<String>] :locale_ids Locale IDs or locale names
|
292
|
+
# @option opts [String] :updated_since Only include translations and keys that have been updated since the given date. The date must be in ISO 8601 format (e.g., `2023-01-01T00:00:00Z`).
|
291
293
|
# @return [Array<(Response<(File)>, Integer, Hash)>] Response<(File)> data, response status code and response headers
|
292
294
|
def locale_download_with_http_info(project_id, id, opts = {})
|
293
295
|
if @api_client.config.debugging
|
@@ -326,6 +328,7 @@ module Phrase
|
|
326
328
|
query_params[:'filter_by_prefix'] = opts[:'filter_by_prefix'] if !opts[:'filter_by_prefix'].nil?
|
327
329
|
query_params[:'custom_metadata_filters'] = opts[:'custom_metadata_filters'] if !opts[:'custom_metadata_filters'].nil?
|
328
330
|
query_params[:'locale_ids'] = @api_client.build_collection_param(opts[:'locale_ids'], :multi) if !opts[:'locale_ids'].nil?
|
331
|
+
query_params[:'updated_since'] = opts[:'updated_since'] if !opts[:'updated_since'].nil?
|
329
332
|
|
330
333
|
# header parameters
|
331
334
|
header_params = opts[:header_params] || {}
|
@@ -8,7 +8,7 @@ module Phrase
|
|
8
8
|
@api_client = api_client
|
9
9
|
end
|
10
10
|
# Remove a user from the account
|
11
|
-
# Remove a user from the account. The user will be removed from the account but not deleted from Phrase. Access token scope must include
|
11
|
+
# Remove a user from the account. The user will be removed from the account but not deleted from Phrase. Access token scope must include `team.manage`.
|
12
12
|
# @param account_id [String] Account ID
|
13
13
|
# @param id [String] ID
|
14
14
|
# @param [Hash] opts the optional parameters
|
@@ -20,7 +20,7 @@ module Phrase
|
|
20
20
|
end
|
21
21
|
|
22
22
|
# Remove a user from the account
|
23
|
-
# Remove a user from the account. The user will be removed from the account but not deleted from Phrase. Access token scope must include
|
23
|
+
# Remove a user from the account. The user will be removed from the account but not deleted from Phrase. Access token scope must include `team.manage`.
|
24
24
|
# @param account_id [String] Account ID
|
25
25
|
# @param id [String] ID
|
26
26
|
# @param [Hash] opts the optional parameters
|
@@ -78,7 +78,7 @@ module Phrase
|
|
78
78
|
end
|
79
79
|
|
80
80
|
# Get single member
|
81
|
-
# Get details on a single user in the account. Access token scope must include
|
81
|
+
# Get details on a single user in the account. Access token scope must include `team.manage`.
|
82
82
|
# @param account_id [String] Account ID
|
83
83
|
# @param id [String] ID
|
84
84
|
# @param [Hash] opts the optional parameters
|
@@ -90,7 +90,7 @@ module Phrase
|
|
90
90
|
end
|
91
91
|
|
92
92
|
# Get single member
|
93
|
-
# Get details on a single user in the account. Access token scope must include
|
93
|
+
# Get details on a single user in the account. Access token scope must include `team.manage`.
|
94
94
|
# @param account_id [String] Account ID
|
95
95
|
# @param id [String] ID
|
96
96
|
# @param [Hash] opts the optional parameters
|
@@ -150,7 +150,7 @@ module Phrase
|
|
150
150
|
end
|
151
151
|
|
152
152
|
# Update a member
|
153
|
-
# Update user permissions in the account. Developers and translators need
|
153
|
+
# Update user permissions in the account. Developers and translators need `project_ids` and `locale_ids` assigned to access them. Access token scope must include `team.manage`.
|
154
154
|
# @param account_id [String] Account ID
|
155
155
|
# @param id [String] ID
|
156
156
|
# @param member_update_parameters [MemberUpdateParameters]
|
@@ -163,7 +163,7 @@ module Phrase
|
|
163
163
|
end
|
164
164
|
|
165
165
|
# Update a member
|
166
|
-
# Update user permissions in the account. Developers and translators need
|
166
|
+
# Update user permissions in the account. Developers and translators need `project_ids` and `locale_ids` assigned to access them. Access token scope must include `team.manage`.
|
167
167
|
# @param account_id [String] Account ID
|
168
168
|
# @param id [String] ID
|
169
169
|
# @param member_update_parameters [MemberUpdateParameters]
|
@@ -230,7 +230,7 @@ module Phrase
|
|
230
230
|
end
|
231
231
|
|
232
232
|
# Update a member's project settings
|
233
|
-
# Update user settings in the project. Access token scope must include
|
233
|
+
# Update user settings in the project. Access token scope must include `team.manage`.
|
234
234
|
# @param project_id [String] Project ID
|
235
235
|
# @param id [String] ID
|
236
236
|
# @param member_update_settings_parameters [MemberUpdateSettingsParameters]
|
@@ -243,7 +243,7 @@ module Phrase
|
|
243
243
|
end
|
244
244
|
|
245
245
|
# Update a member's project settings
|
246
|
-
# Update user settings in the project. Access token scope must include
|
246
|
+
# Update user settings in the project. Access token scope must include `team.manage`.
|
247
247
|
# @param project_id [String] Project ID
|
248
248
|
# @param id [String] ID
|
249
249
|
# @param member_update_settings_parameters [MemberUpdateSettingsParameters]
|
@@ -310,7 +310,7 @@ module Phrase
|
|
310
310
|
end
|
311
311
|
|
312
312
|
# List members
|
313
|
-
# Get all users active in the account. It also lists resources like projects and locales the member has access to. In case nothing is shown the default access from the role is used. Access token scope must include
|
313
|
+
# Get all users active in the account. It also lists resources like projects and locales the member has access to. In case nothing is shown the default access from the role is used. Access token scope must include `team.manage`.
|
314
314
|
# @param account_id [String] Account ID
|
315
315
|
# @param [Hash] opts the optional parameters
|
316
316
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -323,7 +323,7 @@ module Phrase
|
|
323
323
|
end
|
324
324
|
|
325
325
|
# List members
|
326
|
-
# Get all users active in the account. It also lists resources like projects and locales the member has access to. In case nothing is shown the default access from the role is used. Access token scope must include
|
326
|
+
# Get all users active in the account. It also lists resources like projects and locales the member has access to. In case nothing is shown the default access from the role is used. Access token scope must include `team.manage`.
|
327
327
|
# @param account_id [String] Account ID
|
328
328
|
# @param [Hash] opts the optional parameters
|
329
329
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
@@ -88,7 +88,7 @@ module Phrase
|
|
88
88
|
end
|
89
89
|
|
90
90
|
# Create a new order
|
91
|
-
# Create a new order. Access token scope must include
|
91
|
+
# Create a new order. Access token scope must include `orders.create`.
|
92
92
|
# @param project_id [String] Project ID
|
93
93
|
# @param order_create_parameters [OrderCreateParameters]
|
94
94
|
# @param [Hash] opts the optional parameters
|
@@ -100,7 +100,7 @@ module Phrase
|
|
100
100
|
end
|
101
101
|
|
102
102
|
# Create a new order
|
103
|
-
# Create a new order. Access token scope must include
|
103
|
+
# Create a new order. Access token scope must include `orders.create`.
|
104
104
|
# @param project_id [String] Project ID
|
105
105
|
# @param order_create_parameters [OrderCreateParameters]
|
106
106
|
# @param [Hash] opts the optional parameters
|
@@ -164,7 +164,7 @@ module Phrase
|
|
164
164
|
end
|
165
165
|
|
166
166
|
# List release triggers
|
167
|
-
# List all release triggers for the given distribution
|
167
|
+
# List all release triggers for the given distribution. Note: Currently only one release trigger can exist per distribution.
|
168
168
|
# @param account_id [String] Account ID
|
169
169
|
# @param distribution_id [String] Distribution ID
|
170
170
|
# @param [Hash] opts the optional parameters
|
@@ -176,7 +176,7 @@ module Phrase
|
|
176
176
|
end
|
177
177
|
|
178
178
|
# List release triggers
|
179
|
-
# List all release triggers for the given distribution
|
179
|
+
# List all release triggers for the given distribution. Note: Currently only one release trigger can exist per distribution.
|
180
180
|
# @param account_id [String] Account ID
|
181
181
|
# @param distribution_id [String] Distribution ID
|
182
182
|
# @param [Hash] opts the optional parameters
|
@@ -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 *Note: Search is limited to 10000 results and may not include recently updated data depending on the project sizes.*
|
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 *Note: Search is limited to 10000 results and may not include recently updated data depending on the project sizes.*
|
24
24
|
# @param account_id [String] Account ID
|
25
25
|
# @param search_in_account_parameters [SearchInAccountParameters]
|
26
26
|
# @param [Hash] opts the optional parameters
|
data/lib/phrase/api/tags_api.rb
CHANGED
@@ -160,6 +160,7 @@ module Phrase
|
|
160
160
|
# @param name [String] name
|
161
161
|
# @param [Hash] opts the optional parameters
|
162
162
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
163
|
+
# @option opts [Boolean] :omit_statistics omit statistics in the response
|
163
164
|
# @option opts [String] :branch specify the branch to use
|
164
165
|
# @return [TagWithStats]
|
165
166
|
def tag_show(project_id, name, opts = {})
|
@@ -173,6 +174,7 @@ module Phrase
|
|
173
174
|
# @param name [String] name
|
174
175
|
# @param [Hash] opts the optional parameters
|
175
176
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
177
|
+
# @option opts [Boolean] :omit_statistics omit statistics in the response
|
176
178
|
# @option opts [String] :branch specify the branch to use
|
177
179
|
# @return [Array<(Response<(TagWithStats)>, Integer, Hash)>] Response<(TagWithStats)> data, response status code and response headers
|
178
180
|
def tag_show_with_http_info(project_id, name, opts = {})
|
@@ -192,6 +194,7 @@ module Phrase
|
|
192
194
|
|
193
195
|
# query parameters
|
194
196
|
query_params = opts[:query_params] || {}
|
197
|
+
query_params[:'omit_statistics'] = opts[:'omit_statistics'] if !opts[:'omit_statistics'].nil?
|
195
198
|
query_params[:'branch'] = opts[:'branch'] if !opts[:'branch'].nil?
|
196
199
|
|
197
200
|
# header parameters
|