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