weblate 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
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,815 @@
1
+ # Weblate::ScreenshotsApi
2
+
3
+ All URIs are relative to *https://hosted.weblate.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**screenshots_create**](ScreenshotsApi.md#screenshots_create) | **POST** /screenshots/ | |
8
+ | [**screenshots_destroy**](ScreenshotsApi.md#screenshots_destroy) | **DELETE** /screenshots/{id}/ | |
9
+ | [**screenshots_file_create**](ScreenshotsApi.md#screenshots_file_create) | **POST** /screenshots/{id}/file/ | |
10
+ | [**screenshots_file_retrieve**](ScreenshotsApi.md#screenshots_file_retrieve) | **GET** /screenshots/{id}/file/ | |
11
+ | [**screenshots_file_update**](ScreenshotsApi.md#screenshots_file_update) | **PUT** /screenshots/{id}/file/ | |
12
+ | [**screenshots_list**](ScreenshotsApi.md#screenshots_list) | **GET** /screenshots/ | |
13
+ | [**screenshots_partial_update**](ScreenshotsApi.md#screenshots_partial_update) | **PATCH** /screenshots/{id}/ | |
14
+ | [**screenshots_retrieve**](ScreenshotsApi.md#screenshots_retrieve) | **GET** /screenshots/{id}/ | |
15
+ | [**screenshots_units_create**](ScreenshotsApi.md#screenshots_units_create) | **POST** /screenshots/{id}/units/ | |
16
+ | [**screenshots_units_destroy**](ScreenshotsApi.md#screenshots_units_destroy) | **DELETE** /screenshots/{id}/units/{unit_id}/ | |
17
+ | [**screenshots_update**](ScreenshotsApi.md#screenshots_update) | **PUT** /screenshots/{id}/ | |
18
+
19
+
20
+ ## screenshots_create
21
+
22
+ > <Screenshot> screenshots_create(screenshot)
23
+
24
+
25
+
26
+ Screenshots API.
27
+
28
+ ### Examples
29
+
30
+ ```ruby
31
+ require 'time'
32
+ require 'weblate'
33
+ # setup authorization
34
+ Weblate.configure do |config|
35
+ # Configure API key authorization: tokenAuth
36
+ config.api_key['Authorization'] = 'YOUR API KEY'
37
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
38
+ # config.api_key_prefix['Authorization'] = 'Bearer'
39
+ end
40
+
41
+ api_instance = Weblate::ScreenshotsApi.new
42
+ screenshot = Weblate::Screenshot.new({id: 37, name: 'name_example', translation: 'translation_example', file_url: 'file_url_example', units: ['units_example'], url: 'url_example'}) # Screenshot |
43
+
44
+ begin
45
+
46
+ result = api_instance.screenshots_create(screenshot)
47
+ p result
48
+ rescue Weblate::ApiError => e
49
+ puts "Error when calling ScreenshotsApi->screenshots_create: #{e}"
50
+ end
51
+ ```
52
+
53
+ #### Using the screenshots_create_with_http_info variant
54
+
55
+ This returns an Array which contains the response data, status code and headers.
56
+
57
+ > <Array(<Screenshot>, Integer, Hash)> screenshots_create_with_http_info(screenshot)
58
+
59
+ ```ruby
60
+ begin
61
+
62
+ data, status_code, headers = api_instance.screenshots_create_with_http_info(screenshot)
63
+ p status_code # => 2xx
64
+ p headers # => { ... }
65
+ p data # => <Screenshot>
66
+ rescue Weblate::ApiError => e
67
+ puts "Error when calling ScreenshotsApi->screenshots_create_with_http_info: #{e}"
68
+ end
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+ | Name | Type | Description | Notes |
74
+ | ---- | ---- | ----------- | ----- |
75
+ | **screenshot** | [**Screenshot**](Screenshot.md) | | |
76
+
77
+ ### Return type
78
+
79
+ [**Screenshot**](Screenshot.md)
80
+
81
+ ### Authorization
82
+
83
+ [tokenAuth](../README.md#tokenAuth)
84
+
85
+ ### HTTP request headers
86
+
87
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
88
+ - **Accept**: application/json
89
+
90
+
91
+ ## screenshots_destroy
92
+
93
+ > screenshots_destroy(id)
94
+
95
+
96
+
97
+ Screenshots API.
98
+
99
+ ### Examples
100
+
101
+ ```ruby
102
+ require 'time'
103
+ require 'weblate'
104
+ # setup authorization
105
+ Weblate.configure do |config|
106
+ # Configure API key authorization: tokenAuth
107
+ config.api_key['Authorization'] = 'YOUR API KEY'
108
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
109
+ # config.api_key_prefix['Authorization'] = 'Bearer'
110
+ end
111
+
112
+ api_instance = Weblate::ScreenshotsApi.new
113
+ id = 'id_example' # String |
114
+
115
+ begin
116
+
117
+ api_instance.screenshots_destroy(id)
118
+ rescue Weblate::ApiError => e
119
+ puts "Error when calling ScreenshotsApi->screenshots_destroy: #{e}"
120
+ end
121
+ ```
122
+
123
+ #### Using the screenshots_destroy_with_http_info variant
124
+
125
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
126
+
127
+ > <Array(nil, Integer, Hash)> screenshots_destroy_with_http_info(id)
128
+
129
+ ```ruby
130
+ begin
131
+
132
+ data, status_code, headers = api_instance.screenshots_destroy_with_http_info(id)
133
+ p status_code # => 2xx
134
+ p headers # => { ... }
135
+ p data # => nil
136
+ rescue Weblate::ApiError => e
137
+ puts "Error when calling ScreenshotsApi->screenshots_destroy_with_http_info: #{e}"
138
+ end
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ | Name | Type | Description | Notes |
144
+ | ---- | ---- | ----------- | ----- |
145
+ | **id** | **String** | | |
146
+
147
+ ### Return type
148
+
149
+ nil (empty response body)
150
+
151
+ ### Authorization
152
+
153
+ [tokenAuth](../README.md#tokenAuth)
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: Not defined
158
+ - **Accept**: Not defined
159
+
160
+
161
+ ## screenshots_file_create
162
+
163
+ > <ScreenshotFile> screenshots_file_create(id, image)
164
+
165
+
166
+
167
+ Screenshots API.
168
+
169
+ ### Examples
170
+
171
+ ```ruby
172
+ require 'time'
173
+ require 'weblate'
174
+ # setup authorization
175
+ Weblate.configure do |config|
176
+ # Configure API key authorization: tokenAuth
177
+ config.api_key['Authorization'] = 'YOUR API KEY'
178
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
179
+ # config.api_key_prefix['Authorization'] = 'Bearer'
180
+ end
181
+
182
+ api_instance = Weblate::ScreenshotsApi.new
183
+ id = 'id_example' # String |
184
+ image = 'image_example' # String |
185
+
186
+ begin
187
+
188
+ result = api_instance.screenshots_file_create(id, image)
189
+ p result
190
+ rescue Weblate::ApiError => e
191
+ puts "Error when calling ScreenshotsApi->screenshots_file_create: #{e}"
192
+ end
193
+ ```
194
+
195
+ #### Using the screenshots_file_create_with_http_info variant
196
+
197
+ This returns an Array which contains the response data, status code and headers.
198
+
199
+ > <Array(<ScreenshotFile>, Integer, Hash)> screenshots_file_create_with_http_info(id, image)
200
+
201
+ ```ruby
202
+ begin
203
+
204
+ data, status_code, headers = api_instance.screenshots_file_create_with_http_info(id, image)
205
+ p status_code # => 2xx
206
+ p headers # => { ... }
207
+ p data # => <ScreenshotFile>
208
+ rescue Weblate::ApiError => e
209
+ puts "Error when calling ScreenshotsApi->screenshots_file_create_with_http_info: #{e}"
210
+ end
211
+ ```
212
+
213
+ ### Parameters
214
+
215
+ | Name | Type | Description | Notes |
216
+ | ---- | ---- | ----------- | ----- |
217
+ | **id** | **String** | | |
218
+ | **image** | **String** | | |
219
+
220
+ ### Return type
221
+
222
+ [**ScreenshotFile**](ScreenshotFile.md)
223
+
224
+ ### Authorization
225
+
226
+ [tokenAuth](../README.md#tokenAuth)
227
+
228
+ ### HTTP request headers
229
+
230
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
231
+ - **Accept**: application/json
232
+
233
+
234
+ ## screenshots_file_retrieve
235
+
236
+ > <ScreenshotFile> screenshots_file_retrieve(id)
237
+
238
+
239
+
240
+ Screenshots API.
241
+
242
+ ### Examples
243
+
244
+ ```ruby
245
+ require 'time'
246
+ require 'weblate'
247
+ # setup authorization
248
+ Weblate.configure do |config|
249
+ # Configure API key authorization: tokenAuth
250
+ config.api_key['Authorization'] = 'YOUR API KEY'
251
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
252
+ # config.api_key_prefix['Authorization'] = 'Bearer'
253
+ end
254
+
255
+ api_instance = Weblate::ScreenshotsApi.new
256
+ id = 'id_example' # String |
257
+
258
+ begin
259
+
260
+ result = api_instance.screenshots_file_retrieve(id)
261
+ p result
262
+ rescue Weblate::ApiError => e
263
+ puts "Error when calling ScreenshotsApi->screenshots_file_retrieve: #{e}"
264
+ end
265
+ ```
266
+
267
+ #### Using the screenshots_file_retrieve_with_http_info variant
268
+
269
+ This returns an Array which contains the response data, status code and headers.
270
+
271
+ > <Array(<ScreenshotFile>, Integer, Hash)> screenshots_file_retrieve_with_http_info(id)
272
+
273
+ ```ruby
274
+ begin
275
+
276
+ data, status_code, headers = api_instance.screenshots_file_retrieve_with_http_info(id)
277
+ p status_code # => 2xx
278
+ p headers # => { ... }
279
+ p data # => <ScreenshotFile>
280
+ rescue Weblate::ApiError => e
281
+ puts "Error when calling ScreenshotsApi->screenshots_file_retrieve_with_http_info: #{e}"
282
+ end
283
+ ```
284
+
285
+ ### Parameters
286
+
287
+ | Name | Type | Description | Notes |
288
+ | ---- | ---- | ----------- | ----- |
289
+ | **id** | **String** | | |
290
+
291
+ ### Return type
292
+
293
+ [**ScreenshotFile**](ScreenshotFile.md)
294
+
295
+ ### Authorization
296
+
297
+ [tokenAuth](../README.md#tokenAuth)
298
+
299
+ ### HTTP request headers
300
+
301
+ - **Content-Type**: Not defined
302
+ - **Accept**: application/json
303
+
304
+
305
+ ## screenshots_file_update
306
+
307
+ > <ScreenshotFile> screenshots_file_update(id, image)
308
+
309
+
310
+
311
+ Screenshots API.
312
+
313
+ ### Examples
314
+
315
+ ```ruby
316
+ require 'time'
317
+ require 'weblate'
318
+ # setup authorization
319
+ Weblate.configure do |config|
320
+ # Configure API key authorization: tokenAuth
321
+ config.api_key['Authorization'] = 'YOUR API KEY'
322
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
323
+ # config.api_key_prefix['Authorization'] = 'Bearer'
324
+ end
325
+
326
+ api_instance = Weblate::ScreenshotsApi.new
327
+ id = 'id_example' # String |
328
+ image = 'image_example' # String |
329
+
330
+ begin
331
+
332
+ result = api_instance.screenshots_file_update(id, image)
333
+ p result
334
+ rescue Weblate::ApiError => e
335
+ puts "Error when calling ScreenshotsApi->screenshots_file_update: #{e}"
336
+ end
337
+ ```
338
+
339
+ #### Using the screenshots_file_update_with_http_info variant
340
+
341
+ This returns an Array which contains the response data, status code and headers.
342
+
343
+ > <Array(<ScreenshotFile>, Integer, Hash)> screenshots_file_update_with_http_info(id, image)
344
+
345
+ ```ruby
346
+ begin
347
+
348
+ data, status_code, headers = api_instance.screenshots_file_update_with_http_info(id, image)
349
+ p status_code # => 2xx
350
+ p headers # => { ... }
351
+ p data # => <ScreenshotFile>
352
+ rescue Weblate::ApiError => e
353
+ puts "Error when calling ScreenshotsApi->screenshots_file_update_with_http_info: #{e}"
354
+ end
355
+ ```
356
+
357
+ ### Parameters
358
+
359
+ | Name | Type | Description | Notes |
360
+ | ---- | ---- | ----------- | ----- |
361
+ | **id** | **String** | | |
362
+ | **image** | **String** | | |
363
+
364
+ ### Return type
365
+
366
+ [**ScreenshotFile**](ScreenshotFile.md)
367
+
368
+ ### Authorization
369
+
370
+ [tokenAuth](../README.md#tokenAuth)
371
+
372
+ ### HTTP request headers
373
+
374
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
375
+ - **Accept**: application/json
376
+
377
+
378
+ ## screenshots_list
379
+
380
+ > <PaginatedScreenshotList> screenshots_list(opts)
381
+
382
+
383
+
384
+ Screenshots API.
385
+
386
+ ### Examples
387
+
388
+ ```ruby
389
+ require 'time'
390
+ require 'weblate'
391
+ # setup authorization
392
+ Weblate.configure do |config|
393
+ # Configure API key authorization: tokenAuth
394
+ config.api_key['Authorization'] = 'YOUR API KEY'
395
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
396
+ # config.api_key_prefix['Authorization'] = 'Bearer'
397
+ end
398
+
399
+ api_instance = Weblate::ScreenshotsApi.new
400
+ opts = {
401
+ page: 56, # Integer | A page number within the paginated result set.
402
+ page_size: 56 # Integer | Number of results to return per page.
403
+ }
404
+
405
+ begin
406
+
407
+ result = api_instance.screenshots_list(opts)
408
+ p result
409
+ rescue Weblate::ApiError => e
410
+ puts "Error when calling ScreenshotsApi->screenshots_list: #{e}"
411
+ end
412
+ ```
413
+
414
+ #### Using the screenshots_list_with_http_info variant
415
+
416
+ This returns an Array which contains the response data, status code and headers.
417
+
418
+ > <Array(<PaginatedScreenshotList>, Integer, Hash)> screenshots_list_with_http_info(opts)
419
+
420
+ ```ruby
421
+ begin
422
+
423
+ data, status_code, headers = api_instance.screenshots_list_with_http_info(opts)
424
+ p status_code # => 2xx
425
+ p headers # => { ... }
426
+ p data # => <PaginatedScreenshotList>
427
+ rescue Weblate::ApiError => e
428
+ puts "Error when calling ScreenshotsApi->screenshots_list_with_http_info: #{e}"
429
+ end
430
+ ```
431
+
432
+ ### Parameters
433
+
434
+ | Name | Type | Description | Notes |
435
+ | ---- | ---- | ----------- | ----- |
436
+ | **page** | **Integer** | A page number within the paginated result set. | [optional] |
437
+ | **page_size** | **Integer** | Number of results to return per page. | [optional] |
438
+
439
+ ### Return type
440
+
441
+ [**PaginatedScreenshotList**](PaginatedScreenshotList.md)
442
+
443
+ ### Authorization
444
+
445
+ [tokenAuth](../README.md#tokenAuth)
446
+
447
+ ### HTTP request headers
448
+
449
+ - **Content-Type**: Not defined
450
+ - **Accept**: application/json
451
+
452
+
453
+ ## screenshots_partial_update
454
+
455
+ > <Screenshot> screenshots_partial_update(id, opts)
456
+
457
+
458
+
459
+ Screenshots API.
460
+
461
+ ### Examples
462
+
463
+ ```ruby
464
+ require 'time'
465
+ require 'weblate'
466
+ # setup authorization
467
+ Weblate.configure do |config|
468
+ # Configure API key authorization: tokenAuth
469
+ config.api_key['Authorization'] = 'YOUR API KEY'
470
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
471
+ # config.api_key_prefix['Authorization'] = 'Bearer'
472
+ end
473
+
474
+ api_instance = Weblate::ScreenshotsApi.new
475
+ id = 'id_example' # String |
476
+ opts = {
477
+ patched_screenshot: Weblate::PatchedScreenshot.new # PatchedScreenshot |
478
+ }
479
+
480
+ begin
481
+
482
+ result = api_instance.screenshots_partial_update(id, opts)
483
+ p result
484
+ rescue Weblate::ApiError => e
485
+ puts "Error when calling ScreenshotsApi->screenshots_partial_update: #{e}"
486
+ end
487
+ ```
488
+
489
+ #### Using the screenshots_partial_update_with_http_info variant
490
+
491
+ This returns an Array which contains the response data, status code and headers.
492
+
493
+ > <Array(<Screenshot>, Integer, Hash)> screenshots_partial_update_with_http_info(id, opts)
494
+
495
+ ```ruby
496
+ begin
497
+
498
+ data, status_code, headers = api_instance.screenshots_partial_update_with_http_info(id, opts)
499
+ p status_code # => 2xx
500
+ p headers # => { ... }
501
+ p data # => <Screenshot>
502
+ rescue Weblate::ApiError => e
503
+ puts "Error when calling ScreenshotsApi->screenshots_partial_update_with_http_info: #{e}"
504
+ end
505
+ ```
506
+
507
+ ### Parameters
508
+
509
+ | Name | Type | Description | Notes |
510
+ | ---- | ---- | ----------- | ----- |
511
+ | **id** | **String** | | |
512
+ | **patched_screenshot** | [**PatchedScreenshot**](PatchedScreenshot.md) | | [optional] |
513
+
514
+ ### Return type
515
+
516
+ [**Screenshot**](Screenshot.md)
517
+
518
+ ### Authorization
519
+
520
+ [tokenAuth](../README.md#tokenAuth)
521
+
522
+ ### HTTP request headers
523
+
524
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
525
+ - **Accept**: application/json
526
+
527
+
528
+ ## screenshots_retrieve
529
+
530
+ > <Screenshot> screenshots_retrieve(id)
531
+
532
+
533
+
534
+ Screenshots API.
535
+
536
+ ### Examples
537
+
538
+ ```ruby
539
+ require 'time'
540
+ require 'weblate'
541
+ # setup authorization
542
+ Weblate.configure do |config|
543
+ # Configure API key authorization: tokenAuth
544
+ config.api_key['Authorization'] = 'YOUR API KEY'
545
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
546
+ # config.api_key_prefix['Authorization'] = 'Bearer'
547
+ end
548
+
549
+ api_instance = Weblate::ScreenshotsApi.new
550
+ id = 'id_example' # String |
551
+
552
+ begin
553
+
554
+ result = api_instance.screenshots_retrieve(id)
555
+ p result
556
+ rescue Weblate::ApiError => e
557
+ puts "Error when calling ScreenshotsApi->screenshots_retrieve: #{e}"
558
+ end
559
+ ```
560
+
561
+ #### Using the screenshots_retrieve_with_http_info variant
562
+
563
+ This returns an Array which contains the response data, status code and headers.
564
+
565
+ > <Array(<Screenshot>, Integer, Hash)> screenshots_retrieve_with_http_info(id)
566
+
567
+ ```ruby
568
+ begin
569
+
570
+ data, status_code, headers = api_instance.screenshots_retrieve_with_http_info(id)
571
+ p status_code # => 2xx
572
+ p headers # => { ... }
573
+ p data # => <Screenshot>
574
+ rescue Weblate::ApiError => e
575
+ puts "Error when calling ScreenshotsApi->screenshots_retrieve_with_http_info: #{e}"
576
+ end
577
+ ```
578
+
579
+ ### Parameters
580
+
581
+ | Name | Type | Description | Notes |
582
+ | ---- | ---- | ----------- | ----- |
583
+ | **id** | **String** | | |
584
+
585
+ ### Return type
586
+
587
+ [**Screenshot**](Screenshot.md)
588
+
589
+ ### Authorization
590
+
591
+ [tokenAuth](../README.md#tokenAuth)
592
+
593
+ ### HTTP request headers
594
+
595
+ - **Content-Type**: Not defined
596
+ - **Accept**: application/json
597
+
598
+
599
+ ## screenshots_units_create
600
+
601
+ > <Screenshot> screenshots_units_create(id, screenshot)
602
+
603
+
604
+
605
+ Screenshots 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::ScreenshotsApi.new
621
+ id = 'id_example' # String |
622
+ screenshot = Weblate::Screenshot.new({id: 37, name: 'name_example', translation: 'translation_example', file_url: 'file_url_example', units: ['units_example'], url: 'url_example'}) # Screenshot |
623
+
624
+ begin
625
+
626
+ result = api_instance.screenshots_units_create(id, screenshot)
627
+ p result
628
+ rescue Weblate::ApiError => e
629
+ puts "Error when calling ScreenshotsApi->screenshots_units_create: #{e}"
630
+ end
631
+ ```
632
+
633
+ #### Using the screenshots_units_create_with_http_info variant
634
+
635
+ This returns an Array which contains the response data, status code and headers.
636
+
637
+ > <Array(<Screenshot>, Integer, Hash)> screenshots_units_create_with_http_info(id, screenshot)
638
+
639
+ ```ruby
640
+ begin
641
+
642
+ data, status_code, headers = api_instance.screenshots_units_create_with_http_info(id, screenshot)
643
+ p status_code # => 2xx
644
+ p headers # => { ... }
645
+ p data # => <Screenshot>
646
+ rescue Weblate::ApiError => e
647
+ puts "Error when calling ScreenshotsApi->screenshots_units_create_with_http_info: #{e}"
648
+ end
649
+ ```
650
+
651
+ ### Parameters
652
+
653
+ | Name | Type | Description | Notes |
654
+ | ---- | ---- | ----------- | ----- |
655
+ | **id** | **String** | | |
656
+ | **screenshot** | [**Screenshot**](Screenshot.md) | | |
657
+
658
+ ### Return type
659
+
660
+ [**Screenshot**](Screenshot.md)
661
+
662
+ ### Authorization
663
+
664
+ [tokenAuth](../README.md#tokenAuth)
665
+
666
+ ### HTTP request headers
667
+
668
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
669
+ - **Accept**: application/json
670
+
671
+
672
+ ## screenshots_units_destroy
673
+
674
+ > screenshots_units_destroy(id, unit_id)
675
+
676
+
677
+
678
+ Screenshots API.
679
+
680
+ ### Examples
681
+
682
+ ```ruby
683
+ require 'time'
684
+ require 'weblate'
685
+ # setup authorization
686
+ Weblate.configure do |config|
687
+ # Configure API key authorization: tokenAuth
688
+ config.api_key['Authorization'] = 'YOUR API KEY'
689
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
690
+ # config.api_key_prefix['Authorization'] = 'Bearer'
691
+ end
692
+
693
+ api_instance = Weblate::ScreenshotsApi.new
694
+ id = 'id_example' # String |
695
+ unit_id = 'unit_id_example' # String |
696
+
697
+ begin
698
+
699
+ api_instance.screenshots_units_destroy(id, unit_id)
700
+ rescue Weblate::ApiError => e
701
+ puts "Error when calling ScreenshotsApi->screenshots_units_destroy: #{e}"
702
+ end
703
+ ```
704
+
705
+ #### Using the screenshots_units_destroy_with_http_info variant
706
+
707
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
708
+
709
+ > <Array(nil, Integer, Hash)> screenshots_units_destroy_with_http_info(id, unit_id)
710
+
711
+ ```ruby
712
+ begin
713
+
714
+ data, status_code, headers = api_instance.screenshots_units_destroy_with_http_info(id, unit_id)
715
+ p status_code # => 2xx
716
+ p headers # => { ... }
717
+ p data # => nil
718
+ rescue Weblate::ApiError => e
719
+ puts "Error when calling ScreenshotsApi->screenshots_units_destroy_with_http_info: #{e}"
720
+ end
721
+ ```
722
+
723
+ ### Parameters
724
+
725
+ | Name | Type | Description | Notes |
726
+ | ---- | ---- | ----------- | ----- |
727
+ | **id** | **String** | | |
728
+ | **unit_id** | **String** | | |
729
+
730
+ ### Return type
731
+
732
+ nil (empty response body)
733
+
734
+ ### Authorization
735
+
736
+ [tokenAuth](../README.md#tokenAuth)
737
+
738
+ ### HTTP request headers
739
+
740
+ - **Content-Type**: Not defined
741
+ - **Accept**: Not defined
742
+
743
+
744
+ ## screenshots_update
745
+
746
+ > <Screenshot> screenshots_update(id, screenshot)
747
+
748
+
749
+
750
+ Screenshots API.
751
+
752
+ ### Examples
753
+
754
+ ```ruby
755
+ require 'time'
756
+ require 'weblate'
757
+ # setup authorization
758
+ Weblate.configure do |config|
759
+ # Configure API key authorization: tokenAuth
760
+ config.api_key['Authorization'] = 'YOUR API KEY'
761
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
762
+ # config.api_key_prefix['Authorization'] = 'Bearer'
763
+ end
764
+
765
+ api_instance = Weblate::ScreenshotsApi.new
766
+ id = 'id_example' # String |
767
+ screenshot = Weblate::Screenshot.new({id: 37, name: 'name_example', translation: 'translation_example', file_url: 'file_url_example', units: ['units_example'], url: 'url_example'}) # Screenshot |
768
+
769
+ begin
770
+
771
+ result = api_instance.screenshots_update(id, screenshot)
772
+ p result
773
+ rescue Weblate::ApiError => e
774
+ puts "Error when calling ScreenshotsApi->screenshots_update: #{e}"
775
+ end
776
+ ```
777
+
778
+ #### Using the screenshots_update_with_http_info variant
779
+
780
+ This returns an Array which contains the response data, status code and headers.
781
+
782
+ > <Array(<Screenshot>, Integer, Hash)> screenshots_update_with_http_info(id, screenshot)
783
+
784
+ ```ruby
785
+ begin
786
+
787
+ data, status_code, headers = api_instance.screenshots_update_with_http_info(id, screenshot)
788
+ p status_code # => 2xx
789
+ p headers # => { ... }
790
+ p data # => <Screenshot>
791
+ rescue Weblate::ApiError => e
792
+ puts "Error when calling ScreenshotsApi->screenshots_update_with_http_info: #{e}"
793
+ end
794
+ ```
795
+
796
+ ### Parameters
797
+
798
+ | Name | Type | Description | Notes |
799
+ | ---- | ---- | ----------- | ----- |
800
+ | **id** | **String** | | |
801
+ | **screenshot** | [**Screenshot**](Screenshot.md) | | |
802
+
803
+ ### Return type
804
+
805
+ [**Screenshot**](Screenshot.md)
806
+
807
+ ### Authorization
808
+
809
+ [tokenAuth](../README.md#tokenAuth)
810
+
811
+ ### HTTP request headers
812
+
813
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
814
+ - **Accept**: application/json
815
+