weblate 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +5 -0
- data/COPYING +674 -0
- data/Gemfile +8 -0
- data/README.md +334 -0
- data/Rakefile +49 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/bin/smoketest +14 -0
- data/bin/smoketest~ +0 -0
- data/docs/ActionEnum.md +15 -0
- data/docs/Addon.md +28 -0
- data/docs/AddonsApi.md +366 -0
- data/docs/AutoComponentList.md +20 -0
- data/docs/BasicUser.md +22 -0
- data/docs/BlankEnum.md +15 -0
- data/docs/CategoriesApi.md +520 -0
- data/docs/Category.md +30 -0
- data/docs/Change.md +42 -0
- data/docs/ChangesApi.md +163 -0
- data/docs/ColorEnum.md +15 -0
- data/docs/Component.md +146 -0
- data/docs/ComponentLanguageCodeStyle.md +49 -0
- data/docs/ComponentList.md +30 -0
- data/docs/ComponentListsApi.md +667 -0
- data/docs/ComponentsApi.md +1653 -0
- data/docs/ConflictsEnum.md +15 -0
- data/docs/DirectionEnum.md +15 -0
- data/docs/FileFormatEnum.md +15 -0
- data/docs/FrequencyEnum.md +15 -0
- data/docs/FuzzyEnum.md +15 -0
- data/docs/Group.md +40 -0
- data/docs/GroupsApi.md +1257 -0
- data/docs/Language.md +36 -0
- data/docs/LanguageCodeStyleEnum.md +15 -0
- data/docs/LanguagePlural.md +26 -0
- data/docs/LanguageSelectionEnum.md +15 -0
- data/docs/LanguagesApi.md +520 -0
- data/docs/LicenseEnum.md +15 -0
- data/docs/LockRequest.md +18 -0
- data/docs/Memory.md +34 -0
- data/docs/MemoryApi.md +448 -0
- data/docs/MergeStyleEnum.md +15 -0
- data/docs/MethodEnum.md +15 -0
- data/docs/Metrics.md +42 -0
- data/docs/MetricsApi.md +81 -0
- data/docs/NewLangEnum.md +15 -0
- data/docs/Notification.md +28 -0
- data/docs/NotificationEnum.md +15 -0
- data/docs/OperationEnum.md +15 -0
- data/docs/PaginatedAddonList.md +24 -0
- data/docs/PaginatedBasicUserList.md +24 -0
- data/docs/PaginatedCategoryList.md +24 -0
- data/docs/PaginatedChangeList.md +24 -0
- data/docs/PaginatedComponentList.md +24 -0
- data/docs/PaginatedComponentListList.md +24 -0
- data/docs/PaginatedGroupList.md +24 -0
- data/docs/PaginatedLanguageList.md +24 -0
- data/docs/PaginatedMemoryList.md +24 -0
- data/docs/PaginatedNotificationList.md +24 -0
- data/docs/PaginatedProjectList.md +24 -0
- data/docs/PaginatedRoleList.md +24 -0
- data/docs/PaginatedScreenshotList.md +24 -0
- data/docs/PaginatedTranslationList.md +24 -0
- data/docs/PaginatedUnitList.md +24 -0
- data/docs/PatchedAddon.md +28 -0
- data/docs/PatchedBasicUser.md +22 -0
- data/docs/PatchedCategory.md +30 -0
- data/docs/PatchedComponent.md +146 -0
- data/docs/PatchedComponentList.md +30 -0
- data/docs/PatchedGroup.md +40 -0
- data/docs/PatchedLanguage.md +36 -0
- data/docs/PatchedMemory.md +34 -0
- data/docs/PatchedNotification.md +28 -0
- data/docs/PatchedProject.md +58 -0
- data/docs/PatchedRole.md +24 -0
- data/docs/PatchedScreenshot.md +30 -0
- data/docs/PatchedUnitWrite.md +26 -0
- data/docs/PriorityEnum.md +15 -0
- data/docs/Project.md +58 -0
- data/docs/ProjectSelectionEnum.md +15 -0
- data/docs/ProjectsApi.md +1392 -0
- data/docs/RepoRequest.md +18 -0
- data/docs/Role.md +24 -0
- data/docs/RolesApi.md +448 -0
- data/docs/ScopeEnum.md +15 -0
- data/docs/Screenshot.md +30 -0
- data/docs/ScreenshotFile.md +18 -0
- data/docs/ScreenshotsApi.md +815 -0
- data/docs/SearchApi.md +75 -0
- data/docs/SourceEnum.md +15 -0
- data/docs/StateEnum.md +15 -0
- data/docs/TasksApi.md +145 -0
- data/docs/TextDirection.md +49 -0
- data/docs/Translation.md +80 -0
- data/docs/TranslationsApi.md +1028 -0
- data/docs/Unit.md +76 -0
- data/docs/UnitFlatLabels.md +24 -0
- data/docs/UnitLabels.md +24 -0
- data/docs/UnitWrite.md +26 -0
- data/docs/UnitsApi.md +376 -0
- data/docs/UploadRequest.md +28 -0
- data/docs/UploadRequestConflicts.md +49 -0
- data/docs/UploadRequestFuzzy.md +49 -0
- data/docs/UsersApi.md +1130 -0
- data/docs/VcsEnum.md +15 -0
- data/git_push.sh +57 -0
- data/lib/weblate/api/addons_api.rb +353 -0
- data/lib/weblate/api/categories_api.rb +495 -0
- data/lib/weblate/api/changes_api.rb +165 -0
- data/lib/weblate/api/component_lists_api.rb +642 -0
- data/lib/weblate/api/components_api.rb +1775 -0
- data/lib/weblate/api/groups_api.rb +1261 -0
- data/lib/weblate/api/languages_api.rb +495 -0
- data/lib/weblate/api/memory_api.rb +429 -0
- data/lib/weblate/api/metrics_api.rb +84 -0
- data/lib/weblate/api/projects_api.rb +1331 -0
- data/lib/weblate/api/roles_api.rb +429 -0
- data/lib/weblate/api/screenshots_api.rb +803 -0
- data/lib/weblate/api/search_api.rb +75 -0
- data/lib/weblate/api/tasks_api.rb +146 -0
- data/lib/weblate/api/translations_api.rb +1232 -0
- data/lib/weblate/api/units_api.rb +363 -0
- data/lib/weblate/api/users_api.rb +1104 -0
- data/lib/weblate/api_client.rb +437 -0
- data/lib/weblate/api_error.rb +58 -0
- data/lib/weblate/configuration.rb +392 -0
- data/lib/weblate/models/action_enum.rb +108 -0
- data/lib/weblate/models/addon.rb +314 -0
- data/lib/weblate/models/auto_component_list.rb +263 -0
- data/lib/weblate/models/basic_user.rb +292 -0
- data/lib/weblate/models/blank_enum.rb +39 -0
- data/lib/weblate/models/category.rb +361 -0
- data/lib/weblate/models/change.rb +408 -0
- data/lib/weblate/models/color_enum.rb +54 -0
- data/lib/weblate/models/component.rb +1377 -0
- data/lib/weblate/models/component_language_code_style.rb +106 -0
- data/lib/weblate/models/component_list.rb +366 -0
- data/lib/weblate/models/conflicts_enum.rb +41 -0
- data/lib/weblate/models/direction_enum.rb +40 -0
- data/lib/weblate/models/file_format_enum.rb +101 -0
- data/lib/weblate/models/frequency_enum.rb +43 -0
- data/lib/weblate/models/fuzzy_enum.rb +40 -0
- data/lib/weblate/models/group.rb +421 -0
- data/lib/weblate/models/language.rb +417 -0
- data/lib/weblate/models/language_code_style_enum.rb +51 -0
- data/lib/weblate/models/language_plural.rb +314 -0
- data/lib/weblate/models/language_selection_enum.rb +40 -0
- data/lib/weblate/models/license_enum.rb +677 -0
- data/lib/weblate/models/lock_request.rb +221 -0
- data/lib/weblate/models/memory.rb +329 -0
- data/lib/weblate/models/merge_style_enum.rb +41 -0
- data/lib/weblate/models/method_enum.rb +45 -0
- data/lib/weblate/models/metrics.rb +415 -0
- data/lib/weblate/models/new_lang_enum.rb +42 -0
- data/lib/weblate/models/notification.rb +323 -0
- data/lib/weblate/models/notification_enum.rb +60 -0
- data/lib/weblate/models/operation_enum.rb +43 -0
- data/lib/weblate/models/paginated_addon_list.rb +259 -0
- data/lib/weblate/models/paginated_basic_user_list.rb +259 -0
- data/lib/weblate/models/paginated_category_list.rb +259 -0
- data/lib/weblate/models/paginated_change_list.rb +259 -0
- data/lib/weblate/models/paginated_component_list.rb +259 -0
- data/lib/weblate/models/paginated_component_list_list.rb +259 -0
- data/lib/weblate/models/paginated_group_list.rb +259 -0
- data/lib/weblate/models/paginated_language_list.rb +259 -0
- data/lib/weblate/models/paginated_memory_list.rb +259 -0
- data/lib/weblate/models/paginated_notification_list.rb +259 -0
- data/lib/weblate/models/paginated_project_list.rb +259 -0
- data/lib/weblate/models/paginated_role_list.rb +259 -0
- data/lib/weblate/models/paginated_screenshot_list.rb +259 -0
- data/lib/weblate/models/paginated_translation_list.rb +259 -0
- data/lib/weblate/models/paginated_unit_list.rb +259 -0
- data/lib/weblate/models/patched_addon.rb +279 -0
- data/lib/weblate/models/patched_basic_user.rb +271 -0
- data/lib/weblate/models/patched_category.rb +319 -0
- data/lib/weblate/models/patched_component.rb +1242 -0
- data/lib/weblate/models/patched_component_list.rb +324 -0
- data/lib/weblate/models/patched_group.rb +365 -0
- data/lib/weblate/models/patched_language.rb +375 -0
- data/lib/weblate/models/patched_memory.rb +287 -0
- data/lib/weblate/models/patched_notification.rb +281 -0
- data/lib/weblate/models/patched_project.rb +472 -0
- data/lib/weblate/models/patched_role.rb +262 -0
- data/lib/weblate/models/patched_screenshot.rb +309 -0
- data/lib/weblate/models/patched_unit_write.rb +279 -0
- data/lib/weblate/models/priority_enum.rb +43 -0
- data/lib/weblate/models/project.rb +563 -0
- data/lib/weblate/models/project_selection_enum.rb +43 -0
- data/lib/weblate/models/repo_request.rb +243 -0
- data/lib/weblate/models/role.rb +290 -0
- data/lib/weblate/models/scope_enum.rb +43 -0
- data/lib/weblate/models/screenshot.rb +351 -0
- data/lib/weblate/models/screenshot_file.rb +221 -0
- data/lib/weblate/models/source_enum.rb +45 -0
- data/lib/weblate/models/state_enum.rb +43 -0
- data/lib/weblate/models/text_direction.rb +105 -0
- data/lib/weblate/models/translation.rb +760 -0
- data/lib/weblate/models/unit.rb +757 -0
- data/lib/weblate/models/unit_flat_labels.rb +315 -0
- data/lib/weblate/models/unit_labels.rb +315 -0
- data/lib/weblate/models/unit_write.rb +293 -0
- data/lib/weblate/models/upload_request.rb +307 -0
- data/lib/weblate/models/upload_request_conflicts.rb +105 -0
- data/lib/weblate/models/upload_request_fuzzy.rb +105 -0
- data/lib/weblate/models/vcs_enum.rb +46 -0
- data/lib/weblate/version.rb +15 -0
- data/lib/weblate.rb +135 -0
- data/manifest.scm +6 -0
- data/schema.patched.yaml +10113 -0
- data/schema.yaml +10116 -0
- data/sig/weblate.rbs +4 -0
- data/spec/api/addons_api_spec.rb +88 -0
- data/spec/api/categories_api_spec.rb +115 -0
- data/spec/api/changes_api_spec.rb +62 -0
- data/spec/api/component_lists_api_spec.rb +139 -0
- data/spec/api/components_api_spec.rb +307 -0
- data/spec/api/groups_api_spec.rb +236 -0
- data/spec/api/languages_api_spec.rb +115 -0
- data/spec/api/memory_api_spec.rb +104 -0
- data/spec/api/metrics_api_spec.rb +46 -0
- data/spec/api/projects_api_spec.rb +251 -0
- data/spec/api/roles_api_spec.rb +104 -0
- data/spec/api/screenshots_api_spec.rb +163 -0
- data/spec/api/search_api_spec.rb +45 -0
- data/spec/api/tasks_api_spec.rb +55 -0
- data/spec/api/translations_api_spec.rb +218 -0
- data/spec/api/units_api_spec.rb +93 -0
- data/spec/api/users_api_spec.rb +218 -0
- data/spec/models/action_enum_spec.rb +30 -0
- data/spec/models/addon_spec.rb +66 -0
- data/spec/models/auto_component_list_spec.rb +42 -0
- data/spec/models/basic_user_spec.rb +48 -0
- data/spec/models/blank_enum_spec.rb +30 -0
- data/spec/models/category_spec.rb +72 -0
- data/spec/models/change_spec.rb +108 -0
- data/spec/models/color_enum_spec.rb +30 -0
- data/spec/models/component_language_code_style_spec.rb +32 -0
- data/spec/models/component_list_spec.rb +72 -0
- data/spec/models/component_spec.rb +420 -0
- data/spec/models/conflicts_enum_spec.rb +30 -0
- data/spec/models/direction_enum_spec.rb +30 -0
- data/spec/models/file_format_enum_spec.rb +30 -0
- data/spec/models/frequency_enum_spec.rb +30 -0
- data/spec/models/fuzzy_enum_spec.rb +30 -0
- data/spec/models/group_spec.rb +102 -0
- data/spec/models/language_code_style_enum_spec.rb +30 -0
- data/spec/models/language_plural_spec.rb +60 -0
- data/spec/models/language_selection_enum_spec.rb +30 -0
- data/spec/models/language_spec.rb +90 -0
- data/spec/models/license_enum_spec.rb +30 -0
- data/spec/models/lock_request_spec.rb +36 -0
- data/spec/models/memory_spec.rb +84 -0
- data/spec/models/merge_style_enum_spec.rb +30 -0
- data/spec/models/method_enum_spec.rb +30 -0
- data/spec/models/metrics_spec.rb +108 -0
- data/spec/models/new_lang_enum_spec.rb +30 -0
- data/spec/models/notification_enum_spec.rb +30 -0
- data/spec/models/notification_spec.rb +66 -0
- data/spec/models/operation_enum_spec.rb +30 -0
- data/spec/models/paginated_addon_list_spec.rb +54 -0
- data/spec/models/paginated_basic_user_list_spec.rb +54 -0
- data/spec/models/paginated_category_list_spec.rb +54 -0
- data/spec/models/paginated_change_list_spec.rb +54 -0
- data/spec/models/paginated_component_list_list_spec.rb +54 -0
- data/spec/models/paginated_component_list_spec.rb +54 -0
- data/spec/models/paginated_group_list_spec.rb +54 -0
- data/spec/models/paginated_language_list_spec.rb +54 -0
- data/spec/models/paginated_memory_list_spec.rb +54 -0
- data/spec/models/paginated_notification_list_spec.rb +54 -0
- data/spec/models/paginated_project_list_spec.rb +54 -0
- data/spec/models/paginated_role_list_spec.rb +54 -0
- data/spec/models/paginated_screenshot_list_spec.rb +54 -0
- data/spec/models/paginated_translation_list_spec.rb +54 -0
- data/spec/models/paginated_unit_list_spec.rb +54 -0
- data/spec/models/patched_addon_spec.rb +66 -0
- data/spec/models/patched_basic_user_spec.rb +48 -0
- data/spec/models/patched_category_spec.rb +72 -0
- data/spec/models/patched_component_list_spec.rb +72 -0
- data/spec/models/patched_component_spec.rb +420 -0
- data/spec/models/patched_group_spec.rb +102 -0
- data/spec/models/patched_language_spec.rb +90 -0
- data/spec/models/patched_memory_spec.rb +84 -0
- data/spec/models/patched_notification_spec.rb +66 -0
- data/spec/models/patched_project_spec.rb +156 -0
- data/spec/models/patched_role_spec.rb +54 -0
- data/spec/models/patched_screenshot_spec.rb +72 -0
- data/spec/models/patched_unit_write_spec.rb +60 -0
- data/spec/models/priority_enum_spec.rb +30 -0
- data/spec/models/project_selection_enum_spec.rb +30 -0
- data/spec/models/project_spec.rb +156 -0
- data/spec/models/repo_request_spec.rb +36 -0
- data/spec/models/role_spec.rb +54 -0
- data/spec/models/scope_enum_spec.rb +30 -0
- data/spec/models/screenshot_file_spec.rb +36 -0
- data/spec/models/screenshot_spec.rb +72 -0
- data/spec/models/source_enum_spec.rb +30 -0
- data/spec/models/state_enum_spec.rb +30 -0
- data/spec/models/text_direction_spec.rb +32 -0
- data/spec/models/translation_spec.rb +222 -0
- data/spec/models/unit_flat_labels_spec.rb +54 -0
- data/spec/models/unit_labels_spec.rb +54 -0
- data/spec/models/unit_spec.rb +210 -0
- data/spec/models/unit_write_spec.rb +60 -0
- data/spec/models/upload_request_conflicts_spec.rb +32 -0
- data/spec/models/upload_request_fuzzy_spec.rb +32 -0
- data/spec/models/upload_request_spec.rb +66 -0
- data/spec/models/vcs_enum_spec.rb +30 -0
- data/spec/spec_helper.rb +111 -0
- data/weblate.gemspec +47 -0
- metadata +526 -0
|
@@ -0,0 +1,1232 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Weblate's REST API
|
|
3
|
+
|
|
4
|
+
# The API is accessible on the ``/api/`` URL and it is based on [Django REST framework](https://www.django-rest-framework.org/). The OpenAPI specification is available as feature preview, feedback welcome!
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document:
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.9.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Weblate
|
|
16
|
+
class TranslationsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Translation components API.
|
|
23
|
+
# @param component__project__slug [String]
|
|
24
|
+
# @param component__slug [String]
|
|
25
|
+
# @param language__code [String]
|
|
26
|
+
# @param translation [Translation]
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [Translation]
|
|
29
|
+
def translations_autotranslate_create(component__project__slug, component__slug, language__code, translation, opts = {})
|
|
30
|
+
data, _status_code, _headers = translations_autotranslate_create_with_http_info(component__project__slug, component__slug, language__code, translation, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Translation components API.
|
|
35
|
+
# @param component__project__slug [String]
|
|
36
|
+
# @param component__slug [String]
|
|
37
|
+
# @param language__code [String]
|
|
38
|
+
# @param translation [Translation]
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Array<(Translation, Integer, Hash)>] Translation data, response status code and response headers
|
|
41
|
+
def translations_autotranslate_create_with_http_info(component__project__slug, component__slug, language__code, translation, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_autotranslate_create ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'component__project__slug' is set
|
|
46
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_autotranslate_create"
|
|
48
|
+
end
|
|
49
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
50
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
51
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_autotranslate_create, must conform to the pattern #{pattern}."
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# verify the required parameter 'component__slug' is set
|
|
55
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
56
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_autotranslate_create"
|
|
57
|
+
end
|
|
58
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
59
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
60
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_autotranslate_create, must conform to the pattern #{pattern}."
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# verify the required parameter 'language__code' is set
|
|
64
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
65
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_autotranslate_create"
|
|
66
|
+
end
|
|
67
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
68
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
69
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_autotranslate_create, must conform to the pattern #{pattern}."
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# verify the required parameter 'translation' is set
|
|
73
|
+
if @api_client.config.client_side_validation && translation.nil?
|
|
74
|
+
fail ArgumentError, "Missing the required parameter 'translation' when calling TranslationsApi.translations_autotranslate_create"
|
|
75
|
+
end
|
|
76
|
+
# resource path
|
|
77
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/autotranslate/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
78
|
+
|
|
79
|
+
# query parameters
|
|
80
|
+
query_params = opts[:query_params] || {}
|
|
81
|
+
|
|
82
|
+
# header parameters
|
|
83
|
+
header_params = opts[:header_params] || {}
|
|
84
|
+
# HTTP header 'Accept' (if needed)
|
|
85
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
86
|
+
# HTTP header 'Content-Type'
|
|
87
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
88
|
+
if !content_type.nil?
|
|
89
|
+
header_params['Content-Type'] = content_type
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# form parameters
|
|
93
|
+
form_params = opts[:form_params] || {}
|
|
94
|
+
|
|
95
|
+
# http body (model)
|
|
96
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(translation)
|
|
97
|
+
|
|
98
|
+
# return_type
|
|
99
|
+
return_type = opts[:debug_return_type] || 'Translation'
|
|
100
|
+
|
|
101
|
+
# auth_names
|
|
102
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
103
|
+
|
|
104
|
+
new_options = opts.merge(
|
|
105
|
+
:operation => :"TranslationsApi.translations_autotranslate_create",
|
|
106
|
+
:header_params => header_params,
|
|
107
|
+
:query_params => query_params,
|
|
108
|
+
:form_params => form_params,
|
|
109
|
+
:body => post_body,
|
|
110
|
+
:auth_names => auth_names,
|
|
111
|
+
:return_type => return_type
|
|
112
|
+
)
|
|
113
|
+
|
|
114
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
115
|
+
if @api_client.config.debugging
|
|
116
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_autotranslate_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
117
|
+
end
|
|
118
|
+
return data, status_code, headers
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Translation components API.
|
|
122
|
+
# @param component__project__slug [String]
|
|
123
|
+
# @param component__slug [String]
|
|
124
|
+
# @param language__code [String]
|
|
125
|
+
# @param [Hash] opts the optional parameters
|
|
126
|
+
# @return [Translation]
|
|
127
|
+
def translations_changes_retrieve(component__project__slug, component__slug, language__code, opts = {})
|
|
128
|
+
data, _status_code, _headers = translations_changes_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts)
|
|
129
|
+
data
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Translation components API.
|
|
133
|
+
# @param component__project__slug [String]
|
|
134
|
+
# @param component__slug [String]
|
|
135
|
+
# @param language__code [String]
|
|
136
|
+
# @param [Hash] opts the optional parameters
|
|
137
|
+
# @return [Array<(Translation, Integer, Hash)>] Translation data, response status code and response headers
|
|
138
|
+
def translations_changes_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts = {})
|
|
139
|
+
if @api_client.config.debugging
|
|
140
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_changes_retrieve ...'
|
|
141
|
+
end
|
|
142
|
+
# verify the required parameter 'component__project__slug' is set
|
|
143
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
144
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_changes_retrieve"
|
|
145
|
+
end
|
|
146
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
147
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
148
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_changes_retrieve, must conform to the pattern #{pattern}."
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# verify the required parameter 'component__slug' is set
|
|
152
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
153
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_changes_retrieve"
|
|
154
|
+
end
|
|
155
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
156
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
157
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_changes_retrieve, must conform to the pattern #{pattern}."
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# verify the required parameter 'language__code' is set
|
|
161
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
162
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_changes_retrieve"
|
|
163
|
+
end
|
|
164
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
165
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
166
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_changes_retrieve, must conform to the pattern #{pattern}."
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# resource path
|
|
170
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/changes/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
171
|
+
|
|
172
|
+
# query parameters
|
|
173
|
+
query_params = opts[:query_params] || {}
|
|
174
|
+
|
|
175
|
+
# header parameters
|
|
176
|
+
header_params = opts[:header_params] || {}
|
|
177
|
+
# HTTP header 'Accept' (if needed)
|
|
178
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
179
|
+
|
|
180
|
+
# form parameters
|
|
181
|
+
form_params = opts[:form_params] || {}
|
|
182
|
+
|
|
183
|
+
# http body (model)
|
|
184
|
+
post_body = opts[:debug_body]
|
|
185
|
+
|
|
186
|
+
# return_type
|
|
187
|
+
return_type = opts[:debug_return_type] || 'Translation'
|
|
188
|
+
|
|
189
|
+
# auth_names
|
|
190
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
191
|
+
|
|
192
|
+
new_options = opts.merge(
|
|
193
|
+
:operation => :"TranslationsApi.translations_changes_retrieve",
|
|
194
|
+
:header_params => header_params,
|
|
195
|
+
:query_params => query_params,
|
|
196
|
+
:form_params => form_params,
|
|
197
|
+
:body => post_body,
|
|
198
|
+
:auth_names => auth_names,
|
|
199
|
+
:return_type => return_type
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
203
|
+
if @api_client.config.debugging
|
|
204
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_changes_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
205
|
+
end
|
|
206
|
+
return data, status_code, headers
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
# Translation components API.
|
|
210
|
+
# @param component__project__slug [String]
|
|
211
|
+
# @param component__slug [String]
|
|
212
|
+
# @param language__code [String]
|
|
213
|
+
# @param [Hash] opts the optional parameters
|
|
214
|
+
# @return [nil]
|
|
215
|
+
def translations_destroy(component__project__slug, component__slug, language__code, opts = {})
|
|
216
|
+
translations_destroy_with_http_info(component__project__slug, component__slug, language__code, opts)
|
|
217
|
+
nil
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Translation components API.
|
|
221
|
+
# @param component__project__slug [String]
|
|
222
|
+
# @param component__slug [String]
|
|
223
|
+
# @param language__code [String]
|
|
224
|
+
# @param [Hash] opts the optional parameters
|
|
225
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
226
|
+
def translations_destroy_with_http_info(component__project__slug, component__slug, language__code, opts = {})
|
|
227
|
+
if @api_client.config.debugging
|
|
228
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_destroy ...'
|
|
229
|
+
end
|
|
230
|
+
# verify the required parameter 'component__project__slug' is set
|
|
231
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
232
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_destroy"
|
|
233
|
+
end
|
|
234
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
235
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
236
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_destroy, must conform to the pattern #{pattern}."
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# verify the required parameter 'component__slug' is set
|
|
240
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
241
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_destroy"
|
|
242
|
+
end
|
|
243
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
244
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
245
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_destroy, must conform to the pattern #{pattern}."
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# verify the required parameter 'language__code' is set
|
|
249
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
250
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_destroy"
|
|
251
|
+
end
|
|
252
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
253
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
254
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_destroy, must conform to the pattern #{pattern}."
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# resource path
|
|
258
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
259
|
+
|
|
260
|
+
# query parameters
|
|
261
|
+
query_params = opts[:query_params] || {}
|
|
262
|
+
|
|
263
|
+
# header parameters
|
|
264
|
+
header_params = opts[:header_params] || {}
|
|
265
|
+
|
|
266
|
+
# form parameters
|
|
267
|
+
form_params = opts[:form_params] || {}
|
|
268
|
+
|
|
269
|
+
# http body (model)
|
|
270
|
+
post_body = opts[:debug_body]
|
|
271
|
+
|
|
272
|
+
# return_type
|
|
273
|
+
return_type = opts[:debug_return_type]
|
|
274
|
+
|
|
275
|
+
# auth_names
|
|
276
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
277
|
+
|
|
278
|
+
new_options = opts.merge(
|
|
279
|
+
:operation => :"TranslationsApi.translations_destroy",
|
|
280
|
+
:header_params => header_params,
|
|
281
|
+
:query_params => query_params,
|
|
282
|
+
:form_params => form_params,
|
|
283
|
+
:body => post_body,
|
|
284
|
+
:auth_names => auth_names,
|
|
285
|
+
:return_type => return_type
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
289
|
+
if @api_client.config.debugging
|
|
290
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_destroy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
291
|
+
end
|
|
292
|
+
return data, status_code, headers
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# Translation components API.
|
|
296
|
+
# @param component__project__slug [String]
|
|
297
|
+
# @param component__slug [String]
|
|
298
|
+
# @param language__code [String]
|
|
299
|
+
# @param file [String]
|
|
300
|
+
# @param [Hash] opts the optional parameters
|
|
301
|
+
# @option opts [String] :author_email
|
|
302
|
+
# @option opts [String] :author_name
|
|
303
|
+
# @option opts [MethodEnum] :method
|
|
304
|
+
# @option opts [UploadRequestFuzzy] :fuzzy
|
|
305
|
+
# @option opts [UploadRequestConflicts] :conflicts
|
|
306
|
+
# @return [UploadRequest]
|
|
307
|
+
def translations_file_create(component__project__slug, component__slug, language__code, file, opts = {})
|
|
308
|
+
data, _status_code, _headers = translations_file_create_with_http_info(component__project__slug, component__slug, language__code, file, opts)
|
|
309
|
+
data
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Translation components API.
|
|
313
|
+
# @param component__project__slug [String]
|
|
314
|
+
# @param component__slug [String]
|
|
315
|
+
# @param language__code [String]
|
|
316
|
+
# @param file [String]
|
|
317
|
+
# @param [Hash] opts the optional parameters
|
|
318
|
+
# @option opts [String] :author_email
|
|
319
|
+
# @option opts [String] :author_name
|
|
320
|
+
# @option opts [MethodEnum] :method
|
|
321
|
+
# @option opts [UploadRequestFuzzy] :fuzzy
|
|
322
|
+
# @option opts [UploadRequestConflicts] :conflicts
|
|
323
|
+
# @return [Array<(UploadRequest, Integer, Hash)>] UploadRequest data, response status code and response headers
|
|
324
|
+
def translations_file_create_with_http_info(component__project__slug, component__slug, language__code, file, opts = {})
|
|
325
|
+
if @api_client.config.debugging
|
|
326
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_file_create ...'
|
|
327
|
+
end
|
|
328
|
+
# verify the required parameter 'component__project__slug' is set
|
|
329
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
330
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_file_create"
|
|
331
|
+
end
|
|
332
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
333
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
334
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_file_create, must conform to the pattern #{pattern}."
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# verify the required parameter 'component__slug' is set
|
|
338
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
339
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_file_create"
|
|
340
|
+
end
|
|
341
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
342
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
343
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_file_create, must conform to the pattern #{pattern}."
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# verify the required parameter 'language__code' is set
|
|
347
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
348
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_file_create"
|
|
349
|
+
end
|
|
350
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
351
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
352
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_file_create, must conform to the pattern #{pattern}."
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
# verify the required parameter 'file' is set
|
|
356
|
+
if @api_client.config.client_side_validation && file.nil?
|
|
357
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling TranslationsApi.translations_file_create"
|
|
358
|
+
end
|
|
359
|
+
if @api_client.config.client_side_validation && !opts[:'author_name'].nil? && opts[:'author_name'].to_s.length > 200
|
|
360
|
+
fail ArgumentError, 'invalid value for "opts[:"author_name"]" when calling TranslationsApi.translations_file_create, the character length must be smaller than or equal to 200.'
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# resource path
|
|
364
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/file/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
365
|
+
|
|
366
|
+
# query parameters
|
|
367
|
+
query_params = opts[:query_params] || {}
|
|
368
|
+
|
|
369
|
+
# header parameters
|
|
370
|
+
header_params = opts[:header_params] || {}
|
|
371
|
+
# HTTP header 'Accept' (if needed)
|
|
372
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
373
|
+
# HTTP header 'Content-Type'
|
|
374
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
|
375
|
+
if !content_type.nil?
|
|
376
|
+
header_params['Content-Type'] = content_type
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# form parameters
|
|
380
|
+
form_params = opts[:form_params] || {}
|
|
381
|
+
form_params['file'] = file
|
|
382
|
+
form_params['author_email'] = opts[:'author_email'] if !opts[:'author_email'].nil?
|
|
383
|
+
form_params['author_name'] = opts[:'author_name'] if !opts[:'author_name'].nil?
|
|
384
|
+
form_params['method'] = opts[:'method'] if !opts[:'method'].nil?
|
|
385
|
+
form_params['fuzzy'] = opts[:'fuzzy'] if !opts[:'fuzzy'].nil?
|
|
386
|
+
form_params['conflicts'] = opts[:'conflicts'] if !opts[:'conflicts'].nil?
|
|
387
|
+
|
|
388
|
+
# http body (model)
|
|
389
|
+
post_body = opts[:debug_body]
|
|
390
|
+
|
|
391
|
+
# return_type
|
|
392
|
+
return_type = opts[:debug_return_type] || 'UploadRequest'
|
|
393
|
+
|
|
394
|
+
# auth_names
|
|
395
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
396
|
+
|
|
397
|
+
new_options = opts.merge(
|
|
398
|
+
:operation => :"TranslationsApi.translations_file_create",
|
|
399
|
+
:header_params => header_params,
|
|
400
|
+
:query_params => query_params,
|
|
401
|
+
:form_params => form_params,
|
|
402
|
+
:body => post_body,
|
|
403
|
+
:auth_names => auth_names,
|
|
404
|
+
:return_type => return_type
|
|
405
|
+
)
|
|
406
|
+
|
|
407
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
408
|
+
if @api_client.config.debugging
|
|
409
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_file_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
410
|
+
end
|
|
411
|
+
return data, status_code, headers
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# Translation components API.
|
|
415
|
+
# @param component__project__slug [String]
|
|
416
|
+
# @param component__slug [String]
|
|
417
|
+
# @param language__code [String]
|
|
418
|
+
# @param [Hash] opts the optional parameters
|
|
419
|
+
# @return [UploadRequest]
|
|
420
|
+
def translations_file_retrieve(component__project__slug, component__slug, language__code, opts = {})
|
|
421
|
+
data, _status_code, _headers = translations_file_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts)
|
|
422
|
+
data
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# Translation components API.
|
|
426
|
+
# @param component__project__slug [String]
|
|
427
|
+
# @param component__slug [String]
|
|
428
|
+
# @param language__code [String]
|
|
429
|
+
# @param [Hash] opts the optional parameters
|
|
430
|
+
# @return [Array<(UploadRequest, Integer, Hash)>] UploadRequest data, response status code and response headers
|
|
431
|
+
def translations_file_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts = {})
|
|
432
|
+
if @api_client.config.debugging
|
|
433
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_file_retrieve ...'
|
|
434
|
+
end
|
|
435
|
+
# verify the required parameter 'component__project__slug' is set
|
|
436
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
437
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_file_retrieve"
|
|
438
|
+
end
|
|
439
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
440
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
441
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_file_retrieve, must conform to the pattern #{pattern}."
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# verify the required parameter 'component__slug' is set
|
|
445
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
446
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_file_retrieve"
|
|
447
|
+
end
|
|
448
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
449
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
450
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_file_retrieve, must conform to the pattern #{pattern}."
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
# verify the required parameter 'language__code' is set
|
|
454
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
455
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_file_retrieve"
|
|
456
|
+
end
|
|
457
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
458
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
459
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_file_retrieve, must conform to the pattern #{pattern}."
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# resource path
|
|
463
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/file/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
464
|
+
|
|
465
|
+
# query parameters
|
|
466
|
+
query_params = opts[:query_params] || {}
|
|
467
|
+
|
|
468
|
+
# header parameters
|
|
469
|
+
header_params = opts[:header_params] || {}
|
|
470
|
+
# HTTP header 'Accept' (if needed)
|
|
471
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
472
|
+
|
|
473
|
+
# form parameters
|
|
474
|
+
form_params = opts[:form_params] || {}
|
|
475
|
+
|
|
476
|
+
# http body (model)
|
|
477
|
+
post_body = opts[:debug_body]
|
|
478
|
+
|
|
479
|
+
# return_type
|
|
480
|
+
return_type = opts[:debug_return_type] || 'UploadRequest'
|
|
481
|
+
|
|
482
|
+
# auth_names
|
|
483
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
484
|
+
|
|
485
|
+
new_options = opts.merge(
|
|
486
|
+
:operation => :"TranslationsApi.translations_file_retrieve",
|
|
487
|
+
:header_params => header_params,
|
|
488
|
+
:query_params => query_params,
|
|
489
|
+
:form_params => form_params,
|
|
490
|
+
:body => post_body,
|
|
491
|
+
:auth_names => auth_names,
|
|
492
|
+
:return_type => return_type
|
|
493
|
+
)
|
|
494
|
+
|
|
495
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
496
|
+
if @api_client.config.debugging
|
|
497
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_file_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
498
|
+
end
|
|
499
|
+
return data, status_code, headers
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
# Translation components API.
|
|
503
|
+
# @param component__project__slug [String]
|
|
504
|
+
# @param component__slug [String]
|
|
505
|
+
# @param language__code [String]
|
|
506
|
+
# @param file [String]
|
|
507
|
+
# @param [Hash] opts the optional parameters
|
|
508
|
+
# @option opts [String] :author_email
|
|
509
|
+
# @option opts [String] :author_name
|
|
510
|
+
# @option opts [MethodEnum] :method
|
|
511
|
+
# @option opts [UploadRequestFuzzy] :fuzzy
|
|
512
|
+
# @option opts [UploadRequestConflicts] :conflicts
|
|
513
|
+
# @return [UploadRequest]
|
|
514
|
+
def translations_file_update(component__project__slug, component__slug, language__code, file, opts = {})
|
|
515
|
+
data, _status_code, _headers = translations_file_update_with_http_info(component__project__slug, component__slug, language__code, file, opts)
|
|
516
|
+
data
|
|
517
|
+
end
|
|
518
|
+
|
|
519
|
+
# Translation components API.
|
|
520
|
+
# @param component__project__slug [String]
|
|
521
|
+
# @param component__slug [String]
|
|
522
|
+
# @param language__code [String]
|
|
523
|
+
# @param file [String]
|
|
524
|
+
# @param [Hash] opts the optional parameters
|
|
525
|
+
# @option opts [String] :author_email
|
|
526
|
+
# @option opts [String] :author_name
|
|
527
|
+
# @option opts [MethodEnum] :method
|
|
528
|
+
# @option opts [UploadRequestFuzzy] :fuzzy
|
|
529
|
+
# @option opts [UploadRequestConflicts] :conflicts
|
|
530
|
+
# @return [Array<(UploadRequest, Integer, Hash)>] UploadRequest data, response status code and response headers
|
|
531
|
+
def translations_file_update_with_http_info(component__project__slug, component__slug, language__code, file, opts = {})
|
|
532
|
+
if @api_client.config.debugging
|
|
533
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_file_update ...'
|
|
534
|
+
end
|
|
535
|
+
# verify the required parameter 'component__project__slug' is set
|
|
536
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
537
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_file_update"
|
|
538
|
+
end
|
|
539
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
540
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
541
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_file_update, must conform to the pattern #{pattern}."
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# verify the required parameter 'component__slug' is set
|
|
545
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
546
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_file_update"
|
|
547
|
+
end
|
|
548
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
549
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
550
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_file_update, must conform to the pattern #{pattern}."
|
|
551
|
+
end
|
|
552
|
+
|
|
553
|
+
# verify the required parameter 'language__code' is set
|
|
554
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
555
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_file_update"
|
|
556
|
+
end
|
|
557
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
558
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
559
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_file_update, must conform to the pattern #{pattern}."
|
|
560
|
+
end
|
|
561
|
+
|
|
562
|
+
# verify the required parameter 'file' is set
|
|
563
|
+
if @api_client.config.client_side_validation && file.nil?
|
|
564
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling TranslationsApi.translations_file_update"
|
|
565
|
+
end
|
|
566
|
+
if @api_client.config.client_side_validation && !opts[:'author_name'].nil? && opts[:'author_name'].to_s.length > 200
|
|
567
|
+
fail ArgumentError, 'invalid value for "opts[:"author_name"]" when calling TranslationsApi.translations_file_update, the character length must be smaller than or equal to 200.'
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
# resource path
|
|
571
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/file/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
572
|
+
|
|
573
|
+
# query parameters
|
|
574
|
+
query_params = opts[:query_params] || {}
|
|
575
|
+
|
|
576
|
+
# header parameters
|
|
577
|
+
header_params = opts[:header_params] || {}
|
|
578
|
+
# HTTP header 'Accept' (if needed)
|
|
579
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
580
|
+
# HTTP header 'Content-Type'
|
|
581
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
|
|
582
|
+
if !content_type.nil?
|
|
583
|
+
header_params['Content-Type'] = content_type
|
|
584
|
+
end
|
|
585
|
+
|
|
586
|
+
# form parameters
|
|
587
|
+
form_params = opts[:form_params] || {}
|
|
588
|
+
form_params['file'] = file
|
|
589
|
+
form_params['author_email'] = opts[:'author_email'] if !opts[:'author_email'].nil?
|
|
590
|
+
form_params['author_name'] = opts[:'author_name'] if !opts[:'author_name'].nil?
|
|
591
|
+
form_params['method'] = opts[:'method'] if !opts[:'method'].nil?
|
|
592
|
+
form_params['fuzzy'] = opts[:'fuzzy'] if !opts[:'fuzzy'].nil?
|
|
593
|
+
form_params['conflicts'] = opts[:'conflicts'] if !opts[:'conflicts'].nil?
|
|
594
|
+
|
|
595
|
+
# http body (model)
|
|
596
|
+
post_body = opts[:debug_body]
|
|
597
|
+
|
|
598
|
+
# return_type
|
|
599
|
+
return_type = opts[:debug_return_type] || 'UploadRequest'
|
|
600
|
+
|
|
601
|
+
# auth_names
|
|
602
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
603
|
+
|
|
604
|
+
new_options = opts.merge(
|
|
605
|
+
:operation => :"TranslationsApi.translations_file_update",
|
|
606
|
+
:header_params => header_params,
|
|
607
|
+
:query_params => query_params,
|
|
608
|
+
:form_params => form_params,
|
|
609
|
+
:body => post_body,
|
|
610
|
+
:auth_names => auth_names,
|
|
611
|
+
:return_type => return_type
|
|
612
|
+
)
|
|
613
|
+
|
|
614
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
615
|
+
if @api_client.config.debugging
|
|
616
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_file_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
617
|
+
end
|
|
618
|
+
return data, status_code, headers
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
# Translation components API.
|
|
622
|
+
# @param [Hash] opts the optional parameters
|
|
623
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
624
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
625
|
+
# @return [PaginatedTranslationList]
|
|
626
|
+
def translations_list(opts = {})
|
|
627
|
+
data, _status_code, _headers = translations_list_with_http_info(opts)
|
|
628
|
+
data
|
|
629
|
+
end
|
|
630
|
+
|
|
631
|
+
# Translation components API.
|
|
632
|
+
# @param [Hash] opts the optional parameters
|
|
633
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
634
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
635
|
+
# @return [Array<(PaginatedTranslationList, Integer, Hash)>] PaginatedTranslationList data, response status code and response headers
|
|
636
|
+
def translations_list_with_http_info(opts = {})
|
|
637
|
+
if @api_client.config.debugging
|
|
638
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_list ...'
|
|
639
|
+
end
|
|
640
|
+
# resource path
|
|
641
|
+
local_var_path = '/translations/'
|
|
642
|
+
|
|
643
|
+
# query parameters
|
|
644
|
+
query_params = opts[:query_params] || {}
|
|
645
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
646
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
647
|
+
|
|
648
|
+
# header parameters
|
|
649
|
+
header_params = opts[:header_params] || {}
|
|
650
|
+
# HTTP header 'Accept' (if needed)
|
|
651
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
652
|
+
|
|
653
|
+
# form parameters
|
|
654
|
+
form_params = opts[:form_params] || {}
|
|
655
|
+
|
|
656
|
+
# http body (model)
|
|
657
|
+
post_body = opts[:debug_body]
|
|
658
|
+
|
|
659
|
+
# return_type
|
|
660
|
+
return_type = opts[:debug_return_type] || 'PaginatedTranslationList'
|
|
661
|
+
|
|
662
|
+
# auth_names
|
|
663
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
664
|
+
|
|
665
|
+
new_options = opts.merge(
|
|
666
|
+
:operation => :"TranslationsApi.translations_list",
|
|
667
|
+
:header_params => header_params,
|
|
668
|
+
:query_params => query_params,
|
|
669
|
+
:form_params => form_params,
|
|
670
|
+
:body => post_body,
|
|
671
|
+
:auth_names => auth_names,
|
|
672
|
+
:return_type => return_type
|
|
673
|
+
)
|
|
674
|
+
|
|
675
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
676
|
+
if @api_client.config.debugging
|
|
677
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
678
|
+
end
|
|
679
|
+
return data, status_code, headers
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
# Translation components API.
|
|
683
|
+
# @param component__project__slug [String]
|
|
684
|
+
# @param component__slug [String]
|
|
685
|
+
# @param language__code [String]
|
|
686
|
+
# @param repo_request [RepoRequest]
|
|
687
|
+
# @param [Hash] opts the optional parameters
|
|
688
|
+
# @return [RepoRequest]
|
|
689
|
+
def translations_repository_create(component__project__slug, component__slug, language__code, repo_request, opts = {})
|
|
690
|
+
data, _status_code, _headers = translations_repository_create_with_http_info(component__project__slug, component__slug, language__code, repo_request, opts)
|
|
691
|
+
data
|
|
692
|
+
end
|
|
693
|
+
|
|
694
|
+
# Translation components API.
|
|
695
|
+
# @param component__project__slug [String]
|
|
696
|
+
# @param component__slug [String]
|
|
697
|
+
# @param language__code [String]
|
|
698
|
+
# @param repo_request [RepoRequest]
|
|
699
|
+
# @param [Hash] opts the optional parameters
|
|
700
|
+
# @return [Array<(RepoRequest, Integer, Hash)>] RepoRequest data, response status code and response headers
|
|
701
|
+
def translations_repository_create_with_http_info(component__project__slug, component__slug, language__code, repo_request, opts = {})
|
|
702
|
+
if @api_client.config.debugging
|
|
703
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_repository_create ...'
|
|
704
|
+
end
|
|
705
|
+
# verify the required parameter 'component__project__slug' is set
|
|
706
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
707
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_repository_create"
|
|
708
|
+
end
|
|
709
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
710
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
711
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_repository_create, must conform to the pattern #{pattern}."
|
|
712
|
+
end
|
|
713
|
+
|
|
714
|
+
# verify the required parameter 'component__slug' is set
|
|
715
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
716
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_repository_create"
|
|
717
|
+
end
|
|
718
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
719
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
720
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_repository_create, must conform to the pattern #{pattern}."
|
|
721
|
+
end
|
|
722
|
+
|
|
723
|
+
# verify the required parameter 'language__code' is set
|
|
724
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
725
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_repository_create"
|
|
726
|
+
end
|
|
727
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
728
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
729
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_repository_create, must conform to the pattern #{pattern}."
|
|
730
|
+
end
|
|
731
|
+
|
|
732
|
+
# verify the required parameter 'repo_request' is set
|
|
733
|
+
if @api_client.config.client_side_validation && repo_request.nil?
|
|
734
|
+
fail ArgumentError, "Missing the required parameter 'repo_request' when calling TranslationsApi.translations_repository_create"
|
|
735
|
+
end
|
|
736
|
+
# resource path
|
|
737
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/repository/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
738
|
+
|
|
739
|
+
# query parameters
|
|
740
|
+
query_params = opts[:query_params] || {}
|
|
741
|
+
|
|
742
|
+
# header parameters
|
|
743
|
+
header_params = opts[:header_params] || {}
|
|
744
|
+
# HTTP header 'Accept' (if needed)
|
|
745
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
746
|
+
# HTTP header 'Content-Type'
|
|
747
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
748
|
+
if !content_type.nil?
|
|
749
|
+
header_params['Content-Type'] = content_type
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
# form parameters
|
|
753
|
+
form_params = opts[:form_params] || {}
|
|
754
|
+
|
|
755
|
+
# http body (model)
|
|
756
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(repo_request)
|
|
757
|
+
|
|
758
|
+
# return_type
|
|
759
|
+
return_type = opts[:debug_return_type] || 'RepoRequest'
|
|
760
|
+
|
|
761
|
+
# auth_names
|
|
762
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
763
|
+
|
|
764
|
+
new_options = opts.merge(
|
|
765
|
+
:operation => :"TranslationsApi.translations_repository_create",
|
|
766
|
+
:header_params => header_params,
|
|
767
|
+
:query_params => query_params,
|
|
768
|
+
:form_params => form_params,
|
|
769
|
+
:body => post_body,
|
|
770
|
+
:auth_names => auth_names,
|
|
771
|
+
:return_type => return_type
|
|
772
|
+
)
|
|
773
|
+
|
|
774
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
775
|
+
if @api_client.config.debugging
|
|
776
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_repository_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
777
|
+
end
|
|
778
|
+
return data, status_code, headers
|
|
779
|
+
end
|
|
780
|
+
|
|
781
|
+
# Translation components API.
|
|
782
|
+
# @param component__project__slug [String]
|
|
783
|
+
# @param component__slug [String]
|
|
784
|
+
# @param language__code [String]
|
|
785
|
+
# @param [Hash] opts the optional parameters
|
|
786
|
+
# @return [RepoRequest]
|
|
787
|
+
def translations_repository_retrieve(component__project__slug, component__slug, language__code, opts = {})
|
|
788
|
+
data, _status_code, _headers = translations_repository_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts)
|
|
789
|
+
data
|
|
790
|
+
end
|
|
791
|
+
|
|
792
|
+
# Translation components API.
|
|
793
|
+
# @param component__project__slug [String]
|
|
794
|
+
# @param component__slug [String]
|
|
795
|
+
# @param language__code [String]
|
|
796
|
+
# @param [Hash] opts the optional parameters
|
|
797
|
+
# @return [Array<(RepoRequest, Integer, Hash)>] RepoRequest data, response status code and response headers
|
|
798
|
+
def translations_repository_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts = {})
|
|
799
|
+
if @api_client.config.debugging
|
|
800
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_repository_retrieve ...'
|
|
801
|
+
end
|
|
802
|
+
# verify the required parameter 'component__project__slug' is set
|
|
803
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
804
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_repository_retrieve"
|
|
805
|
+
end
|
|
806
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
807
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
808
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_repository_retrieve, must conform to the pattern #{pattern}."
|
|
809
|
+
end
|
|
810
|
+
|
|
811
|
+
# verify the required parameter 'component__slug' is set
|
|
812
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
813
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_repository_retrieve"
|
|
814
|
+
end
|
|
815
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
816
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
817
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_repository_retrieve, must conform to the pattern #{pattern}."
|
|
818
|
+
end
|
|
819
|
+
|
|
820
|
+
# verify the required parameter 'language__code' is set
|
|
821
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
822
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_repository_retrieve"
|
|
823
|
+
end
|
|
824
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
825
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
826
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_repository_retrieve, must conform to the pattern #{pattern}."
|
|
827
|
+
end
|
|
828
|
+
|
|
829
|
+
# resource path
|
|
830
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/repository/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
831
|
+
|
|
832
|
+
# query parameters
|
|
833
|
+
query_params = opts[:query_params] || {}
|
|
834
|
+
|
|
835
|
+
# header parameters
|
|
836
|
+
header_params = opts[:header_params] || {}
|
|
837
|
+
# HTTP header 'Accept' (if needed)
|
|
838
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
839
|
+
|
|
840
|
+
# form parameters
|
|
841
|
+
form_params = opts[:form_params] || {}
|
|
842
|
+
|
|
843
|
+
# http body (model)
|
|
844
|
+
post_body = opts[:debug_body]
|
|
845
|
+
|
|
846
|
+
# return_type
|
|
847
|
+
return_type = opts[:debug_return_type] || 'RepoRequest'
|
|
848
|
+
|
|
849
|
+
# auth_names
|
|
850
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
851
|
+
|
|
852
|
+
new_options = opts.merge(
|
|
853
|
+
:operation => :"TranslationsApi.translations_repository_retrieve",
|
|
854
|
+
:header_params => header_params,
|
|
855
|
+
:query_params => query_params,
|
|
856
|
+
:form_params => form_params,
|
|
857
|
+
:body => post_body,
|
|
858
|
+
:auth_names => auth_names,
|
|
859
|
+
:return_type => return_type
|
|
860
|
+
)
|
|
861
|
+
|
|
862
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
863
|
+
if @api_client.config.debugging
|
|
864
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_repository_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
865
|
+
end
|
|
866
|
+
return data, status_code, headers
|
|
867
|
+
end
|
|
868
|
+
|
|
869
|
+
# Translation components API.
|
|
870
|
+
# @param component__project__slug [String]
|
|
871
|
+
# @param component__slug [String]
|
|
872
|
+
# @param language__code [String]
|
|
873
|
+
# @param [Hash] opts the optional parameters
|
|
874
|
+
# @return [Translation]
|
|
875
|
+
def translations_retrieve(component__project__slug, component__slug, language__code, opts = {})
|
|
876
|
+
data, _status_code, _headers = translations_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts)
|
|
877
|
+
data
|
|
878
|
+
end
|
|
879
|
+
|
|
880
|
+
# Translation components API.
|
|
881
|
+
# @param component__project__slug [String]
|
|
882
|
+
# @param component__slug [String]
|
|
883
|
+
# @param language__code [String]
|
|
884
|
+
# @param [Hash] opts the optional parameters
|
|
885
|
+
# @return [Array<(Translation, Integer, Hash)>] Translation data, response status code and response headers
|
|
886
|
+
def translations_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts = {})
|
|
887
|
+
if @api_client.config.debugging
|
|
888
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_retrieve ...'
|
|
889
|
+
end
|
|
890
|
+
# verify the required parameter 'component__project__slug' is set
|
|
891
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
892
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_retrieve"
|
|
893
|
+
end
|
|
894
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
895
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
896
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_retrieve, must conform to the pattern #{pattern}."
|
|
897
|
+
end
|
|
898
|
+
|
|
899
|
+
# verify the required parameter 'component__slug' is set
|
|
900
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
901
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_retrieve"
|
|
902
|
+
end
|
|
903
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
904
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
905
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_retrieve, must conform to the pattern #{pattern}."
|
|
906
|
+
end
|
|
907
|
+
|
|
908
|
+
# verify the required parameter 'language__code' is set
|
|
909
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
910
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_retrieve"
|
|
911
|
+
end
|
|
912
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
913
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
914
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_retrieve, must conform to the pattern #{pattern}."
|
|
915
|
+
end
|
|
916
|
+
|
|
917
|
+
# resource path
|
|
918
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
919
|
+
|
|
920
|
+
# query parameters
|
|
921
|
+
query_params = opts[:query_params] || {}
|
|
922
|
+
|
|
923
|
+
# header parameters
|
|
924
|
+
header_params = opts[:header_params] || {}
|
|
925
|
+
# HTTP header 'Accept' (if needed)
|
|
926
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
927
|
+
|
|
928
|
+
# form parameters
|
|
929
|
+
form_params = opts[:form_params] || {}
|
|
930
|
+
|
|
931
|
+
# http body (model)
|
|
932
|
+
post_body = opts[:debug_body]
|
|
933
|
+
|
|
934
|
+
# return_type
|
|
935
|
+
return_type = opts[:debug_return_type] || 'Translation'
|
|
936
|
+
|
|
937
|
+
# auth_names
|
|
938
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
939
|
+
|
|
940
|
+
new_options = opts.merge(
|
|
941
|
+
:operation => :"TranslationsApi.translations_retrieve",
|
|
942
|
+
:header_params => header_params,
|
|
943
|
+
:query_params => query_params,
|
|
944
|
+
:form_params => form_params,
|
|
945
|
+
:body => post_body,
|
|
946
|
+
:auth_names => auth_names,
|
|
947
|
+
:return_type => return_type
|
|
948
|
+
)
|
|
949
|
+
|
|
950
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
951
|
+
if @api_client.config.debugging
|
|
952
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
953
|
+
end
|
|
954
|
+
return data, status_code, headers
|
|
955
|
+
end
|
|
956
|
+
|
|
957
|
+
# Translation components API.
|
|
958
|
+
# @param component__project__slug [String]
|
|
959
|
+
# @param component__slug [String]
|
|
960
|
+
# @param language__code [String]
|
|
961
|
+
# @param [Hash] opts the optional parameters
|
|
962
|
+
# @return [Translation]
|
|
963
|
+
def translations_statistics_retrieve(component__project__slug, component__slug, language__code, opts = {})
|
|
964
|
+
data, _status_code, _headers = translations_statistics_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts)
|
|
965
|
+
data
|
|
966
|
+
end
|
|
967
|
+
|
|
968
|
+
# Translation components API.
|
|
969
|
+
# @param component__project__slug [String]
|
|
970
|
+
# @param component__slug [String]
|
|
971
|
+
# @param language__code [String]
|
|
972
|
+
# @param [Hash] opts the optional parameters
|
|
973
|
+
# @return [Array<(Translation, Integer, Hash)>] Translation data, response status code and response headers
|
|
974
|
+
def translations_statistics_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts = {})
|
|
975
|
+
if @api_client.config.debugging
|
|
976
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_statistics_retrieve ...'
|
|
977
|
+
end
|
|
978
|
+
# verify the required parameter 'component__project__slug' is set
|
|
979
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
980
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_statistics_retrieve"
|
|
981
|
+
end
|
|
982
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
983
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
984
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_statistics_retrieve, must conform to the pattern #{pattern}."
|
|
985
|
+
end
|
|
986
|
+
|
|
987
|
+
# verify the required parameter 'component__slug' is set
|
|
988
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
989
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_statistics_retrieve"
|
|
990
|
+
end
|
|
991
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
992
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
993
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_statistics_retrieve, must conform to the pattern #{pattern}."
|
|
994
|
+
end
|
|
995
|
+
|
|
996
|
+
# verify the required parameter 'language__code' is set
|
|
997
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
998
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_statistics_retrieve"
|
|
999
|
+
end
|
|
1000
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
1001
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
1002
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_statistics_retrieve, must conform to the pattern #{pattern}."
|
|
1003
|
+
end
|
|
1004
|
+
|
|
1005
|
+
# resource path
|
|
1006
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/statistics/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
1007
|
+
|
|
1008
|
+
# query parameters
|
|
1009
|
+
query_params = opts[:query_params] || {}
|
|
1010
|
+
|
|
1011
|
+
# header parameters
|
|
1012
|
+
header_params = opts[:header_params] || {}
|
|
1013
|
+
# HTTP header 'Accept' (if needed)
|
|
1014
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1015
|
+
|
|
1016
|
+
# form parameters
|
|
1017
|
+
form_params = opts[:form_params] || {}
|
|
1018
|
+
|
|
1019
|
+
# http body (model)
|
|
1020
|
+
post_body = opts[:debug_body]
|
|
1021
|
+
|
|
1022
|
+
# return_type
|
|
1023
|
+
return_type = opts[:debug_return_type] || 'Translation'
|
|
1024
|
+
|
|
1025
|
+
# auth_names
|
|
1026
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
1027
|
+
|
|
1028
|
+
new_options = opts.merge(
|
|
1029
|
+
:operation => :"TranslationsApi.translations_statistics_retrieve",
|
|
1030
|
+
:header_params => header_params,
|
|
1031
|
+
:query_params => query_params,
|
|
1032
|
+
:form_params => form_params,
|
|
1033
|
+
:body => post_body,
|
|
1034
|
+
:auth_names => auth_names,
|
|
1035
|
+
:return_type => return_type
|
|
1036
|
+
)
|
|
1037
|
+
|
|
1038
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1039
|
+
if @api_client.config.debugging
|
|
1040
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_statistics_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1041
|
+
end
|
|
1042
|
+
return data, status_code, headers
|
|
1043
|
+
end
|
|
1044
|
+
|
|
1045
|
+
# Translation components API.
|
|
1046
|
+
# @param component__project__slug [String]
|
|
1047
|
+
# @param component__slug [String]
|
|
1048
|
+
# @param language__code [String]
|
|
1049
|
+
# @param translation [Translation]
|
|
1050
|
+
# @param [Hash] opts the optional parameters
|
|
1051
|
+
# @return [Translation]
|
|
1052
|
+
def translations_units_create(component__project__slug, component__slug, language__code, translation, opts = {})
|
|
1053
|
+
data, _status_code, _headers = translations_units_create_with_http_info(component__project__slug, component__slug, language__code, translation, opts)
|
|
1054
|
+
data
|
|
1055
|
+
end
|
|
1056
|
+
|
|
1057
|
+
# Translation components API.
|
|
1058
|
+
# @param component__project__slug [String]
|
|
1059
|
+
# @param component__slug [String]
|
|
1060
|
+
# @param language__code [String]
|
|
1061
|
+
# @param translation [Translation]
|
|
1062
|
+
# @param [Hash] opts the optional parameters
|
|
1063
|
+
# @return [Array<(Translation, Integer, Hash)>] Translation data, response status code and response headers
|
|
1064
|
+
def translations_units_create_with_http_info(component__project__slug, component__slug, language__code, translation, opts = {})
|
|
1065
|
+
if @api_client.config.debugging
|
|
1066
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_units_create ...'
|
|
1067
|
+
end
|
|
1068
|
+
# verify the required parameter 'component__project__slug' is set
|
|
1069
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
1070
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_units_create"
|
|
1071
|
+
end
|
|
1072
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
1073
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
1074
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_units_create, must conform to the pattern #{pattern}."
|
|
1075
|
+
end
|
|
1076
|
+
|
|
1077
|
+
# verify the required parameter 'component__slug' is set
|
|
1078
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
1079
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_units_create"
|
|
1080
|
+
end
|
|
1081
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
1082
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
1083
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_units_create, must conform to the pattern #{pattern}."
|
|
1084
|
+
end
|
|
1085
|
+
|
|
1086
|
+
# verify the required parameter 'language__code' is set
|
|
1087
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
1088
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_units_create"
|
|
1089
|
+
end
|
|
1090
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
1091
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
1092
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_units_create, must conform to the pattern #{pattern}."
|
|
1093
|
+
end
|
|
1094
|
+
|
|
1095
|
+
# verify the required parameter 'translation' is set
|
|
1096
|
+
if @api_client.config.client_side_validation && translation.nil?
|
|
1097
|
+
fail ArgumentError, "Missing the required parameter 'translation' when calling TranslationsApi.translations_units_create"
|
|
1098
|
+
end
|
|
1099
|
+
# resource path
|
|
1100
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/units/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
1101
|
+
|
|
1102
|
+
# query parameters
|
|
1103
|
+
query_params = opts[:query_params] || {}
|
|
1104
|
+
|
|
1105
|
+
# header parameters
|
|
1106
|
+
header_params = opts[:header_params] || {}
|
|
1107
|
+
# HTTP header 'Accept' (if needed)
|
|
1108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1109
|
+
# HTTP header 'Content-Type'
|
|
1110
|
+
content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
|
1111
|
+
if !content_type.nil?
|
|
1112
|
+
header_params['Content-Type'] = content_type
|
|
1113
|
+
end
|
|
1114
|
+
|
|
1115
|
+
# form parameters
|
|
1116
|
+
form_params = opts[:form_params] || {}
|
|
1117
|
+
|
|
1118
|
+
# http body (model)
|
|
1119
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(translation)
|
|
1120
|
+
|
|
1121
|
+
# return_type
|
|
1122
|
+
return_type = opts[:debug_return_type] || 'Translation'
|
|
1123
|
+
|
|
1124
|
+
# auth_names
|
|
1125
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
1126
|
+
|
|
1127
|
+
new_options = opts.merge(
|
|
1128
|
+
:operation => :"TranslationsApi.translations_units_create",
|
|
1129
|
+
:header_params => header_params,
|
|
1130
|
+
:query_params => query_params,
|
|
1131
|
+
:form_params => form_params,
|
|
1132
|
+
:body => post_body,
|
|
1133
|
+
:auth_names => auth_names,
|
|
1134
|
+
:return_type => return_type
|
|
1135
|
+
)
|
|
1136
|
+
|
|
1137
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1138
|
+
if @api_client.config.debugging
|
|
1139
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_units_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1140
|
+
end
|
|
1141
|
+
return data, status_code, headers
|
|
1142
|
+
end
|
|
1143
|
+
|
|
1144
|
+
# Translation components API.
|
|
1145
|
+
# @param component__project__slug [String]
|
|
1146
|
+
# @param component__slug [String]
|
|
1147
|
+
# @param language__code [String]
|
|
1148
|
+
# @param [Hash] opts the optional parameters
|
|
1149
|
+
# @return [Translation]
|
|
1150
|
+
def translations_units_retrieve(component__project__slug, component__slug, language__code, opts = {})
|
|
1151
|
+
data, _status_code, _headers = translations_units_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts)
|
|
1152
|
+
data
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1155
|
+
# Translation components API.
|
|
1156
|
+
# @param component__project__slug [String]
|
|
1157
|
+
# @param component__slug [String]
|
|
1158
|
+
# @param language__code [String]
|
|
1159
|
+
# @param [Hash] opts the optional parameters
|
|
1160
|
+
# @return [Array<(Translation, Integer, Hash)>] Translation data, response status code and response headers
|
|
1161
|
+
def translations_units_retrieve_with_http_info(component__project__slug, component__slug, language__code, opts = {})
|
|
1162
|
+
if @api_client.config.debugging
|
|
1163
|
+
@api_client.config.logger.debug 'Calling API: TranslationsApi.translations_units_retrieve ...'
|
|
1164
|
+
end
|
|
1165
|
+
# verify the required parameter 'component__project__slug' is set
|
|
1166
|
+
if @api_client.config.client_side_validation && component__project__slug.nil?
|
|
1167
|
+
fail ArgumentError, "Missing the required parameter 'component__project__slug' when calling TranslationsApi.translations_units_retrieve"
|
|
1168
|
+
end
|
|
1169
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
1170
|
+
if @api_client.config.client_side_validation && component__project__slug !~ pattern
|
|
1171
|
+
fail ArgumentError, "invalid value for 'component__project__slug' when calling TranslationsApi.translations_units_retrieve, must conform to the pattern #{pattern}."
|
|
1172
|
+
end
|
|
1173
|
+
|
|
1174
|
+
# verify the required parameter 'component__slug' is set
|
|
1175
|
+
if @api_client.config.client_side_validation && component__slug.nil?
|
|
1176
|
+
fail ArgumentError, "Missing the required parameter 'component__slug' when calling TranslationsApi.translations_units_retrieve"
|
|
1177
|
+
end
|
|
1178
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
1179
|
+
if @api_client.config.client_side_validation && component__slug !~ pattern
|
|
1180
|
+
fail ArgumentError, "invalid value for 'component__slug' when calling TranslationsApi.translations_units_retrieve, must conform to the pattern #{pattern}."
|
|
1181
|
+
end
|
|
1182
|
+
|
|
1183
|
+
# verify the required parameter 'language__code' is set
|
|
1184
|
+
if @api_client.config.client_side_validation && language__code.nil?
|
|
1185
|
+
fail ArgumentError, "Missing the required parameter 'language__code' when calling TranslationsApi.translations_units_retrieve"
|
|
1186
|
+
end
|
|
1187
|
+
pattern = Regexp.new(/^[^\/]+$/)
|
|
1188
|
+
if @api_client.config.client_side_validation && language__code !~ pattern
|
|
1189
|
+
fail ArgumentError, "invalid value for 'language__code' when calling TranslationsApi.translations_units_retrieve, must conform to the pattern #{pattern}."
|
|
1190
|
+
end
|
|
1191
|
+
|
|
1192
|
+
# resource path
|
|
1193
|
+
local_var_path = '/translations/{component__project__slug}/{component__slug}/{language__code}/units/'.sub('{' + 'component__project__slug' + '}', CGI.escape(component__project__slug.to_s)).sub('{' + 'component__slug' + '}', CGI.escape(component__slug.to_s)).sub('{' + 'language__code' + '}', CGI.escape(language__code.to_s))
|
|
1194
|
+
|
|
1195
|
+
# query parameters
|
|
1196
|
+
query_params = opts[:query_params] || {}
|
|
1197
|
+
|
|
1198
|
+
# header parameters
|
|
1199
|
+
header_params = opts[:header_params] || {}
|
|
1200
|
+
# HTTP header 'Accept' (if needed)
|
|
1201
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1202
|
+
|
|
1203
|
+
# form parameters
|
|
1204
|
+
form_params = opts[:form_params] || {}
|
|
1205
|
+
|
|
1206
|
+
# http body (model)
|
|
1207
|
+
post_body = opts[:debug_body]
|
|
1208
|
+
|
|
1209
|
+
# return_type
|
|
1210
|
+
return_type = opts[:debug_return_type] || 'Translation'
|
|
1211
|
+
|
|
1212
|
+
# auth_names
|
|
1213
|
+
auth_names = opts[:debug_auth_names] || ['tokenAuth']
|
|
1214
|
+
|
|
1215
|
+
new_options = opts.merge(
|
|
1216
|
+
:operation => :"TranslationsApi.translations_units_retrieve",
|
|
1217
|
+
:header_params => header_params,
|
|
1218
|
+
:query_params => query_params,
|
|
1219
|
+
:form_params => form_params,
|
|
1220
|
+
:body => post_body,
|
|
1221
|
+
:auth_names => auth_names,
|
|
1222
|
+
:return_type => return_type
|
|
1223
|
+
)
|
|
1224
|
+
|
|
1225
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1226
|
+
if @api_client.config.debugging
|
|
1227
|
+
@api_client.config.logger.debug "API called: TranslationsApi#translations_units_retrieve\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1228
|
+
end
|
|
1229
|
+
return data, status_code, headers
|
|
1230
|
+
end
|
|
1231
|
+
end
|
|
1232
|
+
end
|