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,1392 @@
1
+ # Weblate::ProjectsApi
2
+
3
+ All URIs are relative to *https://hosted.weblate.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**projects_addons_create**](ProjectsApi.md#projects_addons_create) | **POST** /projects/{slug}/addons/ | |
8
+ | [**projects_categories_retrieve**](ProjectsApi.md#projects_categories_retrieve) | **GET** /projects/{slug}/categories/ | |
9
+ | [**projects_changes_retrieve**](ProjectsApi.md#projects_changes_retrieve) | **GET** /projects/{slug}/changes/ | |
10
+ | [**projects_components_create**](ProjectsApi.md#projects_components_create) | **POST** /projects/{slug}/components/ | |
11
+ | [**projects_components_retrieve**](ProjectsApi.md#projects_components_retrieve) | **GET** /projects/{slug}/components/ | |
12
+ | [**projects_create**](ProjectsApi.md#projects_create) | **POST** /projects/ | |
13
+ | [**projects_credits_retrieve**](ProjectsApi.md#projects_credits_retrieve) | **GET** /projects/{slug}/credits/ | |
14
+ | [**projects_destroy**](ProjectsApi.md#projects_destroy) | **DELETE** /projects/{slug}/ | |
15
+ | [**projects_file_retrieve**](ProjectsApi.md#projects_file_retrieve) | **GET** /projects/{slug}/file/ | |
16
+ | [**projects_labels_create**](ProjectsApi.md#projects_labels_create) | **POST** /projects/{slug}/labels/ | |
17
+ | [**projects_labels_retrieve**](ProjectsApi.md#projects_labels_retrieve) | **GET** /projects/{slug}/labels/ | |
18
+ | [**projects_languages_retrieve**](ProjectsApi.md#projects_languages_retrieve) | **GET** /projects/{slug}/languages/ | |
19
+ | [**projects_list**](ProjectsApi.md#projects_list) | **GET** /projects/ | |
20
+ | [**projects_partial_update**](ProjectsApi.md#projects_partial_update) | **PATCH** /projects/{slug}/ | |
21
+ | [**projects_repository_create**](ProjectsApi.md#projects_repository_create) | **POST** /projects/{slug}/repository/ | |
22
+ | [**projects_repository_retrieve**](ProjectsApi.md#projects_repository_retrieve) | **GET** /projects/{slug}/repository/ | |
23
+ | [**projects_retrieve**](ProjectsApi.md#projects_retrieve) | **GET** /projects/{slug}/ | |
24
+ | [**projects_statistics_retrieve**](ProjectsApi.md#projects_statistics_retrieve) | **GET** /projects/{slug}/statistics/ | |
25
+ | [**projects_update**](ProjectsApi.md#projects_update) | **PUT** /projects/{slug}/ | |
26
+
27
+
28
+ ## projects_addons_create
29
+
30
+ > <Project> projects_addons_create(slug, project)
31
+
32
+
33
+
34
+ Translation projects API.
35
+
36
+ ### Examples
37
+
38
+ ```ruby
39
+ require 'time'
40
+ require 'weblate'
41
+ # setup authorization
42
+ Weblate.configure do |config|
43
+ # Configure API key authorization: tokenAuth
44
+ config.api_key['Authorization'] = 'YOUR API KEY'
45
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
46
+ # config.api_key_prefix['Authorization'] = 'Bearer'
47
+ end
48
+
49
+ api_instance = Weblate::ProjectsApi.new
50
+ slug = 'slug_example' # String |
51
+ 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'}) # Project |
52
+
53
+ begin
54
+
55
+ result = api_instance.projects_addons_create(slug, project)
56
+ p result
57
+ rescue Weblate::ApiError => e
58
+ puts "Error when calling ProjectsApi->projects_addons_create: #{e}"
59
+ end
60
+ ```
61
+
62
+ #### Using the projects_addons_create_with_http_info variant
63
+
64
+ This returns an Array which contains the response data, status code and headers.
65
+
66
+ > <Array(<Project>, Integer, Hash)> projects_addons_create_with_http_info(slug, project)
67
+
68
+ ```ruby
69
+ begin
70
+
71
+ data, status_code, headers = api_instance.projects_addons_create_with_http_info(slug, project)
72
+ p status_code # => 2xx
73
+ p headers # => { ... }
74
+ p data # => <Project>
75
+ rescue Weblate::ApiError => e
76
+ puts "Error when calling ProjectsApi->projects_addons_create_with_http_info: #{e}"
77
+ end
78
+ ```
79
+
80
+ ### Parameters
81
+
82
+ | Name | Type | Description | Notes |
83
+ | ---- | ---- | ----------- | ----- |
84
+ | **slug** | **String** | | |
85
+ | **project** | [**Project**](Project.md) | | |
86
+
87
+ ### Return type
88
+
89
+ [**Project**](Project.md)
90
+
91
+ ### Authorization
92
+
93
+ [tokenAuth](../README.md#tokenAuth)
94
+
95
+ ### HTTP request headers
96
+
97
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
98
+ - **Accept**: application/json
99
+
100
+
101
+ ## projects_categories_retrieve
102
+
103
+ > <Project> projects_categories_retrieve(slug)
104
+
105
+
106
+
107
+ Translation projects API.
108
+
109
+ ### Examples
110
+
111
+ ```ruby
112
+ require 'time'
113
+ require 'weblate'
114
+ # setup authorization
115
+ Weblate.configure do |config|
116
+ # Configure API key authorization: tokenAuth
117
+ config.api_key['Authorization'] = 'YOUR API KEY'
118
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
119
+ # config.api_key_prefix['Authorization'] = 'Bearer'
120
+ end
121
+
122
+ api_instance = Weblate::ProjectsApi.new
123
+ slug = 'slug_example' # String |
124
+
125
+ begin
126
+
127
+ result = api_instance.projects_categories_retrieve(slug)
128
+ p result
129
+ rescue Weblate::ApiError => e
130
+ puts "Error when calling ProjectsApi->projects_categories_retrieve: #{e}"
131
+ end
132
+ ```
133
+
134
+ #### Using the projects_categories_retrieve_with_http_info variant
135
+
136
+ This returns an Array which contains the response data, status code and headers.
137
+
138
+ > <Array(<Project>, Integer, Hash)> projects_categories_retrieve_with_http_info(slug)
139
+
140
+ ```ruby
141
+ begin
142
+
143
+ data, status_code, headers = api_instance.projects_categories_retrieve_with_http_info(slug)
144
+ p status_code # => 2xx
145
+ p headers # => { ... }
146
+ p data # => <Project>
147
+ rescue Weblate::ApiError => e
148
+ puts "Error when calling ProjectsApi->projects_categories_retrieve_with_http_info: #{e}"
149
+ end
150
+ ```
151
+
152
+ ### Parameters
153
+
154
+ | Name | Type | Description | Notes |
155
+ | ---- | ---- | ----------- | ----- |
156
+ | **slug** | **String** | | |
157
+
158
+ ### Return type
159
+
160
+ [**Project**](Project.md)
161
+
162
+ ### Authorization
163
+
164
+ [tokenAuth](../README.md#tokenAuth)
165
+
166
+ ### HTTP request headers
167
+
168
+ - **Content-Type**: Not defined
169
+ - **Accept**: application/json
170
+
171
+
172
+ ## projects_changes_retrieve
173
+
174
+ > <Project> projects_changes_retrieve(slug)
175
+
176
+
177
+
178
+ Translation projects API.
179
+
180
+ ### Examples
181
+
182
+ ```ruby
183
+ require 'time'
184
+ require 'weblate'
185
+ # setup authorization
186
+ Weblate.configure do |config|
187
+ # Configure API key authorization: tokenAuth
188
+ config.api_key['Authorization'] = 'YOUR API KEY'
189
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
190
+ # config.api_key_prefix['Authorization'] = 'Bearer'
191
+ end
192
+
193
+ api_instance = Weblate::ProjectsApi.new
194
+ slug = 'slug_example' # String |
195
+
196
+ begin
197
+
198
+ result = api_instance.projects_changes_retrieve(slug)
199
+ p result
200
+ rescue Weblate::ApiError => e
201
+ puts "Error when calling ProjectsApi->projects_changes_retrieve: #{e}"
202
+ end
203
+ ```
204
+
205
+ #### Using the projects_changes_retrieve_with_http_info variant
206
+
207
+ This returns an Array which contains the response data, status code and headers.
208
+
209
+ > <Array(<Project>, Integer, Hash)> projects_changes_retrieve_with_http_info(slug)
210
+
211
+ ```ruby
212
+ begin
213
+
214
+ data, status_code, headers = api_instance.projects_changes_retrieve_with_http_info(slug)
215
+ p status_code # => 2xx
216
+ p headers # => { ... }
217
+ p data # => <Project>
218
+ rescue Weblate::ApiError => e
219
+ puts "Error when calling ProjectsApi->projects_changes_retrieve_with_http_info: #{e}"
220
+ end
221
+ ```
222
+
223
+ ### Parameters
224
+
225
+ | Name | Type | Description | Notes |
226
+ | ---- | ---- | ----------- | ----- |
227
+ | **slug** | **String** | | |
228
+
229
+ ### Return type
230
+
231
+ [**Project**](Project.md)
232
+
233
+ ### Authorization
234
+
235
+ [tokenAuth](../README.md#tokenAuth)
236
+
237
+ ### HTTP request headers
238
+
239
+ - **Content-Type**: Not defined
240
+ - **Accept**: application/json
241
+
242
+
243
+ ## projects_components_create
244
+
245
+ > <Component> projects_components_create(slug, component)
246
+
247
+
248
+
249
+ Translation projects API.
250
+
251
+ ### Examples
252
+
253
+ ```ruby
254
+ require 'time'
255
+ require 'weblate'
256
+ # setup authorization
257
+ Weblate.configure do |config|
258
+ # Configure API key authorization: tokenAuth
259
+ config.api_key['Authorization'] = 'YOUR API KEY'
260
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
261
+ # config.api_key_prefix['Authorization'] = 'Bearer'
262
+ end
263
+
264
+ api_instance = Weblate::ProjectsApi.new
265
+ slug = 'slug_example' # String |
266
+ 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 |
267
+
268
+ begin
269
+
270
+ result = api_instance.projects_components_create(slug, component)
271
+ p result
272
+ rescue Weblate::ApiError => e
273
+ puts "Error when calling ProjectsApi->projects_components_create: #{e}"
274
+ end
275
+ ```
276
+
277
+ #### Using the projects_components_create_with_http_info variant
278
+
279
+ This returns an Array which contains the response data, status code and headers.
280
+
281
+ > <Array(<Component>, Integer, Hash)> projects_components_create_with_http_info(slug, component)
282
+
283
+ ```ruby
284
+ begin
285
+
286
+ data, status_code, headers = api_instance.projects_components_create_with_http_info(slug, component)
287
+ p status_code # => 2xx
288
+ p headers # => { ... }
289
+ p data # => <Component>
290
+ rescue Weblate::ApiError => e
291
+ puts "Error when calling ProjectsApi->projects_components_create_with_http_info: #{e}"
292
+ end
293
+ ```
294
+
295
+ ### Parameters
296
+
297
+ | Name | Type | Description | Notes |
298
+ | ---- | ---- | ----------- | ----- |
299
+ | **slug** | **String** | | |
300
+ | **component** | [**Component**](Component.md) | | |
301
+
302
+ ### Return type
303
+
304
+ [**Component**](Component.md)
305
+
306
+ ### Authorization
307
+
308
+ [tokenAuth](../README.md#tokenAuth)
309
+
310
+ ### HTTP request headers
311
+
312
+ - **Content-Type**: application/json, multipart/form-data, application/x-www-form-urlencoded
313
+ - **Accept**: application/json
314
+
315
+
316
+ ## projects_components_retrieve
317
+
318
+ > <Component> projects_components_retrieve(slug)
319
+
320
+
321
+
322
+ Translation projects API.
323
+
324
+ ### Examples
325
+
326
+ ```ruby
327
+ require 'time'
328
+ require 'weblate'
329
+ # setup authorization
330
+ Weblate.configure do |config|
331
+ # Configure API key authorization: tokenAuth
332
+ config.api_key['Authorization'] = 'YOUR API KEY'
333
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
334
+ # config.api_key_prefix['Authorization'] = 'Bearer'
335
+ end
336
+
337
+ api_instance = Weblate::ProjectsApi.new
338
+ slug = 'slug_example' # String |
339
+
340
+ begin
341
+
342
+ result = api_instance.projects_components_retrieve(slug)
343
+ p result
344
+ rescue Weblate::ApiError => e
345
+ puts "Error when calling ProjectsApi->projects_components_retrieve: #{e}"
346
+ end
347
+ ```
348
+
349
+ #### Using the projects_components_retrieve_with_http_info variant
350
+
351
+ This returns an Array which contains the response data, status code and headers.
352
+
353
+ > <Array(<Component>, Integer, Hash)> projects_components_retrieve_with_http_info(slug)
354
+
355
+ ```ruby
356
+ begin
357
+
358
+ data, status_code, headers = api_instance.projects_components_retrieve_with_http_info(slug)
359
+ p status_code # => 2xx
360
+ p headers # => { ... }
361
+ p data # => <Component>
362
+ rescue Weblate::ApiError => e
363
+ puts "Error when calling ProjectsApi->projects_components_retrieve_with_http_info: #{e}"
364
+ end
365
+ ```
366
+
367
+ ### Parameters
368
+
369
+ | Name | Type | Description | Notes |
370
+ | ---- | ---- | ----------- | ----- |
371
+ | **slug** | **String** | | |
372
+
373
+ ### Return type
374
+
375
+ [**Component**](Component.md)
376
+
377
+ ### Authorization
378
+
379
+ [tokenAuth](../README.md#tokenAuth)
380
+
381
+ ### HTTP request headers
382
+
383
+ - **Content-Type**: Not defined
384
+ - **Accept**: application/json
385
+
386
+
387
+ ## projects_create
388
+
389
+ > <Project> projects_create(project)
390
+
391
+
392
+
393
+ Translation projects API.
394
+
395
+ ### Examples
396
+
397
+ ```ruby
398
+ require 'time'
399
+ require 'weblate'
400
+ # setup authorization
401
+ Weblate.configure do |config|
402
+ # Configure API key authorization: tokenAuth
403
+ config.api_key['Authorization'] = 'YOUR API KEY'
404
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
405
+ # config.api_key_prefix['Authorization'] = 'Bearer'
406
+ end
407
+
408
+ api_instance = Weblate::ProjectsApi.new
409
+ 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'}) # Project |
410
+
411
+ begin
412
+
413
+ result = api_instance.projects_create(project)
414
+ p result
415
+ rescue Weblate::ApiError => e
416
+ puts "Error when calling ProjectsApi->projects_create: #{e}"
417
+ end
418
+ ```
419
+
420
+ #### Using the projects_create_with_http_info variant
421
+
422
+ This returns an Array which contains the response data, status code and headers.
423
+
424
+ > <Array(<Project>, Integer, Hash)> projects_create_with_http_info(project)
425
+
426
+ ```ruby
427
+ begin
428
+
429
+ data, status_code, headers = api_instance.projects_create_with_http_info(project)
430
+ p status_code # => 2xx
431
+ p headers # => { ... }
432
+ p data # => <Project>
433
+ rescue Weblate::ApiError => e
434
+ puts "Error when calling ProjectsApi->projects_create_with_http_info: #{e}"
435
+ end
436
+ ```
437
+
438
+ ### Parameters
439
+
440
+ | Name | Type | Description | Notes |
441
+ | ---- | ---- | ----------- | ----- |
442
+ | **project** | [**Project**](Project.md) | | |
443
+
444
+ ### Return type
445
+
446
+ [**Project**](Project.md)
447
+
448
+ ### Authorization
449
+
450
+ [tokenAuth](../README.md#tokenAuth)
451
+
452
+ ### HTTP request headers
453
+
454
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
455
+ - **Accept**: application/json
456
+
457
+
458
+ ## projects_credits_retrieve
459
+
460
+ > <Project> projects_credits_retrieve(slug)
461
+
462
+
463
+
464
+ Translation projects API.
465
+
466
+ ### Examples
467
+
468
+ ```ruby
469
+ require 'time'
470
+ require 'weblate'
471
+ # setup authorization
472
+ Weblate.configure do |config|
473
+ # Configure API key authorization: tokenAuth
474
+ config.api_key['Authorization'] = 'YOUR API KEY'
475
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
476
+ # config.api_key_prefix['Authorization'] = 'Bearer'
477
+ end
478
+
479
+ api_instance = Weblate::ProjectsApi.new
480
+ slug = 'slug_example' # String |
481
+
482
+ begin
483
+
484
+ result = api_instance.projects_credits_retrieve(slug)
485
+ p result
486
+ rescue Weblate::ApiError => e
487
+ puts "Error when calling ProjectsApi->projects_credits_retrieve: #{e}"
488
+ end
489
+ ```
490
+
491
+ #### Using the projects_credits_retrieve_with_http_info variant
492
+
493
+ This returns an Array which contains the response data, status code and headers.
494
+
495
+ > <Array(<Project>, Integer, Hash)> projects_credits_retrieve_with_http_info(slug)
496
+
497
+ ```ruby
498
+ begin
499
+
500
+ data, status_code, headers = api_instance.projects_credits_retrieve_with_http_info(slug)
501
+ p status_code # => 2xx
502
+ p headers # => { ... }
503
+ p data # => <Project>
504
+ rescue Weblate::ApiError => e
505
+ puts "Error when calling ProjectsApi->projects_credits_retrieve_with_http_info: #{e}"
506
+ end
507
+ ```
508
+
509
+ ### Parameters
510
+
511
+ | Name | Type | Description | Notes |
512
+ | ---- | ---- | ----------- | ----- |
513
+ | **slug** | **String** | | |
514
+
515
+ ### Return type
516
+
517
+ [**Project**](Project.md)
518
+
519
+ ### Authorization
520
+
521
+ [tokenAuth](../README.md#tokenAuth)
522
+
523
+ ### HTTP request headers
524
+
525
+ - **Content-Type**: Not defined
526
+ - **Accept**: application/json
527
+
528
+
529
+ ## projects_destroy
530
+
531
+ > projects_destroy(slug)
532
+
533
+
534
+
535
+ Translation projects API.
536
+
537
+ ### Examples
538
+
539
+ ```ruby
540
+ require 'time'
541
+ require 'weblate'
542
+ # setup authorization
543
+ Weblate.configure do |config|
544
+ # Configure API key authorization: tokenAuth
545
+ config.api_key['Authorization'] = 'YOUR API KEY'
546
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
547
+ # config.api_key_prefix['Authorization'] = 'Bearer'
548
+ end
549
+
550
+ api_instance = Weblate::ProjectsApi.new
551
+ slug = 'slug_example' # String |
552
+
553
+ begin
554
+
555
+ api_instance.projects_destroy(slug)
556
+ rescue Weblate::ApiError => e
557
+ puts "Error when calling ProjectsApi->projects_destroy: #{e}"
558
+ end
559
+ ```
560
+
561
+ #### Using the projects_destroy_with_http_info variant
562
+
563
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
564
+
565
+ > <Array(nil, Integer, Hash)> projects_destroy_with_http_info(slug)
566
+
567
+ ```ruby
568
+ begin
569
+
570
+ data, status_code, headers = api_instance.projects_destroy_with_http_info(slug)
571
+ p status_code # => 2xx
572
+ p headers # => { ... }
573
+ p data # => nil
574
+ rescue Weblate::ApiError => e
575
+ puts "Error when calling ProjectsApi->projects_destroy_with_http_info: #{e}"
576
+ end
577
+ ```
578
+
579
+ ### Parameters
580
+
581
+ | Name | Type | Description | Notes |
582
+ | ---- | ---- | ----------- | ----- |
583
+ | **slug** | **String** | | |
584
+
585
+ ### Return type
586
+
587
+ nil (empty response body)
588
+
589
+ ### Authorization
590
+
591
+ [tokenAuth](../README.md#tokenAuth)
592
+
593
+ ### HTTP request headers
594
+
595
+ - **Content-Type**: Not defined
596
+ - **Accept**: Not defined
597
+
598
+
599
+ ## projects_file_retrieve
600
+
601
+ > <Project> projects_file_retrieve(slug)
602
+
603
+
604
+
605
+ Translation projects API.
606
+
607
+ ### Examples
608
+
609
+ ```ruby
610
+ require 'time'
611
+ require 'weblate'
612
+ # setup authorization
613
+ Weblate.configure do |config|
614
+ # Configure API key authorization: tokenAuth
615
+ config.api_key['Authorization'] = 'YOUR API KEY'
616
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
617
+ # config.api_key_prefix['Authorization'] = 'Bearer'
618
+ end
619
+
620
+ api_instance = Weblate::ProjectsApi.new
621
+ slug = 'slug_example' # String |
622
+
623
+ begin
624
+
625
+ result = api_instance.projects_file_retrieve(slug)
626
+ p result
627
+ rescue Weblate::ApiError => e
628
+ puts "Error when calling ProjectsApi->projects_file_retrieve: #{e}"
629
+ end
630
+ ```
631
+
632
+ #### Using the projects_file_retrieve_with_http_info variant
633
+
634
+ This returns an Array which contains the response data, status code and headers.
635
+
636
+ > <Array(<Project>, Integer, Hash)> projects_file_retrieve_with_http_info(slug)
637
+
638
+ ```ruby
639
+ begin
640
+
641
+ data, status_code, headers = api_instance.projects_file_retrieve_with_http_info(slug)
642
+ p status_code # => 2xx
643
+ p headers # => { ... }
644
+ p data # => <Project>
645
+ rescue Weblate::ApiError => e
646
+ puts "Error when calling ProjectsApi->projects_file_retrieve_with_http_info: #{e}"
647
+ end
648
+ ```
649
+
650
+ ### Parameters
651
+
652
+ | Name | Type | Description | Notes |
653
+ | ---- | ---- | ----------- | ----- |
654
+ | **slug** | **String** | | |
655
+
656
+ ### Return type
657
+
658
+ [**Project**](Project.md)
659
+
660
+ ### Authorization
661
+
662
+ [tokenAuth](../README.md#tokenAuth)
663
+
664
+ ### HTTP request headers
665
+
666
+ - **Content-Type**: Not defined
667
+ - **Accept**: application/json
668
+
669
+
670
+ ## projects_labels_create
671
+
672
+ > <Project> projects_labels_create(slug, project)
673
+
674
+
675
+
676
+ Translation projects API.
677
+
678
+ ### Examples
679
+
680
+ ```ruby
681
+ require 'time'
682
+ require 'weblate'
683
+ # setup authorization
684
+ Weblate.configure do |config|
685
+ # Configure API key authorization: tokenAuth
686
+ config.api_key['Authorization'] = 'YOUR API KEY'
687
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
688
+ # config.api_key_prefix['Authorization'] = 'Bearer'
689
+ end
690
+
691
+ api_instance = Weblate::ProjectsApi.new
692
+ slug = 'slug_example' # String |
693
+ 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'}) # Project |
694
+
695
+ begin
696
+
697
+ result = api_instance.projects_labels_create(slug, project)
698
+ p result
699
+ rescue Weblate::ApiError => e
700
+ puts "Error when calling ProjectsApi->projects_labels_create: #{e}"
701
+ end
702
+ ```
703
+
704
+ #### Using the projects_labels_create_with_http_info variant
705
+
706
+ This returns an Array which contains the response data, status code and headers.
707
+
708
+ > <Array(<Project>, Integer, Hash)> projects_labels_create_with_http_info(slug, project)
709
+
710
+ ```ruby
711
+ begin
712
+
713
+ data, status_code, headers = api_instance.projects_labels_create_with_http_info(slug, project)
714
+ p status_code # => 2xx
715
+ p headers # => { ... }
716
+ p data # => <Project>
717
+ rescue Weblate::ApiError => e
718
+ puts "Error when calling ProjectsApi->projects_labels_create_with_http_info: #{e}"
719
+ end
720
+ ```
721
+
722
+ ### Parameters
723
+
724
+ | Name | Type | Description | Notes |
725
+ | ---- | ---- | ----------- | ----- |
726
+ | **slug** | **String** | | |
727
+ | **project** | [**Project**](Project.md) | | |
728
+
729
+ ### Return type
730
+
731
+ [**Project**](Project.md)
732
+
733
+ ### Authorization
734
+
735
+ [tokenAuth](../README.md#tokenAuth)
736
+
737
+ ### HTTP request headers
738
+
739
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
740
+ - **Accept**: application/json
741
+
742
+
743
+ ## projects_labels_retrieve
744
+
745
+ > <Project> projects_labels_retrieve(slug)
746
+
747
+
748
+
749
+ Translation projects API.
750
+
751
+ ### Examples
752
+
753
+ ```ruby
754
+ require 'time'
755
+ require 'weblate'
756
+ # setup authorization
757
+ Weblate.configure do |config|
758
+ # Configure API key authorization: tokenAuth
759
+ config.api_key['Authorization'] = 'YOUR API KEY'
760
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
761
+ # config.api_key_prefix['Authorization'] = 'Bearer'
762
+ end
763
+
764
+ api_instance = Weblate::ProjectsApi.new
765
+ slug = 'slug_example' # String |
766
+
767
+ begin
768
+
769
+ result = api_instance.projects_labels_retrieve(slug)
770
+ p result
771
+ rescue Weblate::ApiError => e
772
+ puts "Error when calling ProjectsApi->projects_labels_retrieve: #{e}"
773
+ end
774
+ ```
775
+
776
+ #### Using the projects_labels_retrieve_with_http_info variant
777
+
778
+ This returns an Array which contains the response data, status code and headers.
779
+
780
+ > <Array(<Project>, Integer, Hash)> projects_labels_retrieve_with_http_info(slug)
781
+
782
+ ```ruby
783
+ begin
784
+
785
+ data, status_code, headers = api_instance.projects_labels_retrieve_with_http_info(slug)
786
+ p status_code # => 2xx
787
+ p headers # => { ... }
788
+ p data # => <Project>
789
+ rescue Weblate::ApiError => e
790
+ puts "Error when calling ProjectsApi->projects_labels_retrieve_with_http_info: #{e}"
791
+ end
792
+ ```
793
+
794
+ ### Parameters
795
+
796
+ | Name | Type | Description | Notes |
797
+ | ---- | ---- | ----------- | ----- |
798
+ | **slug** | **String** | | |
799
+
800
+ ### Return type
801
+
802
+ [**Project**](Project.md)
803
+
804
+ ### Authorization
805
+
806
+ [tokenAuth](../README.md#tokenAuth)
807
+
808
+ ### HTTP request headers
809
+
810
+ - **Content-Type**: Not defined
811
+ - **Accept**: application/json
812
+
813
+
814
+ ## projects_languages_retrieve
815
+
816
+ > <Project> projects_languages_retrieve(slug)
817
+
818
+
819
+
820
+ Translation projects API.
821
+
822
+ ### Examples
823
+
824
+ ```ruby
825
+ require 'time'
826
+ require 'weblate'
827
+ # setup authorization
828
+ Weblate.configure do |config|
829
+ # Configure API key authorization: tokenAuth
830
+ config.api_key['Authorization'] = 'YOUR API KEY'
831
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
832
+ # config.api_key_prefix['Authorization'] = 'Bearer'
833
+ end
834
+
835
+ api_instance = Weblate::ProjectsApi.new
836
+ slug = 'slug_example' # String |
837
+
838
+ begin
839
+
840
+ result = api_instance.projects_languages_retrieve(slug)
841
+ p result
842
+ rescue Weblate::ApiError => e
843
+ puts "Error when calling ProjectsApi->projects_languages_retrieve: #{e}"
844
+ end
845
+ ```
846
+
847
+ #### Using the projects_languages_retrieve_with_http_info variant
848
+
849
+ This returns an Array which contains the response data, status code and headers.
850
+
851
+ > <Array(<Project>, Integer, Hash)> projects_languages_retrieve_with_http_info(slug)
852
+
853
+ ```ruby
854
+ begin
855
+
856
+ data, status_code, headers = api_instance.projects_languages_retrieve_with_http_info(slug)
857
+ p status_code # => 2xx
858
+ p headers # => { ... }
859
+ p data # => <Project>
860
+ rescue Weblate::ApiError => e
861
+ puts "Error when calling ProjectsApi->projects_languages_retrieve_with_http_info: #{e}"
862
+ end
863
+ ```
864
+
865
+ ### Parameters
866
+
867
+ | Name | Type | Description | Notes |
868
+ | ---- | ---- | ----------- | ----- |
869
+ | **slug** | **String** | | |
870
+
871
+ ### Return type
872
+
873
+ [**Project**](Project.md)
874
+
875
+ ### Authorization
876
+
877
+ [tokenAuth](../README.md#tokenAuth)
878
+
879
+ ### HTTP request headers
880
+
881
+ - **Content-Type**: Not defined
882
+ - **Accept**: application/json
883
+
884
+
885
+ ## projects_list
886
+
887
+ > <PaginatedProjectList> projects_list(opts)
888
+
889
+
890
+
891
+ Translation projects API.
892
+
893
+ ### Examples
894
+
895
+ ```ruby
896
+ require 'time'
897
+ require 'weblate'
898
+ # setup authorization
899
+ Weblate.configure do |config|
900
+ # Configure API key authorization: tokenAuth
901
+ config.api_key['Authorization'] = 'YOUR API KEY'
902
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
903
+ # config.api_key_prefix['Authorization'] = 'Bearer'
904
+ end
905
+
906
+ api_instance = Weblate::ProjectsApi.new
907
+ opts = {
908
+ page: 56, # Integer | A page number within the paginated result set.
909
+ page_size: 56 # Integer | Number of results to return per page.
910
+ }
911
+
912
+ begin
913
+
914
+ result = api_instance.projects_list(opts)
915
+ p result
916
+ rescue Weblate::ApiError => e
917
+ puts "Error when calling ProjectsApi->projects_list: #{e}"
918
+ end
919
+ ```
920
+
921
+ #### Using the projects_list_with_http_info variant
922
+
923
+ This returns an Array which contains the response data, status code and headers.
924
+
925
+ > <Array(<PaginatedProjectList>, Integer, Hash)> projects_list_with_http_info(opts)
926
+
927
+ ```ruby
928
+ begin
929
+
930
+ data, status_code, headers = api_instance.projects_list_with_http_info(opts)
931
+ p status_code # => 2xx
932
+ p headers # => { ... }
933
+ p data # => <PaginatedProjectList>
934
+ rescue Weblate::ApiError => e
935
+ puts "Error when calling ProjectsApi->projects_list_with_http_info: #{e}"
936
+ end
937
+ ```
938
+
939
+ ### Parameters
940
+
941
+ | Name | Type | Description | Notes |
942
+ | ---- | ---- | ----------- | ----- |
943
+ | **page** | **Integer** | A page number within the paginated result set. | [optional] |
944
+ | **page_size** | **Integer** | Number of results to return per page. | [optional] |
945
+
946
+ ### Return type
947
+
948
+ [**PaginatedProjectList**](PaginatedProjectList.md)
949
+
950
+ ### Authorization
951
+
952
+ [tokenAuth](../README.md#tokenAuth)
953
+
954
+ ### HTTP request headers
955
+
956
+ - **Content-Type**: Not defined
957
+ - **Accept**: application/json
958
+
959
+
960
+ ## projects_partial_update
961
+
962
+ > <Project> projects_partial_update(slug, opts)
963
+
964
+
965
+
966
+ Translation projects API.
967
+
968
+ ### Examples
969
+
970
+ ```ruby
971
+ require 'time'
972
+ require 'weblate'
973
+ # setup authorization
974
+ Weblate.configure do |config|
975
+ # Configure API key authorization: tokenAuth
976
+ config.api_key['Authorization'] = 'YOUR API KEY'
977
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
978
+ # config.api_key_prefix['Authorization'] = 'Bearer'
979
+ end
980
+
981
+ api_instance = Weblate::ProjectsApi.new
982
+ slug = 'slug_example' # String |
983
+ opts = {
984
+ patched_project: Weblate::PatchedProject.new # PatchedProject |
985
+ }
986
+
987
+ begin
988
+
989
+ result = api_instance.projects_partial_update(slug, opts)
990
+ p result
991
+ rescue Weblate::ApiError => e
992
+ puts "Error when calling ProjectsApi->projects_partial_update: #{e}"
993
+ end
994
+ ```
995
+
996
+ #### Using the projects_partial_update_with_http_info variant
997
+
998
+ This returns an Array which contains the response data, status code and headers.
999
+
1000
+ > <Array(<Project>, Integer, Hash)> projects_partial_update_with_http_info(slug, opts)
1001
+
1002
+ ```ruby
1003
+ begin
1004
+
1005
+ data, status_code, headers = api_instance.projects_partial_update_with_http_info(slug, opts)
1006
+ p status_code # => 2xx
1007
+ p headers # => { ... }
1008
+ p data # => <Project>
1009
+ rescue Weblate::ApiError => e
1010
+ puts "Error when calling ProjectsApi->projects_partial_update_with_http_info: #{e}"
1011
+ end
1012
+ ```
1013
+
1014
+ ### Parameters
1015
+
1016
+ | Name | Type | Description | Notes |
1017
+ | ---- | ---- | ----------- | ----- |
1018
+ | **slug** | **String** | | |
1019
+ | **patched_project** | [**PatchedProject**](PatchedProject.md) | | [optional] |
1020
+
1021
+ ### Return type
1022
+
1023
+ [**Project**](Project.md)
1024
+
1025
+ ### Authorization
1026
+
1027
+ [tokenAuth](../README.md#tokenAuth)
1028
+
1029
+ ### HTTP request headers
1030
+
1031
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
1032
+ - **Accept**: application/json
1033
+
1034
+
1035
+ ## projects_repository_create
1036
+
1037
+ > <RepoRequest> projects_repository_create(slug, repo_request)
1038
+
1039
+
1040
+
1041
+ Translation projects API.
1042
+
1043
+ ### Examples
1044
+
1045
+ ```ruby
1046
+ require 'time'
1047
+ require 'weblate'
1048
+ # setup authorization
1049
+ Weblate.configure do |config|
1050
+ # Configure API key authorization: tokenAuth
1051
+ config.api_key['Authorization'] = 'YOUR API KEY'
1052
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1053
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1054
+ end
1055
+
1056
+ api_instance = Weblate::ProjectsApi.new
1057
+ slug = 'slug_example' # String |
1058
+ repo_request = Weblate::RepoRequest.new({operation: Weblate::OperationEnum::COMMIT}) # RepoRequest |
1059
+
1060
+ begin
1061
+
1062
+ result = api_instance.projects_repository_create(slug, repo_request)
1063
+ p result
1064
+ rescue Weblate::ApiError => e
1065
+ puts "Error when calling ProjectsApi->projects_repository_create: #{e}"
1066
+ end
1067
+ ```
1068
+
1069
+ #### Using the projects_repository_create_with_http_info variant
1070
+
1071
+ This returns an Array which contains the response data, status code and headers.
1072
+
1073
+ > <Array(<RepoRequest>, Integer, Hash)> projects_repository_create_with_http_info(slug, repo_request)
1074
+
1075
+ ```ruby
1076
+ begin
1077
+
1078
+ data, status_code, headers = api_instance.projects_repository_create_with_http_info(slug, repo_request)
1079
+ p status_code # => 2xx
1080
+ p headers # => { ... }
1081
+ p data # => <RepoRequest>
1082
+ rescue Weblate::ApiError => e
1083
+ puts "Error when calling ProjectsApi->projects_repository_create_with_http_info: #{e}"
1084
+ end
1085
+ ```
1086
+
1087
+ ### Parameters
1088
+
1089
+ | Name | Type | Description | Notes |
1090
+ | ---- | ---- | ----------- | ----- |
1091
+ | **slug** | **String** | | |
1092
+ | **repo_request** | [**RepoRequest**](RepoRequest.md) | | |
1093
+
1094
+ ### Return type
1095
+
1096
+ [**RepoRequest**](RepoRequest.md)
1097
+
1098
+ ### Authorization
1099
+
1100
+ [tokenAuth](../README.md#tokenAuth)
1101
+
1102
+ ### HTTP request headers
1103
+
1104
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
1105
+ - **Accept**: application/json
1106
+
1107
+
1108
+ ## projects_repository_retrieve
1109
+
1110
+ > <RepoRequest> projects_repository_retrieve(slug)
1111
+
1112
+
1113
+
1114
+ Translation projects API.
1115
+
1116
+ ### Examples
1117
+
1118
+ ```ruby
1119
+ require 'time'
1120
+ require 'weblate'
1121
+ # setup authorization
1122
+ Weblate.configure do |config|
1123
+ # Configure API key authorization: tokenAuth
1124
+ config.api_key['Authorization'] = 'YOUR API KEY'
1125
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1126
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1127
+ end
1128
+
1129
+ api_instance = Weblate::ProjectsApi.new
1130
+ slug = 'slug_example' # String |
1131
+
1132
+ begin
1133
+
1134
+ result = api_instance.projects_repository_retrieve(slug)
1135
+ p result
1136
+ rescue Weblate::ApiError => e
1137
+ puts "Error when calling ProjectsApi->projects_repository_retrieve: #{e}"
1138
+ end
1139
+ ```
1140
+
1141
+ #### Using the projects_repository_retrieve_with_http_info variant
1142
+
1143
+ This returns an Array which contains the response data, status code and headers.
1144
+
1145
+ > <Array(<RepoRequest>, Integer, Hash)> projects_repository_retrieve_with_http_info(slug)
1146
+
1147
+ ```ruby
1148
+ begin
1149
+
1150
+ data, status_code, headers = api_instance.projects_repository_retrieve_with_http_info(slug)
1151
+ p status_code # => 2xx
1152
+ p headers # => { ... }
1153
+ p data # => <RepoRequest>
1154
+ rescue Weblate::ApiError => e
1155
+ puts "Error when calling ProjectsApi->projects_repository_retrieve_with_http_info: #{e}"
1156
+ end
1157
+ ```
1158
+
1159
+ ### Parameters
1160
+
1161
+ | Name | Type | Description | Notes |
1162
+ | ---- | ---- | ----------- | ----- |
1163
+ | **slug** | **String** | | |
1164
+
1165
+ ### Return type
1166
+
1167
+ [**RepoRequest**](RepoRequest.md)
1168
+
1169
+ ### Authorization
1170
+
1171
+ [tokenAuth](../README.md#tokenAuth)
1172
+
1173
+ ### HTTP request headers
1174
+
1175
+ - **Content-Type**: Not defined
1176
+ - **Accept**: application/json
1177
+
1178
+
1179
+ ## projects_retrieve
1180
+
1181
+ > <Project> projects_retrieve(slug)
1182
+
1183
+
1184
+
1185
+ Translation projects API.
1186
+
1187
+ ### Examples
1188
+
1189
+ ```ruby
1190
+ require 'time'
1191
+ require 'weblate'
1192
+ # setup authorization
1193
+ Weblate.configure do |config|
1194
+ # Configure API key authorization: tokenAuth
1195
+ config.api_key['Authorization'] = 'YOUR API KEY'
1196
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1197
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1198
+ end
1199
+
1200
+ api_instance = Weblate::ProjectsApi.new
1201
+ slug = 'slug_example' # String |
1202
+
1203
+ begin
1204
+
1205
+ result = api_instance.projects_retrieve(slug)
1206
+ p result
1207
+ rescue Weblate::ApiError => e
1208
+ puts "Error when calling ProjectsApi->projects_retrieve: #{e}"
1209
+ end
1210
+ ```
1211
+
1212
+ #### Using the projects_retrieve_with_http_info variant
1213
+
1214
+ This returns an Array which contains the response data, status code and headers.
1215
+
1216
+ > <Array(<Project>, Integer, Hash)> projects_retrieve_with_http_info(slug)
1217
+
1218
+ ```ruby
1219
+ begin
1220
+
1221
+ data, status_code, headers = api_instance.projects_retrieve_with_http_info(slug)
1222
+ p status_code # => 2xx
1223
+ p headers # => { ... }
1224
+ p data # => <Project>
1225
+ rescue Weblate::ApiError => e
1226
+ puts "Error when calling ProjectsApi->projects_retrieve_with_http_info: #{e}"
1227
+ end
1228
+ ```
1229
+
1230
+ ### Parameters
1231
+
1232
+ | Name | Type | Description | Notes |
1233
+ | ---- | ---- | ----------- | ----- |
1234
+ | **slug** | **String** | | |
1235
+
1236
+ ### Return type
1237
+
1238
+ [**Project**](Project.md)
1239
+
1240
+ ### Authorization
1241
+
1242
+ [tokenAuth](../README.md#tokenAuth)
1243
+
1244
+ ### HTTP request headers
1245
+
1246
+ - **Content-Type**: Not defined
1247
+ - **Accept**: application/json
1248
+
1249
+
1250
+ ## projects_statistics_retrieve
1251
+
1252
+ > <Project> projects_statistics_retrieve(slug)
1253
+
1254
+
1255
+
1256
+ Translation projects API.
1257
+
1258
+ ### Examples
1259
+
1260
+ ```ruby
1261
+ require 'time'
1262
+ require 'weblate'
1263
+ # setup authorization
1264
+ Weblate.configure do |config|
1265
+ # Configure API key authorization: tokenAuth
1266
+ config.api_key['Authorization'] = 'YOUR API KEY'
1267
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1268
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1269
+ end
1270
+
1271
+ api_instance = Weblate::ProjectsApi.new
1272
+ slug = 'slug_example' # String |
1273
+
1274
+ begin
1275
+
1276
+ result = api_instance.projects_statistics_retrieve(slug)
1277
+ p result
1278
+ rescue Weblate::ApiError => e
1279
+ puts "Error when calling ProjectsApi->projects_statistics_retrieve: #{e}"
1280
+ end
1281
+ ```
1282
+
1283
+ #### Using the projects_statistics_retrieve_with_http_info variant
1284
+
1285
+ This returns an Array which contains the response data, status code and headers.
1286
+
1287
+ > <Array(<Project>, Integer, Hash)> projects_statistics_retrieve_with_http_info(slug)
1288
+
1289
+ ```ruby
1290
+ begin
1291
+
1292
+ data, status_code, headers = api_instance.projects_statistics_retrieve_with_http_info(slug)
1293
+ p status_code # => 2xx
1294
+ p headers # => { ... }
1295
+ p data # => <Project>
1296
+ rescue Weblate::ApiError => e
1297
+ puts "Error when calling ProjectsApi->projects_statistics_retrieve_with_http_info: #{e}"
1298
+ end
1299
+ ```
1300
+
1301
+ ### Parameters
1302
+
1303
+ | Name | Type | Description | Notes |
1304
+ | ---- | ---- | ----------- | ----- |
1305
+ | **slug** | **String** | | |
1306
+
1307
+ ### Return type
1308
+
1309
+ [**Project**](Project.md)
1310
+
1311
+ ### Authorization
1312
+
1313
+ [tokenAuth](../README.md#tokenAuth)
1314
+
1315
+ ### HTTP request headers
1316
+
1317
+ - **Content-Type**: Not defined
1318
+ - **Accept**: application/json
1319
+
1320
+
1321
+ ## projects_update
1322
+
1323
+ > <Project> projects_update(slug, project)
1324
+
1325
+
1326
+
1327
+ Translation projects API.
1328
+
1329
+ ### Examples
1330
+
1331
+ ```ruby
1332
+ require 'time'
1333
+ require 'weblate'
1334
+ # setup authorization
1335
+ Weblate.configure do |config|
1336
+ # Configure API key authorization: tokenAuth
1337
+ config.api_key['Authorization'] = 'YOUR API KEY'
1338
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1339
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1340
+ end
1341
+
1342
+ api_instance = Weblate::ProjectsApi.new
1343
+ slug = 'slug_example' # String |
1344
+ 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'}) # Project |
1345
+
1346
+ begin
1347
+
1348
+ result = api_instance.projects_update(slug, project)
1349
+ p result
1350
+ rescue Weblate::ApiError => e
1351
+ puts "Error when calling ProjectsApi->projects_update: #{e}"
1352
+ end
1353
+ ```
1354
+
1355
+ #### Using the projects_update_with_http_info variant
1356
+
1357
+ This returns an Array which contains the response data, status code and headers.
1358
+
1359
+ > <Array(<Project>, Integer, Hash)> projects_update_with_http_info(slug, project)
1360
+
1361
+ ```ruby
1362
+ begin
1363
+
1364
+ data, status_code, headers = api_instance.projects_update_with_http_info(slug, project)
1365
+ p status_code # => 2xx
1366
+ p headers # => { ... }
1367
+ p data # => <Project>
1368
+ rescue Weblate::ApiError => e
1369
+ puts "Error when calling ProjectsApi->projects_update_with_http_info: #{e}"
1370
+ end
1371
+ ```
1372
+
1373
+ ### Parameters
1374
+
1375
+ | Name | Type | Description | Notes |
1376
+ | ---- | ---- | ----------- | ----- |
1377
+ | **slug** | **String** | | |
1378
+ | **project** | [**Project**](Project.md) | | |
1379
+
1380
+ ### Return type
1381
+
1382
+ [**Project**](Project.md)
1383
+
1384
+ ### Authorization
1385
+
1386
+ [tokenAuth](../README.md#tokenAuth)
1387
+
1388
+ ### HTTP request headers
1389
+
1390
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
1391
+ - **Accept**: application/json
1392
+