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