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.
Files changed (311) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +5 -0
  3. data/COPYING +674 -0
  4. data/Gemfile +8 -0
  5. data/README.md +334 -0
  6. data/Rakefile +49 -0
  7. data/bin/console +11 -0
  8. data/bin/setup +8 -0
  9. data/bin/smoketest +14 -0
  10. data/bin/smoketest~ +0 -0
  11. data/docs/ActionEnum.md +15 -0
  12. data/docs/Addon.md +28 -0
  13. data/docs/AddonsApi.md +366 -0
  14. data/docs/AutoComponentList.md +20 -0
  15. data/docs/BasicUser.md +22 -0
  16. data/docs/BlankEnum.md +15 -0
  17. data/docs/CategoriesApi.md +520 -0
  18. data/docs/Category.md +30 -0
  19. data/docs/Change.md +42 -0
  20. data/docs/ChangesApi.md +163 -0
  21. data/docs/ColorEnum.md +15 -0
  22. data/docs/Component.md +146 -0
  23. data/docs/ComponentLanguageCodeStyle.md +49 -0
  24. data/docs/ComponentList.md +30 -0
  25. data/docs/ComponentListsApi.md +667 -0
  26. data/docs/ComponentsApi.md +1653 -0
  27. data/docs/ConflictsEnum.md +15 -0
  28. data/docs/DirectionEnum.md +15 -0
  29. data/docs/FileFormatEnum.md +15 -0
  30. data/docs/FrequencyEnum.md +15 -0
  31. data/docs/FuzzyEnum.md +15 -0
  32. data/docs/Group.md +40 -0
  33. data/docs/GroupsApi.md +1257 -0
  34. data/docs/Language.md +36 -0
  35. data/docs/LanguageCodeStyleEnum.md +15 -0
  36. data/docs/LanguagePlural.md +26 -0
  37. data/docs/LanguageSelectionEnum.md +15 -0
  38. data/docs/LanguagesApi.md +520 -0
  39. data/docs/LicenseEnum.md +15 -0
  40. data/docs/LockRequest.md +18 -0
  41. data/docs/Memory.md +34 -0
  42. data/docs/MemoryApi.md +448 -0
  43. data/docs/MergeStyleEnum.md +15 -0
  44. data/docs/MethodEnum.md +15 -0
  45. data/docs/Metrics.md +42 -0
  46. data/docs/MetricsApi.md +81 -0
  47. data/docs/NewLangEnum.md +15 -0
  48. data/docs/Notification.md +28 -0
  49. data/docs/NotificationEnum.md +15 -0
  50. data/docs/OperationEnum.md +15 -0
  51. data/docs/PaginatedAddonList.md +24 -0
  52. data/docs/PaginatedBasicUserList.md +24 -0
  53. data/docs/PaginatedCategoryList.md +24 -0
  54. data/docs/PaginatedChangeList.md +24 -0
  55. data/docs/PaginatedComponentList.md +24 -0
  56. data/docs/PaginatedComponentListList.md +24 -0
  57. data/docs/PaginatedGroupList.md +24 -0
  58. data/docs/PaginatedLanguageList.md +24 -0
  59. data/docs/PaginatedMemoryList.md +24 -0
  60. data/docs/PaginatedNotificationList.md +24 -0
  61. data/docs/PaginatedProjectList.md +24 -0
  62. data/docs/PaginatedRoleList.md +24 -0
  63. data/docs/PaginatedScreenshotList.md +24 -0
  64. data/docs/PaginatedTranslationList.md +24 -0
  65. data/docs/PaginatedUnitList.md +24 -0
  66. data/docs/PatchedAddon.md +28 -0
  67. data/docs/PatchedBasicUser.md +22 -0
  68. data/docs/PatchedCategory.md +30 -0
  69. data/docs/PatchedComponent.md +146 -0
  70. data/docs/PatchedComponentList.md +30 -0
  71. data/docs/PatchedGroup.md +40 -0
  72. data/docs/PatchedLanguage.md +36 -0
  73. data/docs/PatchedMemory.md +34 -0
  74. data/docs/PatchedNotification.md +28 -0
  75. data/docs/PatchedProject.md +58 -0
  76. data/docs/PatchedRole.md +24 -0
  77. data/docs/PatchedScreenshot.md +30 -0
  78. data/docs/PatchedUnitWrite.md +26 -0
  79. data/docs/PriorityEnum.md +15 -0
  80. data/docs/Project.md +58 -0
  81. data/docs/ProjectSelectionEnum.md +15 -0
  82. data/docs/ProjectsApi.md +1392 -0
  83. data/docs/RepoRequest.md +18 -0
  84. data/docs/Role.md +24 -0
  85. data/docs/RolesApi.md +448 -0
  86. data/docs/ScopeEnum.md +15 -0
  87. data/docs/Screenshot.md +30 -0
  88. data/docs/ScreenshotFile.md +18 -0
  89. data/docs/ScreenshotsApi.md +815 -0
  90. data/docs/SearchApi.md +75 -0
  91. data/docs/SourceEnum.md +15 -0
  92. data/docs/StateEnum.md +15 -0
  93. data/docs/TasksApi.md +145 -0
  94. data/docs/TextDirection.md +49 -0
  95. data/docs/Translation.md +80 -0
  96. data/docs/TranslationsApi.md +1028 -0
  97. data/docs/Unit.md +76 -0
  98. data/docs/UnitFlatLabels.md +24 -0
  99. data/docs/UnitLabels.md +24 -0
  100. data/docs/UnitWrite.md +26 -0
  101. data/docs/UnitsApi.md +376 -0
  102. data/docs/UploadRequest.md +28 -0
  103. data/docs/UploadRequestConflicts.md +49 -0
  104. data/docs/UploadRequestFuzzy.md +49 -0
  105. data/docs/UsersApi.md +1130 -0
  106. data/docs/VcsEnum.md +15 -0
  107. data/git_push.sh +57 -0
  108. data/lib/weblate/api/addons_api.rb +353 -0
  109. data/lib/weblate/api/categories_api.rb +495 -0
  110. data/lib/weblate/api/changes_api.rb +165 -0
  111. data/lib/weblate/api/component_lists_api.rb +642 -0
  112. data/lib/weblate/api/components_api.rb +1775 -0
  113. data/lib/weblate/api/groups_api.rb +1261 -0
  114. data/lib/weblate/api/languages_api.rb +495 -0
  115. data/lib/weblate/api/memory_api.rb +429 -0
  116. data/lib/weblate/api/metrics_api.rb +84 -0
  117. data/lib/weblate/api/projects_api.rb +1331 -0
  118. data/lib/weblate/api/roles_api.rb +429 -0
  119. data/lib/weblate/api/screenshots_api.rb +803 -0
  120. data/lib/weblate/api/search_api.rb +75 -0
  121. data/lib/weblate/api/tasks_api.rb +146 -0
  122. data/lib/weblate/api/translations_api.rb +1232 -0
  123. data/lib/weblate/api/units_api.rb +363 -0
  124. data/lib/weblate/api/users_api.rb +1104 -0
  125. data/lib/weblate/api_client.rb +437 -0
  126. data/lib/weblate/api_error.rb +58 -0
  127. data/lib/weblate/configuration.rb +392 -0
  128. data/lib/weblate/models/action_enum.rb +108 -0
  129. data/lib/weblate/models/addon.rb +314 -0
  130. data/lib/weblate/models/auto_component_list.rb +263 -0
  131. data/lib/weblate/models/basic_user.rb +292 -0
  132. data/lib/weblate/models/blank_enum.rb +39 -0
  133. data/lib/weblate/models/category.rb +361 -0
  134. data/lib/weblate/models/change.rb +408 -0
  135. data/lib/weblate/models/color_enum.rb +54 -0
  136. data/lib/weblate/models/component.rb +1377 -0
  137. data/lib/weblate/models/component_language_code_style.rb +106 -0
  138. data/lib/weblate/models/component_list.rb +366 -0
  139. data/lib/weblate/models/conflicts_enum.rb +41 -0
  140. data/lib/weblate/models/direction_enum.rb +40 -0
  141. data/lib/weblate/models/file_format_enum.rb +101 -0
  142. data/lib/weblate/models/frequency_enum.rb +43 -0
  143. data/lib/weblate/models/fuzzy_enum.rb +40 -0
  144. data/lib/weblate/models/group.rb +421 -0
  145. data/lib/weblate/models/language.rb +417 -0
  146. data/lib/weblate/models/language_code_style_enum.rb +51 -0
  147. data/lib/weblate/models/language_plural.rb +314 -0
  148. data/lib/weblate/models/language_selection_enum.rb +40 -0
  149. data/lib/weblate/models/license_enum.rb +677 -0
  150. data/lib/weblate/models/lock_request.rb +221 -0
  151. data/lib/weblate/models/memory.rb +329 -0
  152. data/lib/weblate/models/merge_style_enum.rb +41 -0
  153. data/lib/weblate/models/method_enum.rb +45 -0
  154. data/lib/weblate/models/metrics.rb +415 -0
  155. data/lib/weblate/models/new_lang_enum.rb +42 -0
  156. data/lib/weblate/models/notification.rb +323 -0
  157. data/lib/weblate/models/notification_enum.rb +60 -0
  158. data/lib/weblate/models/operation_enum.rb +43 -0
  159. data/lib/weblate/models/paginated_addon_list.rb +259 -0
  160. data/lib/weblate/models/paginated_basic_user_list.rb +259 -0
  161. data/lib/weblate/models/paginated_category_list.rb +259 -0
  162. data/lib/weblate/models/paginated_change_list.rb +259 -0
  163. data/lib/weblate/models/paginated_component_list.rb +259 -0
  164. data/lib/weblate/models/paginated_component_list_list.rb +259 -0
  165. data/lib/weblate/models/paginated_group_list.rb +259 -0
  166. data/lib/weblate/models/paginated_language_list.rb +259 -0
  167. data/lib/weblate/models/paginated_memory_list.rb +259 -0
  168. data/lib/weblate/models/paginated_notification_list.rb +259 -0
  169. data/lib/weblate/models/paginated_project_list.rb +259 -0
  170. data/lib/weblate/models/paginated_role_list.rb +259 -0
  171. data/lib/weblate/models/paginated_screenshot_list.rb +259 -0
  172. data/lib/weblate/models/paginated_translation_list.rb +259 -0
  173. data/lib/weblate/models/paginated_unit_list.rb +259 -0
  174. data/lib/weblate/models/patched_addon.rb +279 -0
  175. data/lib/weblate/models/patched_basic_user.rb +271 -0
  176. data/lib/weblate/models/patched_category.rb +319 -0
  177. data/lib/weblate/models/patched_component.rb +1242 -0
  178. data/lib/weblate/models/patched_component_list.rb +324 -0
  179. data/lib/weblate/models/patched_group.rb +365 -0
  180. data/lib/weblate/models/patched_language.rb +375 -0
  181. data/lib/weblate/models/patched_memory.rb +287 -0
  182. data/lib/weblate/models/patched_notification.rb +281 -0
  183. data/lib/weblate/models/patched_project.rb +472 -0
  184. data/lib/weblate/models/patched_role.rb +262 -0
  185. data/lib/weblate/models/patched_screenshot.rb +309 -0
  186. data/lib/weblate/models/patched_unit_write.rb +279 -0
  187. data/lib/weblate/models/priority_enum.rb +43 -0
  188. data/lib/weblate/models/project.rb +563 -0
  189. data/lib/weblate/models/project_selection_enum.rb +43 -0
  190. data/lib/weblate/models/repo_request.rb +243 -0
  191. data/lib/weblate/models/role.rb +290 -0
  192. data/lib/weblate/models/scope_enum.rb +43 -0
  193. data/lib/weblate/models/screenshot.rb +351 -0
  194. data/lib/weblate/models/screenshot_file.rb +221 -0
  195. data/lib/weblate/models/source_enum.rb +45 -0
  196. data/lib/weblate/models/state_enum.rb +43 -0
  197. data/lib/weblate/models/text_direction.rb +105 -0
  198. data/lib/weblate/models/translation.rb +760 -0
  199. data/lib/weblate/models/unit.rb +757 -0
  200. data/lib/weblate/models/unit_flat_labels.rb +315 -0
  201. data/lib/weblate/models/unit_labels.rb +315 -0
  202. data/lib/weblate/models/unit_write.rb +293 -0
  203. data/lib/weblate/models/upload_request.rb +307 -0
  204. data/lib/weblate/models/upload_request_conflicts.rb +105 -0
  205. data/lib/weblate/models/upload_request_fuzzy.rb +105 -0
  206. data/lib/weblate/models/vcs_enum.rb +46 -0
  207. data/lib/weblate/version.rb +15 -0
  208. data/lib/weblate.rb +135 -0
  209. data/manifest.scm +6 -0
  210. data/schema.patched.yaml +10113 -0
  211. data/schema.yaml +10116 -0
  212. data/sig/weblate.rbs +4 -0
  213. data/spec/api/addons_api_spec.rb +88 -0
  214. data/spec/api/categories_api_spec.rb +115 -0
  215. data/spec/api/changes_api_spec.rb +62 -0
  216. data/spec/api/component_lists_api_spec.rb +139 -0
  217. data/spec/api/components_api_spec.rb +307 -0
  218. data/spec/api/groups_api_spec.rb +236 -0
  219. data/spec/api/languages_api_spec.rb +115 -0
  220. data/spec/api/memory_api_spec.rb +104 -0
  221. data/spec/api/metrics_api_spec.rb +46 -0
  222. data/spec/api/projects_api_spec.rb +251 -0
  223. data/spec/api/roles_api_spec.rb +104 -0
  224. data/spec/api/screenshots_api_spec.rb +163 -0
  225. data/spec/api/search_api_spec.rb +45 -0
  226. data/spec/api/tasks_api_spec.rb +55 -0
  227. data/spec/api/translations_api_spec.rb +218 -0
  228. data/spec/api/units_api_spec.rb +93 -0
  229. data/spec/api/users_api_spec.rb +218 -0
  230. data/spec/models/action_enum_spec.rb +30 -0
  231. data/spec/models/addon_spec.rb +66 -0
  232. data/spec/models/auto_component_list_spec.rb +42 -0
  233. data/spec/models/basic_user_spec.rb +48 -0
  234. data/spec/models/blank_enum_spec.rb +30 -0
  235. data/spec/models/category_spec.rb +72 -0
  236. data/spec/models/change_spec.rb +108 -0
  237. data/spec/models/color_enum_spec.rb +30 -0
  238. data/spec/models/component_language_code_style_spec.rb +32 -0
  239. data/spec/models/component_list_spec.rb +72 -0
  240. data/spec/models/component_spec.rb +420 -0
  241. data/spec/models/conflicts_enum_spec.rb +30 -0
  242. data/spec/models/direction_enum_spec.rb +30 -0
  243. data/spec/models/file_format_enum_spec.rb +30 -0
  244. data/spec/models/frequency_enum_spec.rb +30 -0
  245. data/spec/models/fuzzy_enum_spec.rb +30 -0
  246. data/spec/models/group_spec.rb +102 -0
  247. data/spec/models/language_code_style_enum_spec.rb +30 -0
  248. data/spec/models/language_plural_spec.rb +60 -0
  249. data/spec/models/language_selection_enum_spec.rb +30 -0
  250. data/spec/models/language_spec.rb +90 -0
  251. data/spec/models/license_enum_spec.rb +30 -0
  252. data/spec/models/lock_request_spec.rb +36 -0
  253. data/spec/models/memory_spec.rb +84 -0
  254. data/spec/models/merge_style_enum_spec.rb +30 -0
  255. data/spec/models/method_enum_spec.rb +30 -0
  256. data/spec/models/metrics_spec.rb +108 -0
  257. data/spec/models/new_lang_enum_spec.rb +30 -0
  258. data/spec/models/notification_enum_spec.rb +30 -0
  259. data/spec/models/notification_spec.rb +66 -0
  260. data/spec/models/operation_enum_spec.rb +30 -0
  261. data/spec/models/paginated_addon_list_spec.rb +54 -0
  262. data/spec/models/paginated_basic_user_list_spec.rb +54 -0
  263. data/spec/models/paginated_category_list_spec.rb +54 -0
  264. data/spec/models/paginated_change_list_spec.rb +54 -0
  265. data/spec/models/paginated_component_list_list_spec.rb +54 -0
  266. data/spec/models/paginated_component_list_spec.rb +54 -0
  267. data/spec/models/paginated_group_list_spec.rb +54 -0
  268. data/spec/models/paginated_language_list_spec.rb +54 -0
  269. data/spec/models/paginated_memory_list_spec.rb +54 -0
  270. data/spec/models/paginated_notification_list_spec.rb +54 -0
  271. data/spec/models/paginated_project_list_spec.rb +54 -0
  272. data/spec/models/paginated_role_list_spec.rb +54 -0
  273. data/spec/models/paginated_screenshot_list_spec.rb +54 -0
  274. data/spec/models/paginated_translation_list_spec.rb +54 -0
  275. data/spec/models/paginated_unit_list_spec.rb +54 -0
  276. data/spec/models/patched_addon_spec.rb +66 -0
  277. data/spec/models/patched_basic_user_spec.rb +48 -0
  278. data/spec/models/patched_category_spec.rb +72 -0
  279. data/spec/models/patched_component_list_spec.rb +72 -0
  280. data/spec/models/patched_component_spec.rb +420 -0
  281. data/spec/models/patched_group_spec.rb +102 -0
  282. data/spec/models/patched_language_spec.rb +90 -0
  283. data/spec/models/patched_memory_spec.rb +84 -0
  284. data/spec/models/patched_notification_spec.rb +66 -0
  285. data/spec/models/patched_project_spec.rb +156 -0
  286. data/spec/models/patched_role_spec.rb +54 -0
  287. data/spec/models/patched_screenshot_spec.rb +72 -0
  288. data/spec/models/patched_unit_write_spec.rb +60 -0
  289. data/spec/models/priority_enum_spec.rb +30 -0
  290. data/spec/models/project_selection_enum_spec.rb +30 -0
  291. data/spec/models/project_spec.rb +156 -0
  292. data/spec/models/repo_request_spec.rb +36 -0
  293. data/spec/models/role_spec.rb +54 -0
  294. data/spec/models/scope_enum_spec.rb +30 -0
  295. data/spec/models/screenshot_file_spec.rb +36 -0
  296. data/spec/models/screenshot_spec.rb +72 -0
  297. data/spec/models/source_enum_spec.rb +30 -0
  298. data/spec/models/state_enum_spec.rb +30 -0
  299. data/spec/models/text_direction_spec.rb +32 -0
  300. data/spec/models/translation_spec.rb +222 -0
  301. data/spec/models/unit_flat_labels_spec.rb +54 -0
  302. data/spec/models/unit_labels_spec.rb +54 -0
  303. data/spec/models/unit_spec.rb +210 -0
  304. data/spec/models/unit_write_spec.rb +60 -0
  305. data/spec/models/upload_request_conflicts_spec.rb +32 -0
  306. data/spec/models/upload_request_fuzzy_spec.rb +32 -0
  307. data/spec/models/upload_request_spec.rb +66 -0
  308. data/spec/models/vcs_enum_spec.rb +30 -0
  309. data/spec/spec_helper.rb +111 -0
  310. data/weblate.gemspec +47 -0
  311. metadata +526 -0
