phrase 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -3
- data/docs/Account.md +2 -0
- data/docs/AccountDetails.md +3 -3
- data/docs/AccountsApi.md +2 -2
- data/docs/AuthorizationsApi.md +2 -2
- data/docs/BlacklistedKeysApi.md +4 -2
- data/docs/BranchesApi.md +2 -2
- data/docs/CommentsApi.md +2 -2
- data/docs/DistributionsApi.md +2 -2
- data/docs/Document.md +23 -0
- data/docs/DocumentsApi.md +137 -0
- data/docs/GitHubSyncApi.md +130 -0
- data/docs/GitLabSyncApi.md +2 -2
- data/docs/GithubSyncExportParameters.md +17 -0
- data/docs/GithubSyncImportParameters.md +17 -0
- data/docs/GlossariesApi.md +2 -2
- data/docs/GlossaryTermsApi.md +2 -2
- data/docs/InlineResponse422.md +19 -0
- data/docs/InlineResponse422Errors.md +21 -0
- data/docs/InvitationsApi.md +2 -2
- data/docs/JobLocalesApi.md +2 -2
- data/docs/JobsApi.md +2 -2
- data/docs/KeysApi.md +4 -4
- data/docs/LocalesApi.md +2 -2
- data/docs/MembersApi.md +2 -2
- data/docs/OrdersApi.md +2 -2
- data/docs/Project.md +2 -0
- data/docs/ProjectDetails.md +2 -2
- 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/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 +8 -8
- data/docs/UploadsApi.md +2 -2
- data/docs/VersionsHistoryApi.md +2 -2
- data/docs/WebhooksApi.md +2 -2
- data/lib/phrase.rb +7 -0
- data/lib/phrase/api/accounts_api.rb +2 -2
- data/lib/phrase/api/authorizations_api.rb +2 -2
- data/lib/phrase/api/blacklisted_keys_api.rb +5 -2
- data/lib/phrase/api/branches_api.rb +2 -2
- 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 +152 -0
- data/lib/phrase/api/git_hub_sync_api.rb +146 -0
- data/lib/phrase/api/git_lab_sync_api.rb +2 -2
- 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_locales_api.rb +2 -2
- data/lib/phrase/api/jobs_api.rb +2 -2
- data/lib/phrase/api/keys_api.rb +4 -4
- data/lib/phrase/api/locales_api.rb +2 -2
- data/lib/phrase/api/members_api.rb +2 -2
- 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/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 +8 -8
- data/lib/phrase/api/uploads_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/account.rb +10 -1
- data/lib/phrase/models/account_details.rb +13 -13
- data/lib/phrase/models/document.rb +221 -0
- data/lib/phrase/models/github_sync_export_parameters.rb +195 -0
- data/lib/phrase/models/github_sync_import_parameters.rb +195 -0
- data/lib/phrase/models/inline_response422.rb +205 -0
- data/lib/phrase/models/inline_response422_errors.rb +212 -0
- data/lib/phrase/models/project.rb +10 -1
- data/lib/phrase/models/project_details.rb +10 -10
- data/lib/phrase/version.rb +1 -1
- data/spec/api/accounts_api_spec.rb +1 -1
- data/spec/api/authorizations_api_spec.rb +1 -1
- data/spec/api/blacklisted_keys_api_spec.rb +2 -1
- data/spec/api/branches_api_spec.rb +1 -1
- 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 +52 -0
- data/spec/api/git_hub_sync_api_spec.rb +49 -0
- data/spec/api/git_lab_sync_api_spec.rb +1 -1
- 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_locales_api_spec.rb +1 -1
- data/spec/api/jobs_api_spec.rb +1 -1
- data/spec/api/keys_api_spec.rb +2 -2
- data/spec/api/locales_api_spec.rb +1 -1
- data/spec/api/members_api_spec.rb +1 -1
- 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/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 +4 -4
- data/spec/api/uploads_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/account_details_spec.rb +4 -4
- data/spec/models/account_spec.rb +6 -0
- data/spec/models/document_spec.rb +47 -0
- data/spec/models/github_sync_export_parameters_spec.rb +29 -0
- data/spec/models/github_sync_import_parameters_spec.rb +29 -0
- data/spec/models/inline_response422_errors_spec.rb +41 -0
- data/spec/models/inline_response422_spec.rb +35 -0
- data/spec/models/project_details_spec.rb +6 -6
- data/spec/models/project_spec.rb +6 -0
- metadata +181 -153
@@ -0,0 +1,146 @@
|
|
1
|
+
require 'cgi'
|
2
|
+
|
3
|
+
module Phrase
|
4
|
+
class GitHubSyncApi
|
5
|
+
attr_accessor :api_client
|
6
|
+
|
7
|
+
def initialize(api_client = ApiClient.default)
|
8
|
+
@api_client = api_client
|
9
|
+
end
|
10
|
+
# Export from Phrase to GitHub
|
11
|
+
# Export translations from Phrase to GitHub according to the .phraseapp.yml file within the GitHub repository.
|
12
|
+
# @param github_sync_export_parameters [GithubSyncExportParameters]
|
13
|
+
# @param [Hash] opts the optional parameters
|
14
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
15
|
+
# @return [nil]
|
16
|
+
def github_sync_export(github_sync_export_parameters, opts = {})
|
17
|
+
data, _status_code, _headers = github_sync_export_with_http_info(github_sync_export_parameters, opts)
|
18
|
+
data
|
19
|
+
end
|
20
|
+
|
21
|
+
# Export from Phrase to GitHub
|
22
|
+
# Export translations from Phrase to GitHub according to the .phraseapp.yml file within the GitHub repository.
|
23
|
+
# @param github_sync_export_parameters [GithubSyncExportParameters]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
26
|
+
# @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
|
27
|
+
def github_sync_export_with_http_info(github_sync_export_parameters, opts = {})
|
28
|
+
if @api_client.config.debugging
|
29
|
+
@api_client.config.logger.debug 'Calling API: GitHubSyncApi.github_sync_export ...'
|
30
|
+
end
|
31
|
+
# verify the required parameter 'github_sync_export_parameters' is set
|
32
|
+
if @api_client.config.client_side_validation && github_sync_export_parameters.nil?
|
33
|
+
fail ArgumentError, "Missing the required parameter 'github_sync_export_parameters' when calling GitHubSyncApi.github_sync_export"
|
34
|
+
end
|
35
|
+
# resource path
|
36
|
+
local_var_path = '/github_syncs/export'
|
37
|
+
|
38
|
+
# query parameters
|
39
|
+
query_params = opts[:query_params] || {}
|
40
|
+
|
41
|
+
# header parameters
|
42
|
+
header_params = opts[:header_params] || {}
|
43
|
+
# HTTP header 'Accept' (if needed)
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
45
|
+
# HTTP header 'Content-Type'
|
46
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
47
|
+
header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
|
48
|
+
|
49
|
+
# form parameters
|
50
|
+
form_params = opts[:form_params] || {}
|
51
|
+
|
52
|
+
# http body (model)
|
53
|
+
post_body = opts[:body] || @api_client.object_to_http_body(github_sync_export_parameters)
|
54
|
+
|
55
|
+
# return_type
|
56
|
+
return_type = opts[:return_type]
|
57
|
+
|
58
|
+
# auth_names
|
59
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
60
|
+
|
61
|
+
new_options = opts.merge(
|
62
|
+
:header_params => header_params,
|
63
|
+
:query_params => query_params,
|
64
|
+
:form_params => form_params,
|
65
|
+
:body => post_body,
|
66
|
+
:auth_names => auth_names,
|
67
|
+
:return_type => return_type
|
68
|
+
)
|
69
|
+
|
70
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
71
|
+
if @api_client.config.debugging
|
72
|
+
@api_client.config.logger.debug "API called: GitHubSyncApi#github_sync_export\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
73
|
+
end
|
74
|
+
response = ::Phrase::Response.new(data, headers)
|
75
|
+
return response, status_code, headers
|
76
|
+
end
|
77
|
+
|
78
|
+
# Import to Phrase from GitHub
|
79
|
+
# Import files to Phrase from your connected GitHub repository.
|
80
|
+
# @param github_sync_import_parameters [GithubSyncImportParameters]
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
83
|
+
# @return [nil]
|
84
|
+
def github_sync_import(github_sync_import_parameters, opts = {})
|
85
|
+
data, _status_code, _headers = github_sync_import_with_http_info(github_sync_import_parameters, opts)
|
86
|
+
data
|
87
|
+
end
|
88
|
+
|
89
|
+
# Import to Phrase from GitHub
|
90
|
+
# Import files to Phrase from your connected GitHub repository.
|
91
|
+
# @param github_sync_import_parameters [GithubSyncImportParameters]
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
94
|
+
# @return [Array<(Response, Integer, Hash)>] Response<(nil, response status code and response headers
|
95
|
+
def github_sync_import_with_http_info(github_sync_import_parameters, opts = {})
|
96
|
+
if @api_client.config.debugging
|
97
|
+
@api_client.config.logger.debug 'Calling API: GitHubSyncApi.github_sync_import ...'
|
98
|
+
end
|
99
|
+
# verify the required parameter 'github_sync_import_parameters' is set
|
100
|
+
if @api_client.config.client_side_validation && github_sync_import_parameters.nil?
|
101
|
+
fail ArgumentError, "Missing the required parameter 'github_sync_import_parameters' when calling GitHubSyncApi.github_sync_import"
|
102
|
+
end
|
103
|
+
# resource path
|
104
|
+
local_var_path = '/github_syncs/import'
|
105
|
+
|
106
|
+
# query parameters
|
107
|
+
query_params = opts[:query_params] || {}
|
108
|
+
|
109
|
+
# header parameters
|
110
|
+
header_params = opts[:header_params] || {}
|
111
|
+
# HTTP header 'Accept' (if needed)
|
112
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
113
|
+
# HTTP header 'Content-Type'
|
114
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
115
|
+
header_params[:'X-PhraseApp-OTP'] = opts[:'x_phrase_app_otp'] if !opts[:'x_phrase_app_otp'].nil?
|
116
|
+
|
117
|
+
# form parameters
|
118
|
+
form_params = opts[:form_params] || {}
|
119
|
+
|
120
|
+
# http body (model)
|
121
|
+
post_body = opts[:body] || @api_client.object_to_http_body(github_sync_import_parameters)
|
122
|
+
|
123
|
+
# return_type
|
124
|
+
return_type = opts[:return_type]
|
125
|
+
|
126
|
+
# auth_names
|
127
|
+
auth_names = opts[:auth_names] || ['Basic', 'Token']
|
128
|
+
|
129
|
+
new_options = opts.merge(
|
130
|
+
:header_params => header_params,
|
131
|
+
:query_params => query_params,
|
132
|
+
:form_params => form_params,
|
133
|
+
:body => post_body,
|
134
|
+
:auth_names => auth_names,
|
135
|
+
:return_type => return_type
|
136
|
+
)
|
137
|
+
|
138
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
139
|
+
if @api_client.config.debugging
|
140
|
+
@api_client.config.logger.debug "API called: GitHubSyncApi#github_sync_import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
141
|
+
end
|
142
|
+
response = ::Phrase::Response.new(data, headers)
|
143
|
+
return response, status_code, headers
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
@@ -154,7 +154,7 @@ module Phrase
|
|
154
154
|
# @param [Hash] opts the optional parameters
|
155
155
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
156
156
|
# @option opts [Integer] :page Page number
|
157
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
157
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
158
158
|
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
159
159
|
# @return [Array<GitlabSyncHistory>]
|
160
160
|
def gitlab_sync_history(gitlab_sync_id, opts = {})
|
@@ -168,7 +168,7 @@ module Phrase
|
|
168
168
|
# @param [Hash] opts the optional parameters
|
169
169
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
170
170
|
# @option opts [Integer] :page Page number
|
171
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
171
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
172
172
|
# @option opts [String] :account_id Account ID to specify the actual account the GitLab Sync should be created in. Required if the requesting user is a member of multiple accounts.
|
173
173
|
# @return [Array<(Response<(Array<GitlabSyncHistory>)>, Integer, Hash)>] Response<(Array<GitlabSyncHistory>)> data, response status code and response headers
|
174
174
|
def gitlab_sync_history_with_http_info(gitlab_sync_id, opts = {})
|
@@ -13,7 +13,7 @@ module Phrase
|
|
13
13
|
# @param [Hash] opts the optional parameters
|
14
14
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
15
15
|
# @option opts [Integer] :page Page number
|
16
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
16
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
17
17
|
# @return [Array<Glossary>]
|
18
18
|
def glossaries_list(account_id, opts = {})
|
19
19
|
data, _status_code, _headers = glossaries_list_with_http_info(account_id, opts)
|
@@ -26,7 +26,7 @@ module Phrase
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
28
28
|
# @option opts [Integer] :page Page number
|
29
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
29
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
30
30
|
# @return [Array<(Response<(Array<Glossary>)>, Integer, Hash)>] Response<(Array<Glossary>)> data, response status code and response headers
|
31
31
|
def glossaries_list_with_http_info(account_id, opts = {})
|
32
32
|
if @api_client.config.debugging
|
@@ -334,7 +334,7 @@ module Phrase
|
|
334
334
|
# @param [Hash] opts the optional parameters
|
335
335
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
336
336
|
# @option opts [Integer] :page Page number
|
337
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
337
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
338
338
|
# @return [Array<GlossaryTerm>]
|
339
339
|
def glossary_terms_list(account_id, glossary_id, opts = {})
|
340
340
|
data, _status_code, _headers = glossary_terms_list_with_http_info(account_id, glossary_id, opts)
|
@@ -348,7 +348,7 @@ module Phrase
|
|
348
348
|
# @param [Hash] opts the optional parameters
|
349
349
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
350
350
|
# @option opts [Integer] :page Page number
|
351
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
351
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
352
352
|
# @return [Array<(Response<(Array<GlossaryTerm>)>, Integer, Hash)>] Response<(Array<GlossaryTerm>)> data, response status code and response headers
|
353
353
|
def glossary_terms_list_with_http_info(account_id, glossary_id, opts = {})
|
354
354
|
if @api_client.config.debugging
|
@@ -381,7 +381,7 @@ module Phrase
|
|
381
381
|
# @param [Hash] opts the optional parameters
|
382
382
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
383
383
|
# @option opts [Integer] :page Page number
|
384
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
384
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
385
385
|
# @return [Array<Invitation>]
|
386
386
|
def invitations_list(account_id, opts = {})
|
387
387
|
data, _status_code, _headers = invitations_list_with_http_info(account_id, opts)
|
@@ -394,7 +394,7 @@ module Phrase
|
|
394
394
|
# @param [Hash] opts the optional parameters
|
395
395
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
396
396
|
# @option opts [Integer] :page Page number
|
397
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
397
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
398
398
|
# @return [Array<(Response<(Array<Invitation>)>, Integer, Hash)>] Response<(Array<Invitation>)> data, response status code and response headers
|
399
399
|
def invitations_list_with_http_info(account_id, opts = {})
|
400
400
|
if @api_client.config.debugging
|
@@ -512,7 +512,7 @@ module Phrase
|
|
512
512
|
# @param [Hash] opts the optional parameters
|
513
513
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
514
514
|
# @option opts [Integer] :page Page number
|
515
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
515
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
516
516
|
# @option opts [String] :branch specify the branch to use
|
517
517
|
# @return [Array<JobLocale>]
|
518
518
|
def job_locales_list(project_id, job_id, opts = {})
|
@@ -527,7 +527,7 @@ module Phrase
|
|
527
527
|
# @param [Hash] opts the optional parameters
|
528
528
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
529
529
|
# @option opts [Integer] :page Page number
|
530
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
530
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
531
531
|
# @option opts [String] :branch specify the branch to use
|
532
532
|
# @return [Array<(Response<(Array<JobLocale>)>, Integer, Hash)>] Response<(Array<JobLocale>)> data, response status code and response headers
|
533
533
|
def job_locales_list_with_http_info(project_id, job_id, opts = {})
|
data/lib/phrase/api/jobs_api.rb
CHANGED
@@ -711,7 +711,7 @@ module Phrase
|
|
711
711
|
# @param [Hash] opts the optional parameters
|
712
712
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
713
713
|
# @option opts [Integer] :page Page number
|
714
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
714
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
715
715
|
# @option opts [String] :branch specify the branch to use
|
716
716
|
# @option opts [String] :owned_by filter by user owning job
|
717
717
|
# @option opts [String] :assigned_to filter by user assigned to job
|
@@ -728,7 +728,7 @@ module Phrase
|
|
728
728
|
# @param [Hash] opts the optional parameters
|
729
729
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
730
730
|
# @option opts [Integer] :page Page number
|
731
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
731
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
732
732
|
# @option opts [String] :branch specify the branch to use
|
733
733
|
# @option opts [String] :owned_by filter by user owning job
|
734
734
|
# @option opts [String] :assigned_to filter by user assigned to job
|
data/lib/phrase/api/keys_api.rb
CHANGED
@@ -390,7 +390,7 @@ module Phrase
|
|
390
390
|
# @param [Hash] opts the optional parameters
|
391
391
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
392
392
|
# @option opts [Integer] :page Page number
|
393
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
393
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
394
394
|
# @option opts [String] :branch specify the branch to use
|
395
395
|
# @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
|
396
396
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
@@ -408,7 +408,7 @@ module Phrase
|
|
408
408
|
# @param [Hash] opts the optional parameters
|
409
409
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
410
410
|
# @option opts [Integer] :page Page number
|
411
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
411
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
412
412
|
# @option opts [String] :branch specify the branch to use
|
413
413
|
# @option opts [String] :sort Sort by field. Can be one of: name, created_at, updated_at.
|
414
414
|
# @option opts [String] :order Order direction. Can be one of: asc, desc.
|
@@ -478,7 +478,7 @@ module Phrase
|
|
478
478
|
# @param [Hash] opts the optional parameters
|
479
479
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
480
480
|
# @option opts [Integer] :page Page number
|
481
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
481
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
482
482
|
# @return [Array<TranslationKey>]
|
483
483
|
def keys_search(project_id, keys_search_parameters, opts = {})
|
484
484
|
data, _status_code, _headers = keys_search_with_http_info(project_id, keys_search_parameters, opts)
|
@@ -492,7 +492,7 @@ module Phrase
|
|
492
492
|
# @param [Hash] opts the optional parameters
|
493
493
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
494
494
|
# @option opts [Integer] :page Page number
|
495
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
495
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
496
496
|
# @return [Array<(Response<(Array<TranslationKey>)>, Integer, Hash)>] Response<(Array<TranslationKey>)> data, response status code and response headers
|
497
497
|
def keys_search_with_http_info(project_id, keys_search_parameters, opts = {})
|
498
498
|
if @api_client.config.debugging
|
@@ -427,7 +427,7 @@ module Phrase
|
|
427
427
|
# @param [Hash] opts the optional parameters
|
428
428
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
429
429
|
# @option opts [Integer] :page Page number
|
430
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
430
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
431
431
|
# @option opts [String] :branch specify the branch to use
|
432
432
|
# @return [Array<Locale>]
|
433
433
|
def locales_list(project_id, opts = {})
|
@@ -441,7 +441,7 @@ module Phrase
|
|
441
441
|
# @param [Hash] opts the optional parameters
|
442
442
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
443
443
|
# @option opts [Integer] :page Page number
|
444
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
444
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
445
445
|
# @option opts [String] :branch specify the branch to use
|
446
446
|
# @return [Array<(Response<(Array<Locale>)>, Integer, Hash)>] Response<(Array<Locale>)> data, response status code and response headers
|
447
447
|
def locales_list_with_http_info(project_id, opts = {})
|
@@ -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 allows you to specify a page size up to 100 items,
|
238
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
239
239
|
# @return [Array<Member>]
|
240
240
|
def members_list(account_id, opts = {})
|
241
241
|
data, _status_code, _headers = members_list_with_http_info(account_id, opts)
|
@@ -248,7 +248,7 @@ module Phrase
|
|
248
248
|
# @param [Hash] opts the optional parameters
|
249
249
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
250
250
|
# @option opts [Integer] :page Page number
|
251
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
251
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
252
252
|
# @return [Array<(Response<(Array<Member>)>, Integer, Hash)>] Response<(Array<Member>)> data, response status code and response headers
|
253
253
|
def members_list_with_http_info(account_id, opts = {})
|
254
254
|
if @api_client.config.debugging
|
@@ -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 allows you to specify a page size up to 100 items,
|
318
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 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 allows you to specify a page size up to 100 items,
|
332
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 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 allows you to specify a page size up to 100 items,
|
287
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
288
288
|
# @return [Array<Project>]
|
289
289
|
def projects_list(opts = {})
|
290
290
|
data, _status_code, _headers = projects_list_with_http_info(opts)
|
@@ -296,7 +296,7 @@ module Phrase
|
|
296
296
|
# @param [Hash] opts the optional parameters
|
297
297
|
# @option opts [String] :x_phrase_app_otp Two-Factor-Authentication token (optional)
|
298
298
|
# @option opts [Integer] :page Page number
|
299
|
-
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items,
|
299
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
300
300
|
# @return [Array<(Response<(Array<Project>)>, Integer, Hash)>] Response<(Array<Project>)> data, response status code and response headers
|
301
301
|
def projects_list_with_http_info(opts = {})
|
302
302
|
if @api_client.config.debugging
|
@@ -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 allows you to specify a page size up to 100 items,
|
415
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 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 allows you to specify a page size up to 100 items,
|
429
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 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
|
@@ -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 allows you to specify a page size up to 100 items,
|
325
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
326
326
|
# @return [Array<ScreenshotMarker>]
|
327
327
|
def screenshot_markers_list(project_id, id, opts = {})
|
328
328
|
data, _status_code, _headers = screenshot_markers_list_with_http_info(project_id, id, opts)
|
@@ -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 allows you to specify a page size up to 100 items,
|
339
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
340
340
|
# @return [Array<(Response<(Array<ScreenshotMarker>)>, Integer, Hash)>] Response<(Array<ScreenshotMarker>)> data, response status code and response headers
|
341
341
|
def screenshot_markers_list_with_http_info(project_id, id, opts = {})
|
342
342
|
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 allows you to specify a page size up to 100 items,
|
312
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
313
313
|
# @return [Array<Screenshot>]
|
314
314
|
def screenshots_list(project_id, opts = {})
|
315
315
|
data, _status_code, _headers = screenshots_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 allows you to specify a page size up to 100 items,
|
325
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 25 by default
|
326
326
|
# @return [Array<(Response<(Array<Screenshot>)>, Integer, Hash)>] Response<(Array<Screenshot>)> data, response status code and response headers
|
327
327
|
def screenshots_list_with_http_info(project_id, opts = {})
|
328
328
|
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 allows you to specify a page size up to 100 items,
|
312
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 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 allows you to specify a page size up to 100 items,
|
325
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 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 allows you to specify a page size up to 100 items,
|
539
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 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 allows you to specify a page size up to 100 items,
|
553
|
+
# @option opts [Integer] :per_page allows you to specify a page size up to 100 items, 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
|