@@ -0,0 +1,1653 @@
1
+ # Weblate::ComponentsApi
2
+
3
+ All URIs are relative to *https://hosted.weblate.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**components_addons_create**](ComponentsApi.md#components_addons_create) | **POST** /components/{project__slug}/{slug}/addons/ | |
8
+ | [**components_changes_retrieve**](ComponentsApi.md#components_changes_retrieve) | **GET** /components/{project__slug}/{slug}/changes/ | |
9
+ | [**components_credits_retrieve**](ComponentsApi.md#components_credits_retrieve) | **GET** /components/{project__slug}/{slug}/credits/ | |
10
+ | [**components_destroy**](ComponentsApi.md#components_destroy) | **DELETE** /components/{project__slug}/{slug}/ | |
11
+ | [**components_file_retrieve**](ComponentsApi.md#components_file_retrieve) | **GET** /components/{project__slug}/{slug}/file/ | |
12
+ | [**components_links_create**](ComponentsApi.md#components_links_create) | **POST** /components/{project__slug}/{slug}/links/ | |
13
+ | [**components_links_destroy**](ComponentsApi.md#components_links_destroy) | **DELETE** /components/{project__slug}/{slug}/links/{project_slug}/ | |
14
+ | [**components_links_retrieve**](ComponentsApi.md#components_links_retrieve) | **GET** /components/{project__slug}/{slug}/links/ | |
15
+ | [**components_list**](ComponentsApi.md#components_list) | **GET** /components/ | |
16
+ | [**components_lock_create**](ComponentsApi.md#components_lock_create) | **POST** /components/{project__slug}/{slug}/lock/ | |
17
+ | [**components_lock_retrieve**](ComponentsApi.md#components_lock_retrieve) | **GET** /components/{project__slug}/{slug}/lock/ | |
18
+ | [**components_monolingual_base_retrieve**](ComponentsApi.md#components_monolingual_base_retrieve) | **GET** /components/{project__slug}/{slug}/monolingual_base/ | |
19
+ | [**components_new_template_retrieve**](ComponentsApi.md#components_new_template_retrieve) | **GET** /components/{project__slug}/{slug}/new_template/ | |
20
+ | [**components_partial_update**](ComponentsApi.md#components_partial_update) | **PATCH** /components/{project__slug}/{slug}/ | |
21
+ | [**components_repository_create**](ComponentsApi.md#components_repository_create) | **POST** /components/{project__slug}/{slug}/repository/ | |
22
+ | [**components_repository_retrieve**](ComponentsApi.md#components_repository_retrieve) | **GET** /components/{project__slug}/{slug}/repository/ | |
23
+ | [**components_retrieve**](ComponentsApi.md#components_retrieve) | **GET** /components/{project__slug}/{slug}/ | |
24
+ | [**components_screenshots_retrieve**](ComponentsApi.md#components_screenshots_retrieve) | **GET** /components/{project__slug}/{slug}/screenshots/ | |
25
+ | [**components_statistics_retrieve**](ComponentsApi.md#components_statistics_retrieve) | **GET** /components/{project__slug}/{slug}/statistics/ | |
26
+ | [**components_translations_create**](ComponentsApi.md#components_translations_create) | **POST** /components/{project__slug}/{slug}/translations/ | |
27
+ | [**components_translations_retrieve**](ComponentsApi.md#components_translations_retrieve) | **GET** /components/{project__slug}/{slug}/translations/ | |
28
+ | [**components_update**](ComponentsApi.md#components_update) | **PUT** /components/{project__slug}/{slug}/ | |
29
+
30
+
31
+ ## components_addons_create
32
+
33
+ > <Component> components_addons_create(project__slug, slug, component)
34
+
35
+
36
+
37
+ Translation components API.
38
+
39
+ ### Examples
40
+
41
+ ```ruby
42
+ require 'time'
43
+ require 'weblate'
44
+ # setup authorization
45
+ Weblate.configure do |config|
46
+ # Configure API key authorization: tokenAuth
47
+ config.api_key['Authorization'] = 'YOUR API KEY'
48
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
49
+ # config.api_key_prefix['Authorization'] = 'Bearer'
50
+ end
51
+
52
+ api_instance = Weblate::ComponentsApi.new
53
+ project__slug = 'project__slug_example' # String |
54
+ slug = 'slug_example' # String |
55
+ component = Weblate::Component.new({name: 'name_example', slug: 'slug_example', id: 37, project: Weblate::Project.new({name: 'name_example', slug: 'slug_example', id: 37, web_url: 'web_url_example', url: 'url_example', components_list_url: 'components_list_url_example', repository_url: 'repository_url_example', statistics_url: 'statistics_url_example', categories_url: 'categories_url_example', changes_list_url: 'changes_list_url_example', languages_url: 'languages_url_example', labels_url: 'labels_url_example', credits_url: 'credits_url_example'}), repo: 'repo_example', filemask: 'filemask_example', file_format: Weblate::FileFormatEnum::APPSTORE, license_url: 'license_url_example', web_url: 'web_url_example', url: 'url_example', repository_url: 'repository_url_example', translations_url: 'translations_url_example', statistics_url: 'statistics_url_example', lock_url: 'lock_url_example', links_url: 'links_url_example', changes_list_url: 'changes_list_url_example', task_url: 'task_url_example', credits_url: 'credits_url_example', addons: ['addons_example'], linked_component: 'linked_component_example'}) # Component |
56
+
57
+ begin
58
+
59
+ result = api_instance.components_addons_create(project__slug, slug, component)
60
+ p result
61
+ rescue Weblate::ApiError => e
62
+ puts "Error when calling ComponentsApi->components_addons_create: #{e}"
63
+ end
64
+ ```
65
+
66
+ #### Using the components_addons_create_with_http_info variant
67
+
68
+ This returns an Array which contains the response data, status code and headers.
69
+
70
+ > <Array(<Component>, Integer, Hash)> components_addons_create_with_http_info(project__slug, slug, component)
71
+
72
+ ```ruby
73
+ begin
74
+
75
+ data, status_code, headers = api_instance.components_addons_create_with_http_info(project__slug, slug, component)
76
+ p status_code # => 2xx
77
+ p headers # => { ... }
78
+ p data # => <Component>
79
+ rescue Weblate::ApiError => e
80
+ puts "Error when calling ComponentsApi->components_addons_create_with_http_info: #{e}"
81
+ end
82
+ ```
83
+
84
+ ### Parameters
85
+
86
+ | Name | Type | Description | Notes |
87
+ | ---- | ---- | ----------- | ----- |
88
+ | **project__slug** | **String** | | |
89
+ | **slug** | **String** | | |
90
+ | **component** | [**Component**](Component.md) | | |
91
+
92
+ ### Return type
93
+
94
+ [**Component**](Component.md)
95
+
96
+ ### Authorization
97
+
98
+ [tokenAuth](../README.md#tokenAuth)
99
+
100
+ ### HTTP request headers
101
+
102
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
103
+ - **Accept**: application/json
104
+
105
+
106
+ ## components_changes_retrieve
107
+
108
+ > <Component> components_changes_retrieve(project__slug, slug)
109
+
110
+
111
+
112
+ Translation components API.
113
+
114
+ ### Examples
115
+
116
+ ```ruby
117
+ require 'time'
118
+ require 'weblate'
119
+ # setup authorization
120
+ Weblate.configure do |config|
121
+ # Configure API key authorization: tokenAuth
122
+ config.api_key['Authorization'] = 'YOUR API KEY'
123
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
124
+ # config.api_key_prefix['Authorization'] = 'Bearer'
125
+ end
126
+
127
+ api_instance = Weblate::ComponentsApi.new
128
+ project__slug = 'project__slug_example' # String |
129
+ slug = 'slug_example' # String |
130
+
131
+ begin
132
+
133
+ result = api_instance.components_changes_retrieve(project__slug, slug)
134
+ p result
135
+ rescue Weblate::ApiError => e
136
+ puts "Error when calling ComponentsApi->components_changes_retrieve: #{e}"
137
+ end
138
+ ```
139
+
140
+ #### Using the components_changes_retrieve_with_http_info variant
141
+
142
+ This returns an Array which contains the response data, status code and headers.
143
+
144
+ > <Array(<Component>, Integer, Hash)> components_changes_retrieve_with_http_info(project__slug, slug)
145
+
146
+ ```ruby
147
+ begin
148
+
149
+ data, status_code, headers = api_instance.components_changes_retrieve_with_http_info(project__slug, slug)
150
+ p status_code # => 2xx
151
+ p headers # => { ... }
152
+ p data # => <Component>
153
+ rescue Weblate::ApiError => e
154
+ puts "Error when calling ComponentsApi->components_changes_retrieve_with_http_info: #{e}"
155
+ end
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+ | Name | Type | Description | Notes |
161
+ | ---- | ---- | ----------- | ----- |
162
+ | **project__slug** | **String** | | |
163
+ | **slug** | **String** | | |
164
+
165
+ ### Return type
166
+
167
+ [**Component**](Component.md)
168
+
169
+ ### Authorization
170
+
171
+ [tokenAuth](../README.md#tokenAuth)
172
+
173
+ ### HTTP request headers
174
+
175
+ - **Content-Type**: Not defined
176
+ - **Accept**: application/json
177
+
178
+
179
+ ## components_credits_retrieve
180
+
181
+ > <Component> components_credits_retrieve(project__slug, slug)
182
+
183
+
184
+
185
+ Translation components API.
186
+
187
+ ### Examples
188
+
189
+ ```ruby
190
+ require 'time'
191
+ require 'weblate'
192
+ # setup authorization
193
+ Weblate.configure do |config|
194
+ # Configure API key authorization: tokenAuth
195
+ config.api_key['Authorization'] = 'YOUR API KEY'
196
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
197
+ # config.api_key_prefix['Authorization'] = 'Bearer'
198
+ end
199
+
200
+ api_instance = Weblate::ComponentsApi.new
201
+ project__slug = 'project__slug_example' # String |
202
+ slug = 'slug_example' # String |
203
+
204
+ begin
205
+
206
+ result = api_instance.components_credits_retrieve(project__slug, slug)
207
+ p result
208
+ rescue Weblate::ApiError => e
209
+ puts "Error when calling ComponentsApi->components_credits_retrieve: #{e}"
210
+ end
211
+ ```
212
+
213
+ #### Using the components_credits_retrieve_with_http_info variant
214
+
215
+ This returns an Array which contains the response data, status code and headers.
216
+
217
+ > <Array(<Component>, Integer, Hash)> components_credits_retrieve_with_http_info(project__slug, slug)
218
+
219
+ ```ruby
220
+ begin
221
+
222
+ data, status_code, headers = api_instance.components_credits_retrieve_with_http_info(project__slug, slug)
223
+ p status_code # => 2xx
224
+ p headers # => { ... }
225
+ p data # => <Component>
226
+ rescue Weblate::ApiError => e
227
+ puts "Error when calling ComponentsApi->components_credits_retrieve_with_http_info: #{e}"
228
+ end
229
+ ```
230
+
231
+ ### Parameters
232
+
233
+ | Name | Type | Description | Notes |
234
+ | ---- | ---- | ----------- | ----- |
235
+ | **project__slug** | **String** | | |
236
+ | **slug** | **String** | | |
237
+
238
+ ### Return type
239
+
240
+ [**Component**](Component.md)
241
+
242
+ ### Authorization
243
+
244
+ [tokenAuth](../README.md#tokenAuth)
245
+
246
+ ### HTTP request headers
247
+
248
+ - **Content-Type**: Not defined
249
+ - **Accept**: application/json
250
+
251
+
252
+ ## components_destroy
253
+
254
+ > components_destroy(project__slug, slug)
255
+
256
+
257
+
258
+ Translation components API.
259
+
260
+ ### Examples
261
+
262
+ ```ruby
263
+ require 'time'
264
+ require 'weblate'
265
+ # setup authorization
266
+ Weblate.configure do |config|
267
+ # Configure API key authorization: tokenAuth
268
+ config.api_key['Authorization'] = 'YOUR API KEY'
269
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
270
+ # config.api_key_prefix['Authorization'] = 'Bearer'
271
+ end
272
+
273
+ api_instance = Weblate::ComponentsApi.new
274
+ project__slug = 'project__slug_example' # String |
275
+ slug = 'slug_example' # String |
276
+
277
+ begin
278
+
279
+ api_instance.components_destroy(project__slug, slug)
280
+ rescue Weblate::ApiError => e
281
+ puts "Error when calling ComponentsApi->components_destroy: #{e}"
282
+ end
283
+ ```
284
+
285
+ #### Using the components_destroy_with_http_info variant
286
+
287
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
288
+
289
+ > <Array(nil, Integer, Hash)> components_destroy_with_http_info(project__slug, slug)
290
+
291
+ ```ruby
292
+ begin
293
+
294
+ data, status_code, headers = api_instance.components_destroy_with_http_info(project__slug, slug)
295
+ p status_code # => 2xx
296
+ p headers # => { ... }
297
+ p data # => nil
298
+ rescue Weblate::ApiError => e
299
+ puts "Error when calling ComponentsApi->components_destroy_with_http_info: #{e}"
300
+ end
301
+ ```
302
+
303
+ ### Parameters
304
+
305
+ | Name | Type | Description | Notes |
306
+ | ---- | ---- | ----------- | ----- |
307
+ | **project__slug** | **String** | | |
308
+ | **slug** | **String** | | |
309
+
310
+ ### Return type
311
+
312
+ nil (empty response body)
313
+
314
+ ### Authorization
315
+
316
+ [tokenAuth](../README.md#tokenAuth)
317
+
318
+ ### HTTP request headers
319
+
320
+ - **Content-Type**: Not defined
321
+ - **Accept**: Not defined
322
+
323
+
324
+ ## components_file_retrieve
325
+
326
+ > <Component> components_file_retrieve(project__slug, slug)
327
+
328
+
329
+
330
+ Translation components API.
331
+
332
+ ### Examples
333
+
334
+ ```ruby
335
+ require 'time'
336
+ require 'weblate'
337
+ # setup authorization
338
+ Weblate.configure do |config|
339
+ # Configure API key authorization: tokenAuth
340
+ config.api_key['Authorization'] = 'YOUR API KEY'
341
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
342
+ # config.api_key_prefix['Authorization'] = 'Bearer'
343
+ end
344
+
345
+ api_instance = Weblate::ComponentsApi.new
346
+ project__slug = 'project__slug_example' # String |
347
+ slug = 'slug_example' # String |
348
+
349
+ begin
350
+
351
+ result = api_instance.components_file_retrieve(project__slug, slug)
352
+ p result
353
+ rescue Weblate::ApiError => e
354
+ puts "Error when calling ComponentsApi->components_file_retrieve: #{e}"
355
+ end
356
+ ```
357
+
358
+ #### Using the components_file_retrieve_with_http_info variant
359
+
360
+ This returns an Array which contains the response data, status code and headers.
361
+
362
+ > <Array(<Component>, Integer, Hash)> components_file_retrieve_with_http_info(project__slug, slug)
363
+
364
+ ```ruby
365
+ begin
366
+
367
+ data, status_code, headers = api_instance.components_file_retrieve_with_http_info(project__slug, slug)
368
+ p status_code # => 2xx
369
+ p headers # => { ... }
370
+ p data # => <Component>
371
+ rescue Weblate::ApiError => e
372
+ puts "Error when calling ComponentsApi->components_file_retrieve_with_http_info: #{e}"
373
+ end
374
+ ```
375
+
376
+ ### Parameters
377
+
378
+ | Name | Type | Description | Notes |
379
+ | ---- | ---- | ----------- | ----- |
380
+ | **project__slug** | **String** | | |
381
+ | **slug** | **String** | | |
382
+
383
+ ### Return type
384
+
385
+ [**Component**](Component.md)
386
+
387
+ ### Authorization
388
+
389
+ [tokenAuth](../README.md#tokenAuth)
390
+
391
+ ### HTTP request headers
392
+
393
+ - **Content-Type**: Not defined
394
+ - **Accept**: application/json
395
+
396
+
397
+ ## components_links_create
398
+
399
+ > <Component> components_links_create(project__slug, slug, component)
400
+
401
+
402
+
403
+ Translation components API.
404
+
405
+ ### Examples
406
+
407
+ ```ruby
408
+ require 'time'
409
+ require 'weblate'
410
+ # setup authorization
411
+ Weblate.configure do |config|
412
+ # Configure API key authorization: tokenAuth
413
+ config.api_key['Authorization'] = 'YOUR API KEY'
414
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
415
+ # config.api_key_prefix['Authorization'] = 'Bearer'
416
+ end
417
+
418
+ api_instance = Weblate::ComponentsApi.new
419
+ project__slug = 'project__slug_example' # String |
420
+ slug = 'slug_example' # String |
421
+ component = Weblate::Component.new({name: 'name_example', slug: 'slug_example', id: 37, project: Weblate::Project.new({name: 'name_example', slug: 'slug_example', id: 37, web_url: 'web_url_example', url: 'url_example', components_list_url: 'components_list_url_example', repository_url: 'repository_url_example', statistics_url: 'statistics_url_example', categories_url: 'categories_url_example', changes_list_url: 'changes_list_url_example', languages_url: 'languages_url_example', labels_url: 'labels_url_example', credits_url: 'credits_url_example'}), repo: 'repo_example', filemask: 'filemask_example', file_format: Weblate::FileFormatEnum::APPSTORE, license_url: 'license_url_example', web_url: 'web_url_example', url: 'url_example', repository_url: 'repository_url_example', translations_url: 'translations_url_example', statistics_url: 'statistics_url_example', lock_url: 'lock_url_example', links_url: 'links_url_example', changes_list_url: 'changes_list_url_example', task_url: 'task_url_example', credits_url: 'credits_url_example', addons: ['addons_example'], linked_component: 'linked_component_example'}) # Component |
422
+
423
+ begin
424
+
425
+ result = api_instance.components_links_create(project__slug, slug, component)
426
+ p result
427
+ rescue Weblate::ApiError => e
428
+ puts "Error when calling ComponentsApi->components_links_create: #{e}"
429
+ end
430
+ ```
431
+
432
+ #### Using the components_links_create_with_http_info variant
433
+
434
+ This returns an Array which contains the response data, status code and headers.
435
+
436
+ > <Array(<Component>, Integer, Hash)> components_links_create_with_http_info(project__slug, slug, component)
437
+
438
+ ```ruby
439
+ begin
440
+
441
+ data, status_code, headers = api_instance.components_links_create_with_http_info(project__slug, slug, component)
442
+ p status_code # => 2xx
443
+ p headers # => { ... }
444
+ p data # => <Component>
445
+ rescue Weblate::ApiError => e
446
+ puts "Error when calling ComponentsApi->components_links_create_with_http_info: #{e}"
447
+ end
448
+ ```
449
+
450
+ ### Parameters
451
+
452
+ | Name | Type | Description | Notes |
453
+ | ---- | ---- | ----------- | ----- |
454
+ | **project__slug** | **String** | | |
455
+ | **slug** | **String** | | |
456
+ | **component** | [**Component**](Component.md) | | |
457
+
458
+ ### Return type
459
+
460
+ [**Component**](Component.md)
461
+
462
+ ### Authorization
463
+
464
+ [tokenAuth](../README.md#tokenAuth)
465
+
466
+ ### HTTP request headers
467
+
468
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
469
+ - **Accept**: application/json
470
+
471
+
472
+ ## components_links_destroy
473
+
474
+ > components_links_destroy(project__slug, project_slug, slug)
475
+
476
+
477
+
478
+ Translation components API.
479
+
480
+ ### Examples
481
+
482
+ ```ruby
483
+ require 'time'
484
+ require 'weblate'
485
+ # setup authorization
486
+ Weblate.configure do |config|
487
+ # Configure API key authorization: tokenAuth
488
+ config.api_key['Authorization'] = 'YOUR API KEY'
489
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
490
+ # config.api_key_prefix['Authorization'] = 'Bearer'
491
+ end
492
+
493
+ api_instance = Weblate::ComponentsApi.new
494
+ project__slug = 'project__slug_example' # String |
495
+ project_slug = 'project_slug_example' # String |
496
+ slug = 'slug_example' # String |
497
+
498
+ begin
499
+
500
+ api_instance.components_links_destroy(project__slug, project_slug, slug)
501
+ rescue Weblate::ApiError => e
502
+ puts "Error when calling ComponentsApi->components_links_destroy: #{e}"
503
+ end
504
+ ```
505
+
506
+ #### Using the components_links_destroy_with_http_info variant
507
+
508
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
509
+
510
+ > <Array(nil, Integer, Hash)> components_links_destroy_with_http_info(project__slug, project_slug, slug)
511
+
512
+ ```ruby
513
+ begin
514
+
515
+ data, status_code, headers = api_instance.components_links_destroy_with_http_info(project__slug, project_slug, slug)
516
+ p status_code # => 2xx
517
+ p headers # => { ... }
518
+ p data # => nil
519
+ rescue Weblate::ApiError => e
520
+ puts "Error when calling ComponentsApi->components_links_destroy_with_http_info: #{e}"
521
+ end
522
+ ```
523
+
524
+ ### Parameters
525
+
526
+ | Name | Type | Description | Notes |
527
+ | ---- | ---- | ----------- | ----- |
528
+ | **project__slug** | **String** | | |
529
+ | **project_slug** | **String** | | |
530
+ | **slug** | **String** | | |
531
+
532
+ ### Return type
533
+
534
+ nil (empty response body)
535
+
536
+ ### Authorization
537
+
538
+ [tokenAuth](../README.md#tokenAuth)
539
+
540
+ ### HTTP request headers
541
+
542
+ - **Content-Type**: Not defined
543
+ - **Accept**: Not defined
544
+
545
+
546
+ ## components_links_retrieve
547
+
548
+ > <Component> components_links_retrieve(project__slug, slug)
549
+
550
+
551
+
552
+ Translation components API.
553
+
554
+ ### Examples
555
+
556
+ ```ruby
557
+ require 'time'
558
+ require 'weblate'
559
+ # setup authorization
560
+ Weblate.configure do |config|
561
+ # Configure API key authorization: tokenAuth
562
+ config.api_key['Authorization'] = 'YOUR API KEY'
563
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
564
+ # config.api_key_prefix['Authorization'] = 'Bearer'
565
+ end
566
+
567
+ api_instance = Weblate::ComponentsApi.new
568
+ project__slug = 'project__slug_example' # String |
569
+ slug = 'slug_example' # String |
570
+
571
+ begin
572
+
573
+ result = api_instance.components_links_retrieve(project__slug, slug)
574
+ p result
575
+ rescue Weblate::ApiError => e
576
+ puts "Error when calling ComponentsApi->components_links_retrieve: #{e}"
577
+ end
578
+ ```
579
+
580
+ #### Using the components_links_retrieve_with_http_info variant
581
+
582
+ This returns an Array which contains the response data, status code and headers.
583
+
584
+ > <Array(<Component>, Integer, Hash)> components_links_retrieve_with_http_info(project__slug, slug)
585
+
586
+ ```ruby
587
+ begin
588
+
589
+ data, status_code, headers = api_instance.components_links_retrieve_with_http_info(project__slug, slug)
590
+ p status_code # => 2xx
591
+ p headers # => { ... }
592
+ p data # => <Component>
593
+ rescue Weblate::ApiError => e
594
+ puts "Error when calling ComponentsApi->components_links_retrieve_with_http_info: #{e}"
595
+ end
596
+ ```
597
+
598
+ ### Parameters
599
+
600
+ | Name | Type | Description | Notes |
601
+ | ---- | ---- | ----------- | ----- |
602
+ | **project__slug** | **String** | | |
603
+ | **slug** | **String** | | |
604
+
605
+ ### Return type
606
+
607
+ [**Component**](Component.md)
608
+
609
+ ### Authorization
610
+
611
+ [tokenAuth](../README.md#tokenAuth)
612
+
613
+ ### HTTP request headers
614
+
615
+ - **Content-Type**: Not defined
616
+ - **Accept**: application/json
617
+
618
+
619
+ ## components_list
620
+
621
+ > <PaginatedComponentList> components_list(opts)
622
+
623
+
624
+
625
+ Translation components API.
626
+
627
+ ### Examples
628
+
629
+ ```ruby
630
+ require 'time'
631
+ require 'weblate'
632
+ # setup authorization
633
+ Weblate.configure do |config|
634
+ # Configure API key authorization: tokenAuth
635
+ config.api_key['Authorization'] = 'YOUR API KEY'
636
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
637
+ # config.api_key_prefix['Authorization'] = 'Bearer'
638
+ end
639
+
640
+ api_instance = Weblate::ComponentsApi.new
641
+ opts = {
642
+ page: 56, # Integer | A page number within the paginated result set.
643
+ page_size: 56 # Integer | Number of results to return per page.
644
+ }
645
+
646
+ begin
647
+
648
+ result = api_instance.components_list(opts)
649
+ p result
650
+ rescue Weblate::ApiError => e
651
+ puts "Error when calling ComponentsApi->components_list: #{e}"
652
+ end
653
+ ```
654
+
655
+ #### Using the components_list_with_http_info variant
656
+
657
+ This returns an Array which contains the response data, status code and headers.
658
+
659
+ > <Array(<PaginatedComponentList>, Integer, Hash)> components_list_with_http_info(opts)
660
+
661
+ ```ruby
662
+ begin
663
+
664
+ data, status_code, headers = api_instance.components_list_with_http_info(opts)
665
+ p status_code # => 2xx
666
+ p headers # => { ... }
667
+ p data # => <PaginatedComponentList>
668
+ rescue Weblate::ApiError => e
669
+ puts "Error when calling ComponentsApi->components_list_with_http_info: #{e}"
670
+ end
671
+ ```
672
+
673
+ ### Parameters
674
+
675
+ | Name | Type | Description | Notes |
676
+ | ---- | ---- | ----------- | ----- |
677
+ | **page** | **Integer** | A page number within the paginated result set. | [optional] |
678
+ | **page_size** | **Integer** | Number of results to return per page. | [optional] |
679
+
680
+ ### Return type
681
+
682
+ [**PaginatedComponentList**](PaginatedComponentList.md)
683
+
684
+ ### Authorization
685
+
686
+ [tokenAuth](../README.md#tokenAuth)
687
+
688
+ ### HTTP request headers
689
+
690
+ - **Content-Type**: Not defined
691
+ - **Accept**: application/json
692
+
693
+
694
+ ## components_lock_create
695
+
696
+ > <LockRequest> components_lock_create(project__slug, slug, lock_request)
697
+
698
+
699
+
700
+ Translation components API.
701
+
702
+ ### Examples
703
+
704
+ ```ruby
705
+ require 'time'
706
+ require 'weblate'
707
+ # setup authorization
708
+ Weblate.configure do |config|
709
+ # Configure API key authorization: tokenAuth
710
+ config.api_key['Authorization'] = 'YOUR API KEY'
711
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
712
+ # config.api_key_prefix['Authorization'] = 'Bearer'
713
+ end
714
+
715
+ api_instance = Weblate::ComponentsApi.new
716
+ project__slug = 'project__slug_example' # String |
717
+ slug = 'slug_example' # String |
718
+ lock_request = Weblate::LockRequest.new({lock: false}) # LockRequest |
719
+
720
+ begin
721
+
722
+ result = api_instance.components_lock_create(project__slug, slug, lock_request)
723
+ p result
724
+ rescue Weblate::ApiError => e
725
+ puts "Error when calling ComponentsApi->components_lock_create: #{e}"
726
+ end
727
+ ```
728
+
729
+ #### Using the components_lock_create_with_http_info variant
730
+
731
+ This returns an Array which contains the response data, status code and headers.
732
+
733
+ > <Array(<LockRequest>, Integer, Hash)> components_lock_create_with_http_info(project__slug, slug, lock_request)
734
+
735
+ ```ruby
736
+ begin
737
+
738
+ data, status_code, headers = api_instance.components_lock_create_with_http_info(project__slug, slug, lock_request)
739
+ p status_code # => 2xx
740
+ p headers # => { ... }
741
+ p data # => <LockRequest>
742
+ rescue Weblate::ApiError => e
743
+ puts "Error when calling ComponentsApi->components_lock_create_with_http_info: #{e}"
744
+ end
745
+ ```
746
+
747
+ ### Parameters
748
+
749
+ | Name | Type | Description | Notes |
750
+ | ---- | ---- | ----------- | ----- |
751
+ | **project__slug** | **String** | | |
752
+ | **slug** | **String** | | |
753
+ | **lock_request** | [**LockRequest**](LockRequest.md) | | |
754
+
755
+ ### Return type
756
+
757
+ [**LockRequest**](LockRequest.md)
758
+
759
+ ### Authorization
760
+
761
+ [tokenAuth](../README.md#tokenAuth)
762
+
763
+ ### HTTP request headers
764
+
765
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
766
+ - **Accept**: application/json
767
+
768
+
769
+ ## components_lock_retrieve
770
+
771
+ > <LockRequest> components_lock_retrieve(project__slug, slug)
772
+
773
+
774
+
775
+ Translation components API.
776
+
777
+ ### Examples
778
+
779
+ ```ruby
780
+ require 'time'
781
+ require 'weblate'
782
+ # setup authorization
783
+ Weblate.configure do |config|
784
+ # Configure API key authorization: tokenAuth
785
+ config.api_key['Authorization'] = 'YOUR API KEY'
786
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
787
+ # config.api_key_prefix['Authorization'] = 'Bearer'
788
+ end
789
+
790
+ api_instance = Weblate::ComponentsApi.new
791
+ project__slug = 'project__slug_example' # String |
792
+ slug = 'slug_example' # String |
793
+
794
+ begin
795
+
796
+ result = api_instance.components_lock_retrieve(project__slug, slug)
797
+ p result
798
+ rescue Weblate::ApiError => e
799
+ puts "Error when calling ComponentsApi->components_lock_retrieve: #{e}"
800
+ end
801
+ ```
802
+
803
+ #### Using the components_lock_retrieve_with_http_info variant
804
+
805
+ This returns an Array which contains the response data, status code and headers.
806
+
807
+ > <Array(<LockRequest>, Integer, Hash)> components_lock_retrieve_with_http_info(project__slug, slug)
808
+
809
+ ```ruby
810
+ begin
811
+
812
+ data, status_code, headers = api_instance.components_lock_retrieve_with_http_info(project__slug, slug)
813
+ p status_code # => 2xx
814
+ p headers # => { ... }
815
+ p data # => <LockRequest>
816
+ rescue Weblate::ApiError => e
817
+ puts "Error when calling ComponentsApi->components_lock_retrieve_with_http_info: #{e}"
818
+ end
819
+ ```
820
+
821
+ ### Parameters
822
+
823
+ | Name | Type | Description | Notes |
824
+ | ---- | ---- | ----------- | ----- |
825
+ | **project__slug** | **String** | | |
826
+ | **slug** | **String** | | |
827
+
828
+ ### Return type
829
+
830
+ [**LockRequest**](LockRequest.md)
831
+
832
+ ### Authorization
833
+
834
+ [tokenAuth](../README.md#tokenAuth)
835
+
836
+ ### HTTP request headers
837
+
838
+ - **Content-Type**: Not defined
839
+ - **Accept**: application/json
840
+
841
+
842
+ ## components_monolingual_base_retrieve
843
+
844
+ > <Component> components_monolingual_base_retrieve(project__slug, slug)
845
+
846
+
847
+
848
+ Translation components API.
849
+
850
+ ### Examples
851
+
852
+ ```ruby
853
+ require 'time'
854
+ require 'weblate'
855
+ # setup authorization
856
+ Weblate.configure do |config|
857
+ # Configure API key authorization: tokenAuth
858
+ config.api_key['Authorization'] = 'YOUR API KEY'
859
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
860
+ # config.api_key_prefix['Authorization'] = 'Bearer'
861
+ end
862
+
863
+ api_instance = Weblate::ComponentsApi.new
864
+ project__slug = 'project__slug_example' # String |
865
+ slug = 'slug_example' # String |
866
+
867
+ begin
868
+
869
+ result = api_instance.components_monolingual_base_retrieve(project__slug, slug)
870
+ p result
871
+ rescue Weblate::ApiError => e
872
+ puts "Error when calling ComponentsApi->components_monolingual_base_retrieve: #{e}"
873
+ end
874
+ ```
875
+
876
+ #### Using the components_monolingual_base_retrieve_with_http_info variant
877
+
878
+ This returns an Array which contains the response data, status code and headers.
879
+
880
+ > <Array(<Component>, Integer, Hash)> components_monolingual_base_retrieve_with_http_info(project__slug, slug)
881
+
882
+ ```ruby
883
+ begin
884
+
885
+ data, status_code, headers = api_instance.components_monolingual_base_retrieve_with_http_info(project__slug, slug)
886
+ p status_code # => 2xx
887
+ p headers # => { ... }
888
+ p data # => <Component>
889
+ rescue Weblate::ApiError => e
890
+ puts "Error when calling ComponentsApi->components_monolingual_base_retrieve_with_http_info: #{e}"
891
+ end
892
+ ```
893
+
894
+ ### Parameters
895
+
896
+ | Name | Type | Description | Notes |
897
+ | ---- | ---- | ----------- | ----- |
898
+ | **project__slug** | **String** | | |
899
+ | **slug** | **String** | | |
900
+
901
+ ### Return type
902
+
903
+ [**Component**](Component.md)
904
+
905
+ ### Authorization
906
+
907
+ [tokenAuth](../README.md#tokenAuth)
908
+
909
+ ### HTTP request headers
910
+
911
+ - **Content-Type**: Not defined
912
+ - **Accept**: application/json
913
+
914
+
915
+ ## components_new_template_retrieve
916
+
917
+ > <Component> components_new_template_retrieve(project__slug, slug)
918
+
919
+
920
+
921
+ Translation components API.
922
+
923
+ ### Examples
924
+
925
+ ```ruby
926
+ require 'time'
927
+ require 'weblate'
928
+ # setup authorization
929
+ Weblate.configure do |config|
930
+ # Configure API key authorization: tokenAuth
931
+ config.api_key['Authorization'] = 'YOUR API KEY'
932
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
933
+ # config.api_key_prefix['Authorization'] = 'Bearer'
934
+ end
935
+
936
+ api_instance = Weblate::ComponentsApi.new
937
+ project__slug = 'project__slug_example' # String |
938
+ slug = 'slug_example' # String |
939
+
940
+ begin
941
+
942
+ result = api_instance.components_new_template_retrieve(project__slug, slug)
943
+ p result
944
+ rescue Weblate::ApiError => e
945
+ puts "Error when calling ComponentsApi->components_new_template_retrieve: #{e}"
946
+ end
947
+ ```
948
+
949
+ #### Using the components_new_template_retrieve_with_http_info variant
950
+
951
+ This returns an Array which contains the response data, status code and headers.
952
+
953
+ > <Array(<Component>, Integer, Hash)> components_new_template_retrieve_with_http_info(project__slug, slug)
954
+
955
+ ```ruby
956
+ begin
957
+
958
+ data, status_code, headers = api_instance.components_new_template_retrieve_with_http_info(project__slug, slug)
959
+ p status_code # => 2xx
960
+ p headers # => { ... }
961
+ p data # => <Component>
962
+ rescue Weblate::ApiError => e
963
+ puts "Error when calling ComponentsApi->components_new_template_retrieve_with_http_info: #{e}"
964
+ end
965
+ ```
966
+
967
+ ### Parameters
968
+
969
+ | Name | Type | Description | Notes |
970
+ | ---- | ---- | ----------- | ----- |
971
+ | **project__slug** | **String** | | |
972
+ | **slug** | **String** | | |
973
+
974
+ ### Return type
975
+
976
+ [**Component**](Component.md)
977
+
978
+ ### Authorization
979
+
980
+ [tokenAuth](../README.md#tokenAuth)
981
+
982
+ ### HTTP request headers
983
+
984
+ - **Content-Type**: Not defined
985
+ - **Accept**: application/json
986
+
987
+
988
+ ## components_partial_update
989
+
990
+ > <Component> components_partial_update(project__slug, slug, opts)
991
+
992
+
993
+
994
+ Translation components API.
995
+
996
+ ### Examples
997
+
998
+ ```ruby
999
+ require 'time'
1000
+ require 'weblate'
1001
+ # setup authorization
1002
+ Weblate.configure do |config|
1003
+ # Configure API key authorization: tokenAuth
1004
+ config.api_key['Authorization'] = 'YOUR API KEY'
1005
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1006
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1007
+ end
1008
+
1009
+ api_instance = Weblate::ComponentsApi.new
1010
+ project__slug = 'project__slug_example' # String |
1011
+ slug = 'slug_example' # String |
1012
+ opts = {
1013
+ patched_component: Weblate::PatchedComponent.new # PatchedComponent |
1014
+ }
1015
+
1016
+ begin
1017
+
1018
+ result = api_instance.components_partial_update(project__slug, slug, opts)
1019
+ p result
1020
+ rescue Weblate::ApiError => e
1021
+ puts "Error when calling ComponentsApi->components_partial_update: #{e}"
1022
+ end
1023
+ ```
1024
+
1025
+ #### Using the components_partial_update_with_http_info variant
1026
+
1027
+ This returns an Array which contains the response data, status code and headers.
1028
+
1029
+ > <Array(<Component>, Integer, Hash)> components_partial_update_with_http_info(project__slug, slug, opts)
1030
+
1031
+ ```ruby
1032
+ begin
1033
+
1034
+ data, status_code, headers = api_instance.components_partial_update_with_http_info(project__slug, slug, opts)
1035
+ p status_code # => 2xx
1036
+ p headers # => { ... }
1037
+ p data # => <Component>
1038
+ rescue Weblate::ApiError => e
1039
+ puts "Error when calling ComponentsApi->components_partial_update_with_http_info: #{e}"
1040
+ end
1041
+ ```
1042
+
1043
+ ### Parameters
1044
+
1045
+ | Name | Type | Description | Notes |
1046
+ | ---- | ---- | ----------- | ----- |
1047
+ | **project__slug** | **String** | | |
1048
+ | **slug** | **String** | | |
1049
+ | **patched_component** | [**PatchedComponent**](PatchedComponent.md) | | [optional] |
1050
+
1051
+ ### Return type
1052
+
1053
+ [**Component**](Component.md)
1054
+
1055
+ ### Authorization
1056
+
1057
+ [tokenAuth](../README.md#tokenAuth)
1058
+
1059
+ ### HTTP request headers
1060
+
1061
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
1062
+ - **Accept**: application/json
1063
+
1064
+
1065
+ ## components_repository_create
1066
+
1067
+ > <RepoRequest> components_repository_create(project__slug, slug, repo_request)
1068
+
1069
+
1070
+
1071
+ Translation components API.
1072
+
1073
+ ### Examples
1074
+
1075
+ ```ruby
1076
+ require 'time'
1077
+ require 'weblate'
1078
+ # setup authorization
1079
+ Weblate.configure do |config|
1080
+ # Configure API key authorization: tokenAuth
1081
+ config.api_key['Authorization'] = 'YOUR API KEY'
1082
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1083
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1084
+ end
1085
+
1086
+ api_instance = Weblate::ComponentsApi.new
1087
+ project__slug = 'project__slug_example' # String |
1088
+ slug = 'slug_example' # String |
1089
+ repo_request = Weblate::RepoRequest.new({operation: Weblate::OperationEnum::COMMIT}) # RepoRequest |
1090
+
1091
+ begin
1092
+
1093
+ result = api_instance.components_repository_create(project__slug, slug, repo_request)
1094
+ p result
1095
+ rescue Weblate::ApiError => e
1096
+ puts "Error when calling ComponentsApi->components_repository_create: #{e}"
1097
+ end
1098
+ ```
1099
+
1100
+ #### Using the components_repository_create_with_http_info variant
1101
+
1102
+ This returns an Array which contains the response data, status code and headers.
1103
+
1104
+ > <Array(<RepoRequest>, Integer, Hash)> components_repository_create_with_http_info(project__slug, slug, repo_request)
1105
+
1106
+ ```ruby
1107
+ begin
1108
+
1109
+ data, status_code, headers = api_instance.components_repository_create_with_http_info(project__slug, slug, repo_request)
1110
+ p status_code # => 2xx
1111
+ p headers # => { ... }
1112
+ p data # => <RepoRequest>
1113
+ rescue Weblate::ApiError => e
1114
+ puts "Error when calling ComponentsApi->components_repository_create_with_http_info: #{e}"
1115
+ end
1116
+ ```
1117
+
1118
+ ### Parameters
1119
+
1120
+ | Name | Type | Description | Notes |
1121
+ | ---- | ---- | ----------- | ----- |
1122
+ | **project__slug** | **String** | | |
1123
+ | **slug** | **String** | | |
1124
+ | **repo_request** | [**RepoRequest**](RepoRequest.md) | | |
1125
+
1126
+ ### Return type
1127
+
1128
+ [**RepoRequest**](RepoRequest.md)
1129
+
1130
+ ### Authorization
1131
+
1132
+ [tokenAuth](../README.md#tokenAuth)
1133
+
1134
+ ### HTTP request headers
1135
+
1136
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
1137
+ - **Accept**: application/json
1138
+
1139
+
1140
+ ## components_repository_retrieve
1141
+
1142
+ > <RepoRequest> components_repository_retrieve(project__slug, slug)
1143
+
1144
+
1145
+
1146
+ Translation components API.
1147
+
1148
+ ### Examples
1149
+
1150
+ ```ruby
1151
+ require 'time'
1152
+ require 'weblate'
1153
+ # setup authorization
1154
+ Weblate.configure do |config|
1155
+ # Configure API key authorization: tokenAuth
1156
+ config.api_key['Authorization'] = 'YOUR API KEY'
1157
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1158
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1159
+ end
1160
+
1161
+ api_instance = Weblate::ComponentsApi.new
1162
+ project__slug = 'project__slug_example' # String |
1163
+ slug = 'slug_example' # String |
1164
+
1165
+ begin
1166
+
1167
+ result = api_instance.components_repository_retrieve(project__slug, slug)
1168
+ p result
1169
+ rescue Weblate::ApiError => e
1170
+ puts "Error when calling ComponentsApi->components_repository_retrieve: #{e}"
1171
+ end
1172
+ ```
1173
+
1174
+ #### Using the components_repository_retrieve_with_http_info variant
1175
+
1176
+ This returns an Array which contains the response data, status code and headers.
1177
+
1178
+ > <Array(<RepoRequest>, Integer, Hash)> components_repository_retrieve_with_http_info(project__slug, slug)
1179
+
1180
+ ```ruby
1181
+ begin
1182
+
1183
+ data, status_code, headers = api_instance.components_repository_retrieve_with_http_info(project__slug, slug)
1184
+ p status_code # => 2xx
1185
+ p headers # => { ... }
1186
+ p data # => <RepoRequest>
1187
+ rescue Weblate::ApiError => e
1188
+ puts "Error when calling ComponentsApi->components_repository_retrieve_with_http_info: #{e}"
1189
+ end
1190
+ ```
1191
+
1192
+ ### Parameters
1193
+
1194
+ | Name | Type | Description | Notes |
1195
+ | ---- | ---- | ----------- | ----- |
1196
+ | **project__slug** | **String** | | |
1197
+ | **slug** | **String** | | |
1198
+
1199
+ ### Return type
1200
+
1201
+ [**RepoRequest**](RepoRequest.md)
1202
+
1203
+ ### Authorization
1204
+
1205
+ [tokenAuth](../README.md#tokenAuth)
1206
+
1207
+ ### HTTP request headers
1208
+
1209
+ - **Content-Type**: Not defined
1210
+ - **Accept**: application/json
1211
+
1212
+
1213
+ ## components_retrieve
1214
+
1215
+ > <Component> components_retrieve(project__slug, slug)
1216
+
1217
+
1218
+
1219
+ Translation components API.
1220
+
1221
+ ### Examples
1222
+
1223
+ ```ruby
1224
+ require 'time'
1225
+ require 'weblate'
1226
+ # setup authorization
1227
+ Weblate.configure do |config|
1228
+ # Configure API key authorization: tokenAuth
1229
+ config.api_key['Authorization'] = 'YOUR API KEY'
1230
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1231
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1232
+ end
1233
+
1234
+ api_instance = Weblate::ComponentsApi.new
1235
+ project__slug = 'project__slug_example' # String |
1236
+ slug = 'slug_example' # String |
1237
+
1238
+ begin
1239
+
1240
+ result = api_instance.components_retrieve(project__slug, slug)
1241
+ p result
1242
+ rescue Weblate::ApiError => e
1243
+ puts "Error when calling ComponentsApi->components_retrieve: #{e}"
1244
+ end
1245
+ ```
1246
+
1247
+ #### Using the components_retrieve_with_http_info variant
1248
+
1249
+ This returns an Array which contains the response data, status code and headers.
1250
+
1251
+ > <Array(<Component>, Integer, Hash)> components_retrieve_with_http_info(project__slug, slug)
1252
+
1253
+ ```ruby
1254
+ begin
1255
+
1256
+ data, status_code, headers = api_instance.components_retrieve_with_http_info(project__slug, slug)
1257
+ p status_code # => 2xx
1258
+ p headers # => { ... }
1259
+ p data # => <Component>
1260
+ rescue Weblate::ApiError => e
1261
+ puts "Error when calling ComponentsApi->components_retrieve_with_http_info: #{e}"
1262
+ end
1263
+ ```
1264
+
1265
+ ### Parameters
1266
+
1267
+ | Name | Type | Description | Notes |
1268
+ | ---- | ---- | ----------- | ----- |
1269
+ | **project__slug** | **String** | | |
1270
+ | **slug** | **String** | | |
1271
+
1272
+ ### Return type
1273
+
1274
+ [**Component**](Component.md)
1275
+
1276
+ ### Authorization
1277
+
1278
+ [tokenAuth](../README.md#tokenAuth)
1279
+
1280
+ ### HTTP request headers
1281
+
1282
+ - **Content-Type**: Not defined
1283
+ - **Accept**: application/json
1284
+
1285
+
1286
+ ## components_screenshots_retrieve
1287
+
1288
+ > <Component> components_screenshots_retrieve(project__slug, slug)
1289
+
1290
+
1291
+
1292
+ Translation components API.
1293
+
1294
+ ### Examples
1295
+
1296
+ ```ruby
1297
+ require 'time'
1298
+ require 'weblate'
1299
+ # setup authorization
1300
+ Weblate.configure do |config|
1301
+ # Configure API key authorization: tokenAuth
1302
+ config.api_key['Authorization'] = 'YOUR API KEY'
1303
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1304
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1305
+ end
1306
+
1307
+ api_instance = Weblate::ComponentsApi.new
1308
+ project__slug = 'project__slug_example' # String |
1309
+ slug = 'slug_example' # String |
1310
+
1311
+ begin
1312
+
1313
+ result = api_instance.components_screenshots_retrieve(project__slug, slug)
1314
+ p result
1315
+ rescue Weblate::ApiError => e
1316
+ puts "Error when calling ComponentsApi->components_screenshots_retrieve: #{e}"
1317
+ end
1318
+ ```
1319
+
1320
+ #### Using the components_screenshots_retrieve_with_http_info variant
1321
+
1322
+ This returns an Array which contains the response data, status code and headers.
1323
+
1324
+ > <Array(<Component>, Integer, Hash)> components_screenshots_retrieve_with_http_info(project__slug, slug)
1325
+
1326
+ ```ruby
1327
+ begin
1328
+
1329
+ data, status_code, headers = api_instance.components_screenshots_retrieve_with_http_info(project__slug, slug)
1330
+ p status_code # => 2xx
1331
+ p headers # => { ... }
1332
+ p data # => <Component>
1333
+ rescue Weblate::ApiError => e
1334
+ puts "Error when calling ComponentsApi->components_screenshots_retrieve_with_http_info: #{e}"
1335
+ end
1336
+ ```
1337
+
1338
+ ### Parameters
1339
+
1340
+ | Name | Type | Description | Notes |
1341
+ | ---- | ---- | ----------- | ----- |
1342
+ | **project__slug** | **String** | | |
1343
+ | **slug** | **String** | | |
1344
+
1345
+ ### Return type
1346
+
1347
+ [**Component**](Component.md)
1348
+
1349
+ ### Authorization
1350
+
1351
+ [tokenAuth](../README.md#tokenAuth)
1352
+
1353
+ ### HTTP request headers
1354
+
1355
+ - **Content-Type**: Not defined
1356
+ - **Accept**: application/json
1357
+
1358
+
1359
+ ## components_statistics_retrieve
1360
+
1361
+ > <Component> components_statistics_retrieve(project__slug, slug)
1362
+
1363
+
1364
+
1365
+ Translation components API.
1366
+
1367
+ ### Examples
1368
+
1369
+ ```ruby
1370
+ require 'time'
1371
+ require 'weblate'
1372
+ # setup authorization
1373
+ Weblate.configure do |config|
1374
+ # Configure API key authorization: tokenAuth
1375
+ config.api_key['Authorization'] = 'YOUR API KEY'
1376
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1377
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1378
+ end
1379
+
1380
+ api_instance = Weblate::ComponentsApi.new
1381
+ project__slug = 'project__slug_example' # String |
1382
+ slug = 'slug_example' # String |
1383
+
1384
+ begin
1385
+
1386
+ result = api_instance.components_statistics_retrieve(project__slug, slug)
1387
+ p result
1388
+ rescue Weblate::ApiError => e
1389
+ puts "Error when calling ComponentsApi->components_statistics_retrieve: #{e}"
1390
+ end
1391
+ ```
1392
+
1393
+ #### Using the components_statistics_retrieve_with_http_info variant
1394
+
1395
+ This returns an Array which contains the response data, status code and headers.
1396
+
1397
+ > <Array(<Component>, Integer, Hash)> components_statistics_retrieve_with_http_info(project__slug, slug)
1398
+
1399
+ ```ruby
1400
+ begin
1401
+
1402
+ data, status_code, headers = api_instance.components_statistics_retrieve_with_http_info(project__slug, slug)
1403
+ p status_code # => 2xx
1404
+ p headers # => { ... }
1405
+ p data # => <Component>
1406
+ rescue Weblate::ApiError => e
1407
+ puts "Error when calling ComponentsApi->components_statistics_retrieve_with_http_info: #{e}"
1408
+ end
1409
+ ```
1410
+
1411
+ ### Parameters
1412
+
1413
+ | Name | Type | Description | Notes |
1414
+ | ---- | ---- | ----------- | ----- |
1415
+ | **project__slug** | **String** | | |
1416
+ | **slug** | **String** | | |
1417
+
1418
+ ### Return type
1419
+
1420
+ [**Component**](Component.md)
1421
+
1422
+ ### Authorization
1423
+
1424
+ [tokenAuth](../README.md#tokenAuth)
1425
+
1426
+ ### HTTP request headers
1427
+
1428
+ - **Content-Type**: Not defined
1429
+ - **Accept**: application/json
1430
+
1431
+
1432
+ ## components_translations_create
1433
+
1434
+ > <Component> components_translations_create(project__slug, slug, component)
1435
+
1436
+
1437
+
1438
+ Translation components API.
1439
+
1440
+ ### Examples
1441
+
1442
+ ```ruby
1443
+ require 'time'
1444
+ require 'weblate'
1445
+ # setup authorization
1446
+ Weblate.configure do |config|
1447
+ # Configure API key authorization: tokenAuth
1448
+ config.api_key['Authorization'] = 'YOUR API KEY'
1449
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1450
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1451
+ end
1452
+
1453
+ api_instance = Weblate::ComponentsApi.new
1454
+ project__slug = 'project__slug_example' # String |
1455
+ slug = 'slug_example' # String |
1456
+ component = Weblate::Component.new({name: 'name_example', slug: 'slug_example', id: 37, project: Weblate::Project.new({name: 'name_example', slug: 'slug_example', id: 37, web_url: 'web_url_example', url: 'url_example', components_list_url: 'components_list_url_example', repository_url: 'repository_url_example', statistics_url: 'statistics_url_example', categories_url: 'categories_url_example', changes_list_url: 'changes_list_url_example', languages_url: 'languages_url_example', labels_url: 'labels_url_example', credits_url: 'credits_url_example'}), repo: 'repo_example', filemask: 'filemask_example', file_format: Weblate::FileFormatEnum::APPSTORE, license_url: 'license_url_example', web_url: 'web_url_example', url: 'url_example', repository_url: 'repository_url_example', translations_url: 'translations_url_example', statistics_url: 'statistics_url_example', lock_url: 'lock_url_example', links_url: 'links_url_example', changes_list_url: 'changes_list_url_example', task_url: 'task_url_example', credits_url: 'credits_url_example', addons: ['addons_example'], linked_component: 'linked_component_example'}) # Component |
1457
+
1458
+ begin
1459
+
1460
+ result = api_instance.components_translations_create(project__slug, slug, component)
1461
+ p result
1462
+ rescue Weblate::ApiError => e
1463
+ puts "Error when calling ComponentsApi->components_translations_create: #{e}"
1464
+ end
1465
+ ```
1466
+
1467
+ #### Using the components_translations_create_with_http_info variant
1468
+
1469
+ This returns an Array which contains the response data, status code and headers.
1470
+
1471
+ > <Array(<Component>, Integer, Hash)> components_translations_create_with_http_info(project__slug, slug, component)
1472
+
1473
+ ```ruby
1474
+ begin
1475
+
1476
+ data, status_code, headers = api_instance.components_translations_create_with_http_info(project__slug, slug, component)
1477
+ p status_code # => 2xx
1478
+ p headers # => { ... }
1479
+ p data # => <Component>
1480
+ rescue Weblate::ApiError => e
1481
+ puts "Error when calling ComponentsApi->components_translations_create_with_http_info: #{e}"
1482
+ end
1483
+ ```
1484
+
1485
+ ### Parameters
1486
+
1487
+ | Name | Type | Description | Notes |
1488
+ | ---- | ---- | ----------- | ----- |
1489
+ | **project__slug** | **String** | | |
1490
+ | **slug** | **String** | | |
1491
+ | **component** | [**Component**](Component.md) | | |
1492
+
1493
+ ### Return type
1494
+
1495
+ [**Component**](Component.md)
1496
+
1497
+ ### Authorization
1498
+
1499
+ [tokenAuth](../README.md#tokenAuth)
1500
+
1501
+ ### HTTP request headers
1502
+
1503
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
1504
+ - **Accept**: application/json
1505
+
1506
+
1507
+ ## components_translations_retrieve
1508
+
1509
+ > <Component> components_translations_retrieve(project__slug, slug)
1510
+
1511
+
1512
+
1513
+ Translation components API.
1514
+
1515
+ ### Examples
1516
+
1517
+ ```ruby
1518
+ require 'time'
1519
+ require 'weblate'
1520
+ # setup authorization
1521
+ Weblate.configure do |config|
1522
+ # Configure API key authorization: tokenAuth
1523
+ config.api_key['Authorization'] = 'YOUR API KEY'
1524
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1525
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1526
+ end
1527
+
1528
+ api_instance = Weblate::ComponentsApi.new
1529
+ project__slug = 'project__slug_example' # String |
1530
+ slug = 'slug_example' # String |
1531
+
1532
+ begin
1533
+
1534
+ result = api_instance.components_translations_retrieve(project__slug, slug)
1535
+ p result
1536
+ rescue Weblate::ApiError => e
1537
+ puts "Error when calling ComponentsApi->components_translations_retrieve: #{e}"
1538
+ end
1539
+ ```
1540
+
1541
+ #### Using the components_translations_retrieve_with_http_info variant
1542
+
1543
+ This returns an Array which contains the response data, status code and headers.
1544
+
1545
+ > <Array(<Component>, Integer, Hash)> components_translations_retrieve_with_http_info(project__slug, slug)
1546
+
1547
+ ```ruby
1548
+ begin
1549
+
1550
+ data, status_code, headers = api_instance.components_translations_retrieve_with_http_info(project__slug, slug)
1551
+ p status_code # => 2xx
1552
+ p headers # => { ... }
1553
+ p data # => <Component>
1554
+ rescue Weblate::ApiError => e
1555
+ puts "Error when calling ComponentsApi->components_translations_retrieve_with_http_info: #{e}"
1556
+ end
1557
+ ```
1558
+
1559
+ ### Parameters
1560
+
1561
+ | Name | Type | Description | Notes |
1562
+ | ---- | ---- | ----------- | ----- |
1563
+ | **project__slug** | **String** | | |
1564
+ | **slug** | **String** | | |
1565
+
1566
+ ### Return type
1567
+
1568
+ [**Component**](Component.md)
1569
+
1570
+ ### Authorization
1571
+
1572
+ [tokenAuth](../README.md#tokenAuth)
1573
+
1574
+ ### HTTP request headers
1575
+
1576
+ - **Content-Type**: Not defined
1577
+ - **Accept**: application/json
1578
+
1579
+
1580
+ ## components_update
1581
+
1582
+ > <Component> components_update(project__slug, slug, component)
1583
+
1584
+
1585
+
1586
+ Translation components API.
1587
+
1588
+ ### Examples
1589
+
1590
+ ```ruby
1591
+ require 'time'
1592
+ require 'weblate'
1593
+ # setup authorization
1594
+ Weblate.configure do |config|
1595
+ # Configure API key authorization: tokenAuth
1596
+ config.api_key['Authorization'] = 'YOUR API KEY'
1597
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1598
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1599
+ end
1600
+
1601
+ api_instance = Weblate::ComponentsApi.new
1602
+ project__slug = 'project__slug_example' # String |
1603
+ slug = 'slug_example' # String |
1604
+ component = Weblate::Component.new({name: 'name_example', slug: 'slug_example', id: 37, project: Weblate::Project.new({name: 'name_example', slug: 'slug_example', id: 37, web_url: 'web_url_example', url: 'url_example', components_list_url: 'components_list_url_example', repository_url: 'repository_url_example', statistics_url: 'statistics_url_example', categories_url: 'categories_url_example', changes_list_url: 'changes_list_url_example', languages_url: 'languages_url_example', labels_url: 'labels_url_example', credits_url: 'credits_url_example'}), repo: 'repo_example', filemask: 'filemask_example', file_format: Weblate::FileFormatEnum::APPSTORE, license_url: 'license_url_example', web_url: 'web_url_example', url: 'url_example', repository_url: 'repository_url_example', translations_url: 'translations_url_example', statistics_url: 'statistics_url_example', lock_url: 'lock_url_example', links_url: 'links_url_example', changes_list_url: 'changes_list_url_example', task_url: 'task_url_example', credits_url: 'credits_url_example', addons: ['addons_example'], linked_component: 'linked_component_example'}) # Component |
1605
+
1606
+ begin
1607
+
1608
+ result = api_instance.components_update(project__slug, slug, component)
1609
+ p result
1610
+ rescue Weblate::ApiError => e
1611
+ puts "Error when calling ComponentsApi->components_update: #{e}"
1612
+ end
1613
+ ```
1614
+
1615
+ #### Using the components_update_with_http_info variant
1616
+
1617
+ This returns an Array which contains the response data, status code and headers.
1618
+
1619
+ > <Array(<Component>, Integer, Hash)> components_update_with_http_info(project__slug, slug, component)
1620
+
1621
+ ```ruby
1622
+ begin
1623
+
1624
+ data, status_code, headers = api_instance.components_update_with_http_info(project__slug, slug, component)
1625
+ p status_code # => 2xx
1626
+ p headers # => { ... }
1627
+ p data # => <Component>
1628
+ rescue Weblate::ApiError => e
1629
+ puts "Error when calling ComponentsApi->components_update_with_http_info: #{e}"
1630
+ end
1631
+ ```
1632
+
1633
+ ### Parameters
1634
+
1635
+ | Name | Type | Description | Notes |
1636
+ | ---- | ---- | ----------- | ----- |
1637
+ | **project__slug** | **String** | | |
1638
+ | **slug** | **String** | | |
1639
+ | **component** | [**Component**](Component.md) | | |
1640
+
1641
+ ### Return type
1642
+
1643
+ [**Component**](Component.md)
1644
+
1645
+ ### Authorization
1646
+
1647
+ [tokenAuth](../README.md#tokenAuth)
1648
+
1649
+ ### HTTP request headers
1650
+
1651
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
1652
+ - **Accept**: application/json
1653
+