kleister 1.14.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +3 -3
  4. data/lib/kleister/api/auth_api.rb +137 -73
  5. data/lib/kleister/api/fabric_api.rb +37 -42
  6. data/lib/kleister/api/forge_api.rb +37 -42
  7. data/lib/kleister/api/{team_api.rb → group_api.rb} +359 -379
  8. data/lib/kleister/api/minecraft_api.rb +37 -42
  9. data/lib/kleister/api/mod_api.rb +471 -232
  10. data/lib/kleister/api/neoforge_api.rb +37 -42
  11. data/lib/kleister/api/pack_api.rb +215 -240
  12. data/lib/kleister/api/profile_api.rb +16 -16
  13. data/lib/kleister/api/quilt_api.rb +37 -42
  14. data/lib/kleister/api/user_api.rb +259 -279
  15. data/lib/kleister/api_client.rb +1 -1
  16. data/lib/kleister/api_error.rb +1 -1
  17. data/lib/kleister/configuration.rb +1 -8
  18. data/lib/kleister/models/{build_version_params.rb → attach_build_to_version_request.rb} +8 -20
  19. data/lib/kleister/models/{quilt_build_params.rb → attach_minecraft_to_build_request.rb} +8 -20
  20. data/lib/kleister/models/auth_token.rb +1 -1
  21. data/lib/kleister/models/auth_verify.rb +1 -1
  22. data/lib/kleister/models/build.rb +3 -13
  23. data/lib/kleister/models/build_version.rb +2 -3
  24. data/lib/kleister/models/{pack_back.rb → create_build_request.rb} +76 -58
  25. data/lib/kleister/models/{mods.rb → create_group_request.rb} +19 -18
  26. data/lib/kleister/models/{pack_icon.rb → create_mod_request.rb} +48 -54
  27. data/lib/kleister/models/{forge_builds.rb → create_pack_request.rb} +33 -23
  28. data/lib/kleister/models/create_user_request.rb +257 -0
  29. data/lib/kleister/models/{builds.rb → create_version_request.rb} +25 -23
  30. data/lib/kleister/models/{packs.rb → delete_group_from_mod_request.rb} +20 -21
  31. data/lib/kleister/models/delete_group_from_pack_request.rb +219 -0
  32. data/lib/kleister/models/delete_pack_from_group_request.rb +219 -0
  33. data/lib/kleister/models/{users.rb → delete_pack_from_user_request.rb} +20 -21
  34. data/lib/kleister/models/fabric.rb +1 -1
  35. data/lib/kleister/models/forge.rb +1 -1
  36. data/lib/kleister/models/{team.rb → group.rb} +5 -5
  37. data/lib/kleister/models/{team_mod.rb → group_mod.rb} +21 -21
  38. data/lib/kleister/models/{team_pack.rb → group_pack.rb} +21 -21
  39. data/lib/kleister/models/{build_versions.rb → list_build_versions200_response.rb} +56 -18
  40. data/lib/kleister/models/{pack_teams.rb → list_builds200_response.rb} +59 -20
  41. data/lib/kleister/models/{fabric_builds.rb → list_fabric_builds200_response.rb} +56 -18
  42. data/lib/kleister/models/{fabrics.rb → list_fabrics200_response.rb} +52 -13
  43. data/lib/kleister/models/list_forge_builds200_response.rb +266 -0
  44. data/lib/kleister/models/{forges.rb → list_forges200_response.rb} +52 -13
  45. data/lib/kleister/models/list_group_mods200_response.rb +266 -0
  46. data/lib/kleister/models/list_group_packs200_response.rb +266 -0
  47. data/lib/kleister/models/list_group_users200_response.rb +266 -0
  48. data/lib/kleister/models/list_groups200_response.rb +259 -0
  49. data/lib/kleister/models/{minecraft_builds.rb → list_minecraft_builds200_response.rb} +56 -18
  50. data/lib/kleister/models/list_minecrafts200_response.rb +259 -0
  51. data/lib/kleister/models/list_mod_groups200_response.rb +266 -0
  52. data/lib/kleister/models/list_mod_users200_response.rb +266 -0
  53. data/lib/kleister/models/{team_mods.rb → list_mods200_response.rb} +52 -20
  54. data/lib/kleister/models/{neoforge_builds.rb → list_neoforge_builds200_response.rb} +56 -18
  55. data/lib/kleister/models/{neoforges.rb → list_neoforges200_response.rb} +52 -13
  56. data/lib/kleister/models/list_pack_groups200_response.rb +266 -0
  57. data/lib/kleister/models/{pack_users.rb → list_pack_users200_response.rb} +56 -17
  58. data/lib/kleister/models/list_packs200_response.rb +259 -0
  59. data/lib/kleister/models/{mod_teams.rb → list_providers200_response.rb} +31 -23
  60. data/lib/kleister/models/{quilt_builds.rb → list_quilt_builds200_response.rb} +56 -17
  61. data/lib/kleister/models/{quilts.rb → list_quilts200_response.rb} +52 -13
  62. data/lib/kleister/models/list_user_groups200_response.rb +266 -0
  63. data/lib/kleister/models/{user_teams.rb → list_user_mods200_response.rb} +59 -20
  64. data/lib/kleister/models/{user_packs.rb → list_user_packs200_response.rb} +56 -17
  65. data/lib/kleister/models/{team_users.rb → list_users200_response.rb} +52 -20
  66. data/lib/kleister/models/{version_builds.rb → list_version_builds200_response.rb} +56 -18
  67. data/lib/kleister/models/{versions.rb → list_versions200_response.rb} +52 -13
  68. data/lib/kleister/models/{auth_login.rb → login_auth_request.rb} +4 -4
  69. data/lib/kleister/models/minecraft.rb +1 -1
  70. data/lib/kleister/models/mod.rb +10 -3
  71. data/lib/kleister/models/{team_packs.rb → mod_avatar.rb} +32 -23
  72. data/lib/kleister/models/neoforge.rb +1 -1
  73. data/lib/kleister/models/notification.rb +2 -3
  74. data/lib/kleister/models/pack.rb +8 -22
  75. data/lib/kleister/models/{minecrafts.rb → pack_avatar.rb} +34 -18
  76. data/lib/kleister/models/{mod_users.rb → permit_group_mod_request.rb} +29 -25
  77. data/lib/kleister/models/{forge_build_params.rb → permit_group_pack_request.rb} +15 -17
  78. data/lib/kleister/models/{fabric_build_params.rb → permit_pack_group_request.rb} +24 -26
  79. data/lib/kleister/models/{user_mods.rb → permit_pack_user_request.rb} +29 -25
  80. data/lib/kleister/models/profile.rb +20 -20
  81. data/lib/kleister/models/provider.rb +1 -1
  82. data/lib/kleister/models/quilt.rb +1 -1
  83. data/lib/kleister/models/{teams.rb → redirect_auth_request.rb} +20 -21
  84. data/lib/kleister/models/update_profile_request.rb +237 -0
  85. data/lib/kleister/models/update_user_request.rb +253 -0
  86. data/lib/kleister/models/user.rb +1 -1
  87. data/lib/kleister/models/user_auth.rb +1 -1
  88. data/lib/kleister/models/{user_team.rb → user_group.rb} +23 -23
  89. data/lib/kleister/models/user_mod.rb +1 -1
  90. data/lib/kleister/models/user_pack.rb +1 -1
  91. data/lib/kleister/models/validation.rb +1 -1
  92. data/lib/kleister/models/version.rb +3 -11
  93. data/lib/kleister/models/version_file.rb +3 -18
  94. data/lib/kleister/version.rb +2 -2
  95. data/lib/kleister.rb +57 -56
  96. metadata +58 -57
  97. data/lib/kleister/models/minecraft_build_params.rb +0 -233
  98. data/lib/kleister/models/mod_team_params.rb +0 -265
  99. data/lib/kleister/models/mod_user_params.rb +0 -265
  100. data/lib/kleister/models/neoforge_build_params.rb +0 -233
  101. data/lib/kleister/models/pack_logo.rb +0 -275
  102. data/lib/kleister/models/pack_team_params.rb +0 -265
  103. data/lib/kleister/models/pack_user_params.rb +0 -265
  104. data/lib/kleister/models/providers.rb +0 -220
  105. data/lib/kleister/models/team_mod_params.rb +0 -265
  106. data/lib/kleister/models/team_pack_params.rb +0 -265
  107. data/lib/kleister/models/team_user_params.rb +0 -265
  108. data/lib/kleister/models/user_mod_params.rb +0 -265
  109. data/lib/kleister/models/user_pack_params.rb +0 -265
  110. data/lib/kleister/models/user_team_params.rb +0 -265
  111. data/lib/kleister/models/version_build_params.rb +0 -233
@@ -5,49 +5,49 @@
5
5
  # The version of the OpenAPI document: 1.0.0-alpha1
6
6
  # Contact: kleister@webhippie.de
7
7
  # Generated by: https://openapi-generator.tech
8
- # Generator version: 7.6.0
8
+ # Generator version: 7.12.0
9
9
  #
10
10
 
11
11
  require 'cgi'
12
12
 
13
13
  module Kleister
14
- class TeamApi
14
+ class GroupApi
15
15
  attr_accessor :api_client
16
16
 
17
17
  def initialize(api_client = ApiClient.default)
18
18
  @api_client = api_client
19
19
  end
20
20
 
21
- # Attach a mod to team
22
- # @param team_id [String] A team identifier or slug
23
- # @param team_mod_params [TeamModParams] The team mod data to attach
21
+ # Attach a mod to group
22
+ # @param group_id [String] A group identifier or slug
23
+ # @param permit_group_mod_request [PermitGroupModRequest] The group mod data to permit
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [Notification]
26
- def attach_team_to_mod(team_id, team_mod_params, opts = {})
27
- data, _status_code, _headers = attach_team_to_mod_with_http_info(team_id, team_mod_params, opts)
26
+ def attach_group_to_mod(group_id, permit_group_mod_request, opts = {})
27
+ data, _status_code, _headers = attach_group_to_mod_with_http_info(group_id, permit_group_mod_request, opts)
28
28
  data
29
29
  end
30
30
 
31
- # Attach a mod to team
32
- # @param team_id [String] A team identifier or slug
33
- # @param team_mod_params [TeamModParams] The team mod data to attach
31
+ # Attach a mod to group
32
+ # @param group_id [String] A group identifier or slug
33
+ # @param permit_group_mod_request [PermitGroupModRequest] The group mod data to permit
34
34
  # @param [Hash] opts the optional parameters
35
35
  # @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
36
- def attach_team_to_mod_with_http_info(team_id, team_mod_params, opts = {})
36
+ def attach_group_to_mod_with_http_info(group_id, permit_group_mod_request, opts = {})
37
37
  if @api_client.config.debugging
38
- @api_client.config.logger.debug 'Calling API: TeamApi.attach_team_to_mod ...'
38
+ @api_client.config.logger.debug 'Calling API: GroupApi.attach_group_to_mod ...'
39
39
  end
40
- # verify the required parameter 'team_id' is set
41
- if @api_client.config.client_side_validation && team_id.nil?
42
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.attach_team_to_mod"
40
+ # verify the required parameter 'group_id' is set
41
+ if @api_client.config.client_side_validation && group_id.nil?
42
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.attach_group_to_mod"
43
43
  end
44
- # verify the required parameter 'team_mod_params' is set
45
- if @api_client.config.client_side_validation && team_mod_params.nil?
46
- raise ArgumentError, "Missing the required parameter 'team_mod_params' when calling TeamApi.attach_team_to_mod"
44
+ # verify the required parameter 'permit_group_mod_request' is set
45
+ if @api_client.config.client_side_validation && permit_group_mod_request.nil?
46
+ raise ArgumentError, "Missing the required parameter 'permit_group_mod_request' when calling GroupApi.attach_group_to_mod"
47
47
  end
48
48
 
49
49
  # resource path
50
- local_var_path = '/teams/{team_id}/mods'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
50
+ local_var_path = '/groups/{group_id}/mods'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
51
51
 
52
52
  # query parameters
53
53
  query_params = opts[:query_params] || {}
@@ -55,7 +55,7 @@ module Kleister
55
55
  # header parameters
56
56
  header_params = opts[:header_params] || {}
57
57
  # HTTP header 'Accept' (if needed)
58
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
58
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
59
59
  # HTTP header 'Content-Type'
60
60
  content_type = @api_client.select_header_content_type(['application/json'])
61
61
  unless content_type.nil?
@@ -66,16 +66,16 @@ module Kleister
66
66
  form_params = opts[:form_params] || {}
67
67
 
68
68
  # http body (model)
69
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team_mod_params)
69
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_group_mod_request)
70
70
 
71
71
  # return_type
72
72
  return_type = opts[:debug_return_type] || 'Notification'
73
73
 
74
74
  # auth_names
75
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
75
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
76
76
 
77
77
  new_options = opts.merge(
78
- operation: :'TeamApi.attach_team_to_mod',
78
+ operation: :'GroupApi.attach_group_to_mod',
79
79
  header_params: header_params,
80
80
  query_params: query_params,
81
81
  form_params: form_params,
@@ -86,41 +86,41 @@ module Kleister
86
86
 
87
87
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
88
88
  if @api_client.config.debugging
89
- @api_client.config.logger.debug "API called: TeamApi#attach_team_to_mod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ @api_client.config.logger.debug "API called: GroupApi#attach_group_to_mod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
90
  end
91
91
  [data, status_code, headers]
92
92
  end
93
93
 
94
- # Attach a pack to team
95
- # @param team_id [String] A team identifier or slug
96
- # @param team_pack_params [TeamPackParams] The team pack data to attach
94
+ # Attach a pack to group
95
+ # @param group_id [String] A group identifier or slug
96
+ # @param permit_group_pack_request [PermitGroupPackRequest] The group pack data to permit
97
97
  # @param [Hash] opts the optional parameters
98
98
  # @return [Notification]
99
- def attach_team_to_pack(team_id, team_pack_params, opts = {})
100
- data, _status_code, _headers = attach_team_to_pack_with_http_info(team_id, team_pack_params, opts)
99
+ def attach_group_to_pack(group_id, permit_group_pack_request, opts = {})
100
+ data, _status_code, _headers = attach_group_to_pack_with_http_info(group_id, permit_group_pack_request, opts)
101
101
  data
102
102
  end
103
103
 
104
- # Attach a pack to team
105
- # @param team_id [String] A team identifier or slug
106
- # @param team_pack_params [TeamPackParams] The team pack data to attach
104
+ # Attach a pack to group
105
+ # @param group_id [String] A group identifier or slug
106
+ # @param permit_group_pack_request [PermitGroupPackRequest] The group pack data to permit
107
107
  # @param [Hash] opts the optional parameters
108
108
  # @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
109
- def attach_team_to_pack_with_http_info(team_id, team_pack_params, opts = {})
109
+ def attach_group_to_pack_with_http_info(group_id, permit_group_pack_request, opts = {})
110
110
  if @api_client.config.debugging
111
- @api_client.config.logger.debug 'Calling API: TeamApi.attach_team_to_pack ...'
111
+ @api_client.config.logger.debug 'Calling API: GroupApi.attach_group_to_pack ...'
112
112
  end
113
- # verify the required parameter 'team_id' is set
114
- if @api_client.config.client_side_validation && team_id.nil?
115
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.attach_team_to_pack"
113
+ # verify the required parameter 'group_id' is set
114
+ if @api_client.config.client_side_validation && group_id.nil?
115
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.attach_group_to_pack"
116
116
  end
117
- # verify the required parameter 'team_pack_params' is set
118
- if @api_client.config.client_side_validation && team_pack_params.nil?
119
- raise ArgumentError, "Missing the required parameter 'team_pack_params' when calling TeamApi.attach_team_to_pack"
117
+ # verify the required parameter 'permit_group_pack_request' is set
118
+ if @api_client.config.client_side_validation && permit_group_pack_request.nil?
119
+ raise ArgumentError, "Missing the required parameter 'permit_group_pack_request' when calling GroupApi.attach_group_to_pack"
120
120
  end
121
121
 
122
122
  # resource path
123
- local_var_path = '/teams/{team_id}/packs'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
123
+ local_var_path = '/groups/{group_id}/packs'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
124
124
 
125
125
  # query parameters
126
126
  query_params = opts[:query_params] || {}
@@ -128,7 +128,7 @@ module Kleister
128
128
  # header parameters
129
129
  header_params = opts[:header_params] || {}
130
130
  # HTTP header 'Accept' (if needed)
131
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
131
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
132
132
  # HTTP header 'Content-Type'
133
133
  content_type = @api_client.select_header_content_type(['application/json'])
134
134
  unless content_type.nil?
@@ -139,16 +139,16 @@ module Kleister
139
139
  form_params = opts[:form_params] || {}
140
140
 
141
141
  # http body (model)
142
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team_pack_params)
142
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_group_pack_request)
143
143
 
144
144
  # return_type
145
145
  return_type = opts[:debug_return_type] || 'Notification'
146
146
 
147
147
  # auth_names
148
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
148
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
149
149
 
150
150
  new_options = opts.merge(
151
- operation: :'TeamApi.attach_team_to_pack',
151
+ operation: :'GroupApi.attach_group_to_pack',
152
152
  header_params: header_params,
153
153
  query_params: query_params,
154
154
  form_params: form_params,
@@ -159,41 +159,41 @@ module Kleister
159
159
 
160
160
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
161
161
  if @api_client.config.debugging
162
- @api_client.config.logger.debug "API called: TeamApi#attach_team_to_pack\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
162
+ @api_client.config.logger.debug "API called: GroupApi#attach_group_to_pack\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
163
163
  end
164
164
  [data, status_code, headers]
165
165
  end
166
166
 
167
- # Attach a user to team
168
- # @param team_id [String] A team identifier or slug
169
- # @param team_user_params [TeamUserParams] The team user data to attach
167
+ # Attach a user to group
168
+ # @param group_id [String] A group identifier or slug
169
+ # @param permit_pack_user_request [PermitPackUserRequest] The group user data to permit
170
170
  # @param [Hash] opts the optional parameters
171
171
  # @return [Notification]
172
- def attach_team_to_user(team_id, team_user_params, opts = {})
173
- data, _status_code, _headers = attach_team_to_user_with_http_info(team_id, team_user_params, opts)
172
+ def attach_group_to_user(group_id, permit_pack_user_request, opts = {})
173
+ data, _status_code, _headers = attach_group_to_user_with_http_info(group_id, permit_pack_user_request, opts)
174
174
  data
175
175
  end
176
176
 
177
- # Attach a user to team
178
- # @param team_id [String] A team identifier or slug
179
- # @param team_user_params [TeamUserParams] The team user data to attach
177
+ # Attach a user to group
178
+ # @param group_id [String] A group identifier or slug
179
+ # @param permit_pack_user_request [PermitPackUserRequest] The group user data to permit
180
180
  # @param [Hash] opts the optional parameters
181
181
  # @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
182
- def attach_team_to_user_with_http_info(team_id, team_user_params, opts = {})
182
+ def attach_group_to_user_with_http_info(group_id, permit_pack_user_request, opts = {})
183
183
  if @api_client.config.debugging
184
- @api_client.config.logger.debug 'Calling API: TeamApi.attach_team_to_user ...'
184
+ @api_client.config.logger.debug 'Calling API: GroupApi.attach_group_to_user ...'
185
185
  end
186
- # verify the required parameter 'team_id' is set
187
- if @api_client.config.client_side_validation && team_id.nil?
188
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.attach_team_to_user"
186
+ # verify the required parameter 'group_id' is set
187
+ if @api_client.config.client_side_validation && group_id.nil?
188
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.attach_group_to_user"
189
189
  end
190
- # verify the required parameter 'team_user_params' is set
191
- if @api_client.config.client_side_validation && team_user_params.nil?
192
- raise ArgumentError, "Missing the required parameter 'team_user_params' when calling TeamApi.attach_team_to_user"
190
+ # verify the required parameter 'permit_pack_user_request' is set
191
+ if @api_client.config.client_side_validation && permit_pack_user_request.nil?
192
+ raise ArgumentError, "Missing the required parameter 'permit_pack_user_request' when calling GroupApi.attach_group_to_user"
193
193
  end
194
194
 
195
195
  # resource path
196
- local_var_path = '/teams/{team_id}/users'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
196
+ local_var_path = '/groups/{group_id}/users'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
197
197
 
198
198
  # query parameters
199
199
  query_params = opts[:query_params] || {}
@@ -201,7 +201,7 @@ module Kleister
201
201
  # header parameters
202
202
  header_params = opts[:header_params] || {}
203
203
  # HTTP header 'Accept' (if needed)
204
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
204
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
205
205
  # HTTP header 'Content-Type'
206
206
  content_type = @api_client.select_header_content_type(['application/json'])
207
207
  unless content_type.nil?
@@ -212,16 +212,16 @@ module Kleister
212
212
  form_params = opts[:form_params] || {}
213
213
 
214
214
  # http body (model)
215
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team_user_params)
215
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_pack_user_request)
216
216
 
217
217
  # return_type
218
218
  return_type = opts[:debug_return_type] || 'Notification'
219
219
 
220
220
  # auth_names
221
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
221
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
222
222
 
223
223
  new_options = opts.merge(
224
- operation: :'TeamApi.attach_team_to_user',
224
+ operation: :'GroupApi.attach_group_to_user',
225
225
  header_params: header_params,
226
226
  query_params: query_params,
227
227
  form_params: form_params,
@@ -232,35 +232,35 @@ module Kleister
232
232
 
233
233
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
234
234
  if @api_client.config.debugging
235
- @api_client.config.logger.debug "API called: TeamApi#attach_team_to_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
235
+ @api_client.config.logger.debug "API called: GroupApi#attach_group_to_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
236
236
  end
237
237
  [data, status_code, headers]
238
238
  end
239
239
 
240
- # Create a new team
241
- # @param team [Team] The team data to create
240
+ # Create a new group
241
+ # @param create_group_request [CreateGroupRequest] The group data to create
242
242
  # @param [Hash] opts the optional parameters
243
- # @return [Team]
244
- def create_team(team, opts = {})
245
- data, _status_code, _headers = create_team_with_http_info(team, opts)
243
+ # @return [Group]
244
+ def create_group(create_group_request, opts = {})
245
+ data, _status_code, _headers = create_group_with_http_info(create_group_request, opts)
246
246
  data
247
247
  end
248
248
 
249
- # Create a new team
250
- # @param team [Team] The team data to create
249
+ # Create a new group
250
+ # @param create_group_request [CreateGroupRequest] The group data to create
251
251
  # @param [Hash] opts the optional parameters
252
- # @return [Array<(Team, Integer, Hash)>] Team data, response status code and response headers
253
- def create_team_with_http_info(team, opts = {})
252
+ # @return [Array<(Group, Integer, Hash)>] Group data, response status code and response headers
253
+ def create_group_with_http_info(create_group_request, opts = {})
254
254
  if @api_client.config.debugging
255
- @api_client.config.logger.debug 'Calling API: TeamApi.create_team ...'
255
+ @api_client.config.logger.debug 'Calling API: GroupApi.create_group ...'
256
256
  end
257
- # verify the required parameter 'team' is set
258
- if @api_client.config.client_side_validation && team.nil?
259
- raise ArgumentError, "Missing the required parameter 'team' when calling TeamApi.create_team"
257
+ # verify the required parameter 'create_group_request' is set
258
+ if @api_client.config.client_side_validation && create_group_request.nil?
259
+ raise ArgumentError, "Missing the required parameter 'create_group_request' when calling GroupApi.create_group"
260
260
  end
261
261
 
262
262
  # resource path
263
- local_var_path = '/teams'
263
+ local_var_path = '/groups'
264
264
 
265
265
  # query parameters
266
266
  query_params = opts[:query_params] || {}
@@ -268,7 +268,7 @@ module Kleister
268
268
  # header parameters
269
269
  header_params = opts[:header_params] || {}
270
270
  # HTTP header 'Accept' (if needed)
271
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
271
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
272
272
  # HTTP header 'Content-Type'
273
273
  content_type = @api_client.select_header_content_type(['application/json'])
274
274
  unless content_type.nil?
@@ -279,16 +279,16 @@ module Kleister
279
279
  form_params = opts[:form_params] || {}
280
280
 
281
281
  # http body (model)
282
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team)
282
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_group_request)
283
283
 
284
284
  # return_type
285
- return_type = opts[:debug_return_type] || 'Team'
285
+ return_type = opts[:debug_return_type] || 'Group'
286
286
 
287
287
  # auth_names
288
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
288
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
289
289
 
290
290
  new_options = opts.merge(
291
- operation: :'TeamApi.create_team',
291
+ operation: :'GroupApi.create_group',
292
292
  header_params: header_params,
293
293
  query_params: query_params,
294
294
  form_params: form_params,
@@ -299,35 +299,35 @@ module Kleister
299
299
 
300
300
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
301
301
  if @api_client.config.debugging
302
- @api_client.config.logger.debug "API called: TeamApi#create_team\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
302
+ @api_client.config.logger.debug "API called: GroupApi#create_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
303
303
  end
304
304
  [data, status_code, headers]
305
305
  end
306
306
 
307
- # Delete a specific team
308
- # @param team_id [String] A team identifier or slug
307
+ # Delete a specific group
308
+ # @param group_id [String] A group identifier or slug
309
309
  # @param [Hash] opts the optional parameters
310
310
  # @return [Notification]
311
- def delete_team(team_id, opts = {})
312
- data, _status_code, _headers = delete_team_with_http_info(team_id, opts)
311
+ def delete_group(group_id, opts = {})
312
+ data, _status_code, _headers = delete_group_with_http_info(group_id, opts)
313
313
  data
314
314
  end
315
315
 
316
- # Delete a specific team
317
- # @param team_id [String] A team identifier or slug
316
+ # Delete a specific group
317
+ # @param group_id [String] A group identifier or slug
318
318
  # @param [Hash] opts the optional parameters
319
319
  # @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
320
- def delete_team_with_http_info(team_id, opts = {})
320
+ def delete_group_with_http_info(group_id, opts = {})
321
321
  if @api_client.config.debugging
322
- @api_client.config.logger.debug 'Calling API: TeamApi.delete_team ...'
322
+ @api_client.config.logger.debug 'Calling API: GroupApi.delete_group ...'
323
323
  end
324
- # verify the required parameter 'team_id' is set
325
- if @api_client.config.client_side_validation && team_id.nil?
326
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.delete_team"
324
+ # verify the required parameter 'group_id' is set
325
+ if @api_client.config.client_side_validation && group_id.nil?
326
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.delete_group"
327
327
  end
328
328
 
329
329
  # resource path
330
- local_var_path = '/teams/{team_id}'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
330
+ local_var_path = '/groups/{group_id}'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
331
331
 
332
332
  # query parameters
333
333
  query_params = opts[:query_params] || {}
@@ -335,7 +335,7 @@ module Kleister
335
335
  # header parameters
336
336
  header_params = opts[:header_params] || {}
337
337
  # HTTP header 'Accept' (if needed)
338
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
338
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
339
339
 
340
340
  # form parameters
341
341
  form_params = opts[:form_params] || {}
@@ -347,10 +347,10 @@ module Kleister
347
347
  return_type = opts[:debug_return_type] || 'Notification'
348
348
 
349
349
  # auth_names
350
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
350
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
351
351
 
352
352
  new_options = opts.merge(
353
- operation: :'TeamApi.delete_team',
353
+ operation: :'GroupApi.delete_group',
354
354
  header_params: header_params,
355
355
  query_params: query_params,
356
356
  form_params: form_params,
@@ -361,41 +361,41 @@ module Kleister
361
361
 
362
362
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
363
363
  if @api_client.config.debugging
364
- @api_client.config.logger.debug "API called: TeamApi#delete_team\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
364
+ @api_client.config.logger.debug "API called: GroupApi#delete_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
365
365
  end
366
366
  [data, status_code, headers]
367
367
  end
368
368
 
369
- # Unlink a mod from team
370
- # @param team_id [String] A team identifier or slug
371
- # @param team_mod_params [TeamModParams] The team mod data to unlink
369
+ # Unlink a mod from group
370
+ # @param group_id [String] A group identifier or slug
371
+ # @param delete_group_from_mod_request [DeleteGroupFromModRequest] The group mod data to unlink
372
372
  # @param [Hash] opts the optional parameters
373
373
  # @return [Notification]
374
- def delete_team_from_mod(team_id, team_mod_params, opts = {})
375
- data, _status_code, _headers = delete_team_from_mod_with_http_info(team_id, team_mod_params, opts)
374
+ def delete_group_from_mod(group_id, delete_group_from_mod_request, opts = {})
375
+ data, _status_code, _headers = delete_group_from_mod_with_http_info(group_id, delete_group_from_mod_request, opts)
376
376
  data
377
377
  end
378
378
 
379
- # Unlink a mod from team
380
- # @param team_id [String] A team identifier or slug
381
- # @param team_mod_params [TeamModParams] The team mod data to unlink
379
+ # Unlink a mod from group
380
+ # @param group_id [String] A group identifier or slug
381
+ # @param delete_group_from_mod_request [DeleteGroupFromModRequest] The group mod data to unlink
382
382
  # @param [Hash] opts the optional parameters
383
383
  # @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
384
- def delete_team_from_mod_with_http_info(team_id, team_mod_params, opts = {})
384
+ def delete_group_from_mod_with_http_info(group_id, delete_group_from_mod_request, opts = {})
385
385
  if @api_client.config.debugging
386
- @api_client.config.logger.debug 'Calling API: TeamApi.delete_team_from_mod ...'
386
+ @api_client.config.logger.debug 'Calling API: GroupApi.delete_group_from_mod ...'
387
387
  end
388
- # verify the required parameter 'team_id' is set
389
- if @api_client.config.client_side_validation && team_id.nil?
390
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.delete_team_from_mod"
388
+ # verify the required parameter 'group_id' is set
389
+ if @api_client.config.client_side_validation && group_id.nil?
390
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.delete_group_from_mod"
391
391
  end
392
- # verify the required parameter 'team_mod_params' is set
393
- if @api_client.config.client_side_validation && team_mod_params.nil?
394
- raise ArgumentError, "Missing the required parameter 'team_mod_params' when calling TeamApi.delete_team_from_mod"
392
+ # verify the required parameter 'delete_group_from_mod_request' is set
393
+ if @api_client.config.client_side_validation && delete_group_from_mod_request.nil?
394
+ raise ArgumentError, "Missing the required parameter 'delete_group_from_mod_request' when calling GroupApi.delete_group_from_mod"
395
395
  end
396
396
 
397
397
  # resource path
398
- local_var_path = '/teams/{team_id}/mods'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
398
+ local_var_path = '/groups/{group_id}/mods'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
399
399
 
400
400
  # query parameters
401
401
  query_params = opts[:query_params] || {}
@@ -403,7 +403,7 @@ module Kleister
403
403
  # header parameters
404
404
  header_params = opts[:header_params] || {}
405
405
  # HTTP header 'Accept' (if needed)
406
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
406
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
407
407
  # HTTP header 'Content-Type'
408
408
  content_type = @api_client.select_header_content_type(['application/json'])
409
409
  unless content_type.nil?
@@ -414,16 +414,16 @@ module Kleister
414
414
  form_params = opts[:form_params] || {}
415
415
 
416
416
  # http body (model)
417
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team_mod_params)
417
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_group_from_mod_request)
418
418
 
419
419
  # return_type
420
420
  return_type = opts[:debug_return_type] || 'Notification'
421
421
 
422
422
  # auth_names
423
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
423
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
424
424
 
425
425
  new_options = opts.merge(
426
- operation: :'TeamApi.delete_team_from_mod',
426
+ operation: :'GroupApi.delete_group_from_mod',
427
427
  header_params: header_params,
428
428
  query_params: query_params,
429
429
  form_params: form_params,
@@ -434,41 +434,41 @@ module Kleister
434
434
 
435
435
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
436
436
  if @api_client.config.debugging
437
- @api_client.config.logger.debug "API called: TeamApi#delete_team_from_mod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
437
+ @api_client.config.logger.debug "API called: GroupApi#delete_group_from_mod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
438
438
  end
439
439
  [data, status_code, headers]
440
440
  end
441
441
 
442
- # Unlink a pack from team
443
- # @param team_id [String] A team identifier or slug
444
- # @param team_pack_params [TeamPackParams] The team pack data to unlink
442
+ # Unlink a pack from group
443
+ # @param group_id [String] A group identifier or slug
444
+ # @param delete_group_from_pack_request [DeleteGroupFromPackRequest] The group pack data to unlink
445
445
  # @param [Hash] opts the optional parameters
446
446
  # @return [Notification]
447
- def delete_team_from_pack(team_id, team_pack_params, opts = {})
448
- data, _status_code, _headers = delete_team_from_pack_with_http_info(team_id, team_pack_params, opts)
447
+ def delete_group_from_pack(group_id, delete_group_from_pack_request, opts = {})
448
+ data, _status_code, _headers = delete_group_from_pack_with_http_info(group_id, delete_group_from_pack_request, opts)
449
449
  data
450
450
  end
451
451
 
452
- # Unlink a pack from team
453
- # @param team_id [String] A team identifier or slug
454
- # @param team_pack_params [TeamPackParams] The team pack data to unlink
452
+ # Unlink a pack from group
453
+ # @param group_id [String] A group identifier or slug
454
+ # @param delete_group_from_pack_request [DeleteGroupFromPackRequest] The group pack data to unlink
455
455
  # @param [Hash] opts the optional parameters
456
456
  # @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
457
- def delete_team_from_pack_with_http_info(team_id, team_pack_params, opts = {})
457
+ def delete_group_from_pack_with_http_info(group_id, delete_group_from_pack_request, opts = {})
458
458
  if @api_client.config.debugging
459
- @api_client.config.logger.debug 'Calling API: TeamApi.delete_team_from_pack ...'
459
+ @api_client.config.logger.debug 'Calling API: GroupApi.delete_group_from_pack ...'
460
460
  end
461
- # verify the required parameter 'team_id' is set
462
- if @api_client.config.client_side_validation && team_id.nil?
463
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.delete_team_from_pack"
461
+ # verify the required parameter 'group_id' is set
462
+ if @api_client.config.client_side_validation && group_id.nil?
463
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.delete_group_from_pack"
464
464
  end
465
- # verify the required parameter 'team_pack_params' is set
466
- if @api_client.config.client_side_validation && team_pack_params.nil?
467
- raise ArgumentError, "Missing the required parameter 'team_pack_params' when calling TeamApi.delete_team_from_pack"
465
+ # verify the required parameter 'delete_group_from_pack_request' is set
466
+ if @api_client.config.client_side_validation && delete_group_from_pack_request.nil?
467
+ raise ArgumentError, "Missing the required parameter 'delete_group_from_pack_request' when calling GroupApi.delete_group_from_pack"
468
468
  end
469
469
 
470
470
  # resource path
471
- local_var_path = '/teams/{team_id}/packs'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
471
+ local_var_path = '/groups/{group_id}/packs'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
472
472
 
473
473
  # query parameters
474
474
  query_params = opts[:query_params] || {}
@@ -476,7 +476,7 @@ module Kleister
476
476
  # header parameters
477
477
  header_params = opts[:header_params] || {}
478
478
  # HTTP header 'Accept' (if needed)
479
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
479
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
480
480
  # HTTP header 'Content-Type'
481
481
  content_type = @api_client.select_header_content_type(['application/json'])
482
482
  unless content_type.nil?
@@ -487,16 +487,16 @@ module Kleister
487
487
  form_params = opts[:form_params] || {}
488
488
 
489
489
  # http body (model)
490
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team_pack_params)
490
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_group_from_pack_request)
491
491
 
492
492
  # return_type
493
493
  return_type = opts[:debug_return_type] || 'Notification'
494
494
 
495
495
  # auth_names
496
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
496
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
497
497
 
498
498
  new_options = opts.merge(
499
- operation: :'TeamApi.delete_team_from_pack',
499
+ operation: :'GroupApi.delete_group_from_pack',
500
500
  header_params: header_params,
501
501
  query_params: query_params,
502
502
  form_params: form_params,
@@ -507,41 +507,41 @@ module Kleister
507
507
 
508
508
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
509
509
  if @api_client.config.debugging
510
- @api_client.config.logger.debug "API called: TeamApi#delete_team_from_pack\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
510
+ @api_client.config.logger.debug "API called: GroupApi#delete_group_from_pack\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
511
511
  end
512
512
  [data, status_code, headers]
513
513
  end
514
514
 
515
- # Unlink a user from team
516
- # @param team_id [String] A team identifier or slug
517
- # @param team_user_params [TeamUserParams] The team user data to unlink
515
+ # Unlink a user from group
516
+ # @param group_id [String] A group identifier or slug
517
+ # @param delete_pack_from_user_request [DeletePackFromUserRequest] The group user data to unlink
518
518
  # @param [Hash] opts the optional parameters
519
519
  # @return [Notification]
520
- def delete_team_from_user(team_id, team_user_params, opts = {})
521
- data, _status_code, _headers = delete_team_from_user_with_http_info(team_id, team_user_params, opts)
520
+ def delete_group_from_user(group_id, delete_pack_from_user_request, opts = {})
521
+ data, _status_code, _headers = delete_group_from_user_with_http_info(group_id, delete_pack_from_user_request, opts)
522
522
  data
523
523
  end
524
524
 
525
- # Unlink a user from team
526
- # @param team_id [String] A team identifier or slug
527
- # @param team_user_params [TeamUserParams] The team user data to unlink
525
+ # Unlink a user from group
526
+ # @param group_id [String] A group identifier or slug
527
+ # @param delete_pack_from_user_request [DeletePackFromUserRequest] The group user data to unlink
528
528
  # @param [Hash] opts the optional parameters
529
529
  # @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
530
- def delete_team_from_user_with_http_info(team_id, team_user_params, opts = {})
530
+ def delete_group_from_user_with_http_info(group_id, delete_pack_from_user_request, opts = {})
531
531
  if @api_client.config.debugging
532
- @api_client.config.logger.debug 'Calling API: TeamApi.delete_team_from_user ...'
532
+ @api_client.config.logger.debug 'Calling API: GroupApi.delete_group_from_user ...'
533
533
  end
534
- # verify the required parameter 'team_id' is set
535
- if @api_client.config.client_side_validation && team_id.nil?
536
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.delete_team_from_user"
534
+ # verify the required parameter 'group_id' is set
535
+ if @api_client.config.client_side_validation && group_id.nil?
536
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.delete_group_from_user"
537
537
  end
538
- # verify the required parameter 'team_user_params' is set
539
- if @api_client.config.client_side_validation && team_user_params.nil?
540
- raise ArgumentError, "Missing the required parameter 'team_user_params' when calling TeamApi.delete_team_from_user"
538
+ # verify the required parameter 'delete_pack_from_user_request' is set
539
+ if @api_client.config.client_side_validation && delete_pack_from_user_request.nil?
540
+ raise ArgumentError, "Missing the required parameter 'delete_pack_from_user_request' when calling GroupApi.delete_group_from_user"
541
541
  end
542
542
 
543
543
  # resource path
544
- local_var_path = '/teams/{team_id}/users'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
544
+ local_var_path = '/groups/{group_id}/users'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
545
545
 
546
546
  # query parameters
547
547
  query_params = opts[:query_params] || {}
@@ -549,7 +549,7 @@ module Kleister
549
549
  # header parameters
550
550
  header_params = opts[:header_params] || {}
551
551
  # HTTP header 'Accept' (if needed)
552
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
552
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
553
553
  # HTTP header 'Content-Type'
554
554
  content_type = @api_client.select_header_content_type(['application/json'])
555
555
  unless content_type.nil?
@@ -560,16 +560,16 @@ module Kleister
560
560
  form_params = opts[:form_params] || {}
561
561
 
562
562
  # http body (model)
563
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team_user_params)
563
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_pack_from_user_request)
564
564
 
565
565
  # return_type
566
566
  return_type = opts[:debug_return_type] || 'Notification'
567
567
 
568
568
  # auth_names
569
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
569
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
570
570
 
571
571
  new_options = opts.merge(
572
- operation: :'TeamApi.delete_team_from_user',
572
+ operation: :'GroupApi.delete_group_from_user',
573
573
  header_params: header_params,
574
574
  query_params: query_params,
575
575
  form_params: form_params,
@@ -580,46 +580,41 @@ module Kleister
580
580
 
581
581
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
582
582
  if @api_client.config.debugging
583
- @api_client.config.logger.debug "API called: TeamApi#delete_team_from_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
583
+ @api_client.config.logger.debug "API called: GroupApi#delete_group_from_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
584
584
  end
585
585
  [data, status_code, headers]
586
586
  end
587
587
 
588
- # Fetch all mods attached to team
589
- # @param team_id [String] A team identifier or slug
588
+ # Fetch all mods attached to group
589
+ # @param group_id [String] A group identifier or slug
590
590
  # @param [Hash] opts the optional parameters
591
591
  # @option opts [String] :search Search query
592
- # @option opts [String] :sort Sorting column (default to 'name')
592
+ # @option opts [String] :sort Sorting column
593
593
  # @option opts [String] :order Sorting order (default to 'asc')
594
594
  # @option opts [Integer] :limit Paging limit (default to 100)
595
595
  # @option opts [Integer] :offset Paging offset (default to 0)
596
- # @return [TeamMods]
597
- def list_team_mods(team_id, opts = {})
598
- data, _status_code, _headers = list_team_mods_with_http_info(team_id, opts)
596
+ # @return [ListGroupMods200Response]
597
+ def list_group_mods(group_id, opts = {})
598
+ data, _status_code, _headers = list_group_mods_with_http_info(group_id, opts)
599
599
  data
600
600
  end
601
601
 
602
- # Fetch all mods attached to team
603
- # @param team_id [String] A team identifier or slug
602
+ # Fetch all mods attached to group
603
+ # @param group_id [String] A group identifier or slug
604
604
  # @param [Hash] opts the optional parameters
605
605
  # @option opts [String] :search Search query
606
- # @option opts [String] :sort Sorting column (default to 'name')
606
+ # @option opts [String] :sort Sorting column
607
607
  # @option opts [String] :order Sorting order (default to 'asc')
608
608
  # @option opts [Integer] :limit Paging limit (default to 100)
609
609
  # @option opts [Integer] :offset Paging offset (default to 0)
610
- # @return [Array<(TeamMods, Integer, Hash)>] TeamMods data, response status code and response headers
611
- def list_team_mods_with_http_info(team_id, opts = {})
610
+ # @return [Array<(ListGroupMods200Response, Integer, Hash)>] ListGroupMods200Response data, response status code and response headers
611
+ def list_group_mods_with_http_info(group_id, opts = {})
612
612
  if @api_client.config.debugging
613
- @api_client.config.logger.debug 'Calling API: TeamApi.list_team_mods ...'
613
+ @api_client.config.logger.debug 'Calling API: GroupApi.list_group_mods ...'
614
614
  end
615
- # verify the required parameter 'team_id' is set
616
- if @api_client.config.client_side_validation && team_id.nil?
617
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.list_team_mods"
618
- end
619
-
620
- allowable_values = %w[slug name public]
621
- if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
622
- raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
615
+ # verify the required parameter 'group_id' is set
616
+ if @api_client.config.client_side_validation && group_id.nil?
617
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.list_group_mods"
623
618
  end
624
619
 
625
620
  allowable_values = %w[asc desc]
@@ -628,7 +623,7 @@ module Kleister
628
623
  end
629
624
 
630
625
  # resource path
631
- local_var_path = '/teams/{team_id}/mods'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
626
+ local_var_path = '/groups/{group_id}/mods'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
632
627
 
633
628
  # query parameters
634
629
  query_params = opts[:query_params] || {}
@@ -641,7 +636,7 @@ module Kleister
641
636
  # header parameters
642
637
  header_params = opts[:header_params] || {}
643
638
  # HTTP header 'Accept' (if needed)
644
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
639
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
645
640
 
646
641
  # form parameters
647
642
  form_params = opts[:form_params] || {}
@@ -650,13 +645,13 @@ module Kleister
650
645
  post_body = opts[:debug_body]
651
646
 
652
647
  # return_type
653
- return_type = opts[:debug_return_type] || 'TeamMods'
648
+ return_type = opts[:debug_return_type] || 'ListGroupMods200Response'
654
649
 
655
650
  # auth_names
656
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
651
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
657
652
 
658
653
  new_options = opts.merge(
659
- operation: :'TeamApi.list_team_mods',
654
+ operation: :'GroupApi.list_group_mods',
660
655
  header_params: header_params,
661
656
  query_params: query_params,
662
657
  form_params: form_params,
@@ -667,46 +662,41 @@ module Kleister
667
662
 
668
663
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
669
664
  if @api_client.config.debugging
670
- @api_client.config.logger.debug "API called: TeamApi#list_team_mods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
665
+ @api_client.config.logger.debug "API called: GroupApi#list_group_mods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
671
666
  end
672
667
  [data, status_code, headers]
673
668
  end
674
669
 
675
- # Fetch all packs attached to team
676
- # @param team_id [String] A team identifier or slug
670
+ # Fetch all packs attached to group
671
+ # @param group_id [String] A group identifier or slug
677
672
  # @param [Hash] opts the optional parameters
678
673
  # @option opts [String] :search Search query
679
- # @option opts [String] :sort Sorting column (default to 'name')
674
+ # @option opts [String] :sort Sorting column
680
675
  # @option opts [String] :order Sorting order (default to 'asc')
681
676
  # @option opts [Integer] :limit Paging limit (default to 100)
682
677
  # @option opts [Integer] :offset Paging offset (default to 0)
683
- # @return [TeamPacks]
684
- def list_team_packs(team_id, opts = {})
685
- data, _status_code, _headers = list_team_packs_with_http_info(team_id, opts)
678
+ # @return [ListGroupPacks200Response]
679
+ def list_group_packs(group_id, opts = {})
680
+ data, _status_code, _headers = list_group_packs_with_http_info(group_id, opts)
686
681
  data
687
682
  end
688
683
 
689
- # Fetch all packs attached to team
690
- # @param team_id [String] A team identifier or slug
684
+ # Fetch all packs attached to group
685
+ # @param group_id [String] A group identifier or slug
691
686
  # @param [Hash] opts the optional parameters
692
687
  # @option opts [String] :search Search query
693
- # @option opts [String] :sort Sorting column (default to 'name')
688
+ # @option opts [String] :sort Sorting column
694
689
  # @option opts [String] :order Sorting order (default to 'asc')
695
690
  # @option opts [Integer] :limit Paging limit (default to 100)
696
691
  # @option opts [Integer] :offset Paging offset (default to 0)
697
- # @return [Array<(TeamPacks, Integer, Hash)>] TeamPacks data, response status code and response headers
698
- def list_team_packs_with_http_info(team_id, opts = {})
692
+ # @return [Array<(ListGroupPacks200Response, Integer, Hash)>] ListGroupPacks200Response data, response status code and response headers
693
+ def list_group_packs_with_http_info(group_id, opts = {})
699
694
  if @api_client.config.debugging
700
- @api_client.config.logger.debug 'Calling API: TeamApi.list_team_packs ...'
695
+ @api_client.config.logger.debug 'Calling API: GroupApi.list_group_packs ...'
701
696
  end
702
- # verify the required parameter 'team_id' is set
703
- if @api_client.config.client_side_validation && team_id.nil?
704
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.list_team_packs"
705
- end
706
-
707
- allowable_values = %w[slug name public]
708
- if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
709
- raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
697
+ # verify the required parameter 'group_id' is set
698
+ if @api_client.config.client_side_validation && group_id.nil?
699
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.list_group_packs"
710
700
  end
711
701
 
712
702
  allowable_values = %w[asc desc]
@@ -715,7 +705,7 @@ module Kleister
715
705
  end
716
706
 
717
707
  # resource path
718
- local_var_path = '/teams/{team_id}/packs'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
708
+ local_var_path = '/groups/{group_id}/packs'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
719
709
 
720
710
  # query parameters
721
711
  query_params = opts[:query_params] || {}
@@ -728,7 +718,7 @@ module Kleister
728
718
  # header parameters
729
719
  header_params = opts[:header_params] || {}
730
720
  # HTTP header 'Accept' (if needed)
731
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
721
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
732
722
 
733
723
  # form parameters
734
724
  form_params = opts[:form_params] || {}
@@ -737,13 +727,13 @@ module Kleister
737
727
  post_body = opts[:debug_body]
738
728
 
739
729
  # return_type
740
- return_type = opts[:debug_return_type] || 'TeamPacks'
730
+ return_type = opts[:debug_return_type] || 'ListGroupPacks200Response'
741
731
 
742
732
  # auth_names
743
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
733
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
744
734
 
745
735
  new_options = opts.merge(
746
- operation: :'TeamApi.list_team_packs',
736
+ operation: :'GroupApi.list_group_packs',
747
737
  header_params: header_params,
748
738
  query_params: query_params,
749
739
  form_params: form_params,
@@ -754,46 +744,41 @@ module Kleister
754
744
 
755
745
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
756
746
  if @api_client.config.debugging
757
- @api_client.config.logger.debug "API called: TeamApi#list_team_packs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
747
+ @api_client.config.logger.debug "API called: GroupApi#list_group_packs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
758
748
  end
759
749
  [data, status_code, headers]
760
750
  end
761
751
 
762
- # Fetch all users attached to team
763
- # @param team_id [String] A team identifier or slug
752
+ # Fetch all users attached to group
753
+ # @param group_id [String] A group identifier or slug
764
754
  # @param [Hash] opts the optional parameters
765
755
  # @option opts [String] :search Search query
766
- # @option opts [String] :sort Sorting column (default to 'username')
756
+ # @option opts [String] :sort Sorting column
767
757
  # @option opts [String] :order Sorting order (default to 'asc')
768
758
  # @option opts [Integer] :limit Paging limit (default to 100)
769
759
  # @option opts [Integer] :offset Paging offset (default to 0)
770
- # @return [TeamUsers]
771
- def list_team_users(team_id, opts = {})
772
- data, _status_code, _headers = list_team_users_with_http_info(team_id, opts)
760
+ # @return [ListGroupUsers200Response]
761
+ def list_group_users(group_id, opts = {})
762
+ data, _status_code, _headers = list_group_users_with_http_info(group_id, opts)
773
763
  data
774
764
  end
775
765
 
776
- # Fetch all users attached to team
777
- # @param team_id [String] A team identifier or slug
766
+ # Fetch all users attached to group
767
+ # @param group_id [String] A group identifier or slug
778
768
  # @param [Hash] opts the optional parameters
779
769
  # @option opts [String] :search Search query
780
- # @option opts [String] :sort Sorting column (default to 'username')
770
+ # @option opts [String] :sort Sorting column
781
771
  # @option opts [String] :order Sorting order (default to 'asc')
782
772
  # @option opts [Integer] :limit Paging limit (default to 100)
783
773
  # @option opts [Integer] :offset Paging offset (default to 0)
784
- # @return [Array<(TeamUsers, Integer, Hash)>] TeamUsers data, response status code and response headers
785
- def list_team_users_with_http_info(team_id, opts = {})
774
+ # @return [Array<(ListGroupUsers200Response, Integer, Hash)>] ListGroupUsers200Response data, response status code and response headers
775
+ def list_group_users_with_http_info(group_id, opts = {})
786
776
  if @api_client.config.debugging
787
- @api_client.config.logger.debug 'Calling API: TeamApi.list_team_users ...'
777
+ @api_client.config.logger.debug 'Calling API: GroupApi.list_group_users ...'
788
778
  end
789
- # verify the required parameter 'team_id' is set
790
- if @api_client.config.client_side_validation && team_id.nil?
791
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.list_team_users"
792
- end
793
-
794
- allowable_values = %w[username email fullname admin active]
795
- if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
796
- raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
779
+ # verify the required parameter 'group_id' is set
780
+ if @api_client.config.client_side_validation && group_id.nil?
781
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.list_group_users"
797
782
  end
798
783
 
799
784
  allowable_values = %w[asc desc]
@@ -802,7 +787,7 @@ module Kleister
802
787
  end
803
788
 
804
789
  # resource path
805
- local_var_path = '/teams/{team_id}/users'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
790
+ local_var_path = '/groups/{group_id}/users'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
806
791
 
807
792
  # query parameters
808
793
  query_params = opts[:query_params] || {}
@@ -815,7 +800,7 @@ module Kleister
815
800
  # header parameters
816
801
  header_params = opts[:header_params] || {}
817
802
  # HTTP header 'Accept' (if needed)
818
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
803
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
819
804
 
820
805
  # form parameters
821
806
  form_params = opts[:form_params] || {}
@@ -824,13 +809,13 @@ module Kleister
824
809
  post_body = opts[:debug_body]
825
810
 
826
811
  # return_type
827
- return_type = opts[:debug_return_type] || 'TeamUsers'
812
+ return_type = opts[:debug_return_type] || 'ListGroupUsers200Response'
828
813
 
829
814
  # auth_names
830
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
815
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
831
816
 
832
817
  new_options = opts.merge(
833
- operation: :'TeamApi.list_team_users',
818
+ operation: :'GroupApi.list_group_users',
834
819
  header_params: header_params,
835
820
  query_params: query_params,
836
821
  form_params: form_params,
@@ -841,48 +826,43 @@ module Kleister
841
826
 
842
827
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
843
828
  if @api_client.config.debugging
844
- @api_client.config.logger.debug "API called: TeamApi#list_team_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
829
+ @api_client.config.logger.debug "API called: GroupApi#list_group_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
845
830
  end
846
831
  [data, status_code, headers]
847
832
  end
848
833
 
849
- # Fetch all available teams
834
+ # Fetch all available groups
850
835
  # @param [Hash] opts the optional parameters
851
836
  # @option opts [String] :search Search query
852
- # @option opts [String] :sort Sorting column (default to 'name')
837
+ # @option opts [String] :sort Sorting column
853
838
  # @option opts [String] :order Sorting order (default to 'asc')
854
839
  # @option opts [Integer] :limit Paging limit (default to 100)
855
840
  # @option opts [Integer] :offset Paging offset (default to 0)
856
- # @return [Teams]
857
- def list_teams(opts = {})
858
- data, _status_code, _headers = list_teams_with_http_info(opts)
841
+ # @return [ListGroups200Response]
842
+ def list_groups(opts = {})
843
+ data, _status_code, _headers = list_groups_with_http_info(opts)
859
844
  data
860
845
  end
861
846
 
862
- # Fetch all available teams
847
+ # Fetch all available groups
863
848
  # @param [Hash] opts the optional parameters
864
849
  # @option opts [String] :search Search query
865
- # @option opts [String] :sort Sorting column (default to 'name')
850
+ # @option opts [String] :sort Sorting column
866
851
  # @option opts [String] :order Sorting order (default to 'asc')
867
852
  # @option opts [Integer] :limit Paging limit (default to 100)
868
853
  # @option opts [Integer] :offset Paging offset (default to 0)
869
- # @return [Array<(Teams, Integer, Hash)>] Teams data, response status code and response headers
870
- def list_teams_with_http_info(opts = {})
854
+ # @return [Array<(ListGroups200Response, Integer, Hash)>] ListGroups200Response data, response status code and response headers
855
+ def list_groups_with_http_info(opts = {})
871
856
  if @api_client.config.debugging
872
- @api_client.config.logger.debug 'Calling API: TeamApi.list_teams ...'
857
+ @api_client.config.logger.debug 'Calling API: GroupApi.list_groups ...'
873
858
  end
874
- allowable_values = %w[slug name]
875
- if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
876
- raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
877
- end
878
-
879
859
  allowable_values = %w[asc desc]
880
860
  if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
881
861
  raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
882
862
  end
883
863
 
884
864
  # resource path
885
- local_var_path = '/teams'
865
+ local_var_path = '/groups'
886
866
 
887
867
  # query parameters
888
868
  query_params = opts[:query_params] || {}
@@ -895,7 +875,7 @@ module Kleister
895
875
  # header parameters
896
876
  header_params = opts[:header_params] || {}
897
877
  # HTTP header 'Accept' (if needed)
898
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
878
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
899
879
 
900
880
  # form parameters
901
881
  form_params = opts[:form_params] || {}
@@ -904,13 +884,13 @@ module Kleister
904
884
  post_body = opts[:debug_body]
905
885
 
906
886
  # return_type
907
- return_type = opts[:debug_return_type] || 'Teams'
887
+ return_type = opts[:debug_return_type] || 'ListGroups200Response'
908
888
 
909
889
  # auth_names
910
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
890
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
911
891
 
912
892
  new_options = opts.merge(
913
- operation: :'TeamApi.list_teams',
893
+ operation: :'GroupApi.list_groups',
914
894
  header_params: header_params,
915
895
  query_params: query_params,
916
896
  form_params: form_params,
@@ -921,41 +901,41 @@ module Kleister
921
901
 
922
902
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
923
903
  if @api_client.config.debugging
924
- @api_client.config.logger.debug "API called: TeamApi#list_teams\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
904
+ @api_client.config.logger.debug "API called: GroupApi#list_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
925
905
  end
926
906
  [data, status_code, headers]
927
907
  end
928
908
 
929
- # Update mod perms for team
930
- # @param team_id [String] A team identifier or slug
931
- # @param team_mod_params [TeamModParams] The team mod data to update
909
+ # Update mod perms for group
910
+ # @param group_id [String] A group identifier or slug
911
+ # @param permit_group_mod_request [PermitGroupModRequest] The group mod data to permit
932
912
  # @param [Hash] opts the optional parameters
933
913
  # @return [Notification]
934
- def permit_team_mod(team_id, team_mod_params, opts = {})
935
- data, _status_code, _headers = permit_team_mod_with_http_info(team_id, team_mod_params, opts)
914
+ def permit_group_mod(group_id, permit_group_mod_request, opts = {})
915
+ data, _status_code, _headers = permit_group_mod_with_http_info(group_id, permit_group_mod_request, opts)
936
916
  data
937
917
  end
938
918
 
939
- # Update mod perms for team
940
- # @param team_id [String] A team identifier or slug
941
- # @param team_mod_params [TeamModParams] The team mod data to update
919
+ # Update mod perms for group
920
+ # @param group_id [String] A group identifier or slug
921
+ # @param permit_group_mod_request [PermitGroupModRequest] The group mod data to permit
942
922
  # @param [Hash] opts the optional parameters
943
923
  # @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
944
- def permit_team_mod_with_http_info(team_id, team_mod_params, opts = {})
924
+ def permit_group_mod_with_http_info(group_id, permit_group_mod_request, opts = {})
945
925
  if @api_client.config.debugging
946
- @api_client.config.logger.debug 'Calling API: TeamApi.permit_team_mod ...'
926
+ @api_client.config.logger.debug 'Calling API: GroupApi.permit_group_mod ...'
947
927
  end
948
- # verify the required parameter 'team_id' is set
949
- if @api_client.config.client_side_validation && team_id.nil?
950
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.permit_team_mod"
928
+ # verify the required parameter 'group_id' is set
929
+ if @api_client.config.client_side_validation && group_id.nil?
930
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.permit_group_mod"
951
931
  end
952
- # verify the required parameter 'team_mod_params' is set
953
- if @api_client.config.client_side_validation && team_mod_params.nil?
954
- raise ArgumentError, "Missing the required parameter 'team_mod_params' when calling TeamApi.permit_team_mod"
932
+ # verify the required parameter 'permit_group_mod_request' is set
933
+ if @api_client.config.client_side_validation && permit_group_mod_request.nil?
934
+ raise ArgumentError, "Missing the required parameter 'permit_group_mod_request' when calling GroupApi.permit_group_mod"
955
935
  end
956
936
 
957
937
  # resource path
958
- local_var_path = '/teams/{team_id}/mods'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
938
+ local_var_path = '/groups/{group_id}/mods'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
959
939
 
960
940
  # query parameters
961
941
  query_params = opts[:query_params] || {}
@@ -963,7 +943,7 @@ module Kleister
963
943
  # header parameters
964
944
  header_params = opts[:header_params] || {}
965
945
  # HTTP header 'Accept' (if needed)
966
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
946
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
967
947
  # HTTP header 'Content-Type'
968
948
  content_type = @api_client.select_header_content_type(['application/json'])
969
949
  unless content_type.nil?
@@ -974,16 +954,16 @@ module Kleister
974
954
  form_params = opts[:form_params] || {}
975
955
 
976
956
  # http body (model)
977
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team_mod_params)
957
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_group_mod_request)
978
958
 
979
959
  # return_type
980
960
  return_type = opts[:debug_return_type] || 'Notification'
981
961
 
982
962
  # auth_names
983
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
963
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
984
964
 
985
965
  new_options = opts.merge(
986
- operation: :'TeamApi.permit_team_mod',
966
+ operation: :'GroupApi.permit_group_mod',
987
967
  header_params: header_params,
988
968
  query_params: query_params,
989
969
  form_params: form_params,
@@ -994,41 +974,41 @@ module Kleister
994
974
 
995
975
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
996
976
  if @api_client.config.debugging
997
- @api_client.config.logger.debug "API called: TeamApi#permit_team_mod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
977
+ @api_client.config.logger.debug "API called: GroupApi#permit_group_mod\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
998
978
  end
999
979
  [data, status_code, headers]
1000
980
  end
1001
981
 
1002
- # Update pack perms for team
1003
- # @param team_id [String] A team identifier or slug
1004
- # @param team_pack_params [TeamPackParams] The team pack data to update
982
+ # Update pack perms for group
983
+ # @param group_id [String] A group identifier or slug
984
+ # @param permit_group_pack_request [PermitGroupPackRequest] The group pack data to permit
1005
985
  # @param [Hash] opts the optional parameters
1006
986
  # @return [Notification]
1007
- def permit_team_pack(team_id, team_pack_params, opts = {})
1008
- data, _status_code, _headers = permit_team_pack_with_http_info(team_id, team_pack_params, opts)
987
+ def permit_group_pack(group_id, permit_group_pack_request, opts = {})
988
+ data, _status_code, _headers = permit_group_pack_with_http_info(group_id, permit_group_pack_request, opts)
1009
989
  data
1010
990
  end
1011
991
 
1012
- # Update pack perms for team
1013
- # @param team_id [String] A team identifier or slug
1014
- # @param team_pack_params [TeamPackParams] The team pack data to update
992
+ # Update pack perms for group
993
+ # @param group_id [String] A group identifier or slug
994
+ # @param permit_group_pack_request [PermitGroupPackRequest] The group pack data to permit
1015
995
  # @param [Hash] opts the optional parameters
1016
996
  # @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
1017
- def permit_team_pack_with_http_info(team_id, team_pack_params, opts = {})
997
+ def permit_group_pack_with_http_info(group_id, permit_group_pack_request, opts = {})
1018
998
  if @api_client.config.debugging
1019
- @api_client.config.logger.debug 'Calling API: TeamApi.permit_team_pack ...'
999
+ @api_client.config.logger.debug 'Calling API: GroupApi.permit_group_pack ...'
1020
1000
  end
1021
- # verify the required parameter 'team_id' is set
1022
- if @api_client.config.client_side_validation && team_id.nil?
1023
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.permit_team_pack"
1001
+ # verify the required parameter 'group_id' is set
1002
+ if @api_client.config.client_side_validation && group_id.nil?
1003
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.permit_group_pack"
1024
1004
  end
1025
- # verify the required parameter 'team_pack_params' is set
1026
- if @api_client.config.client_side_validation && team_pack_params.nil?
1027
- raise ArgumentError, "Missing the required parameter 'team_pack_params' when calling TeamApi.permit_team_pack"
1005
+ # verify the required parameter 'permit_group_pack_request' is set
1006
+ if @api_client.config.client_side_validation && permit_group_pack_request.nil?
1007
+ raise ArgumentError, "Missing the required parameter 'permit_group_pack_request' when calling GroupApi.permit_group_pack"
1028
1008
  end
1029
1009
 
1030
1010
  # resource path
1031
- local_var_path = '/teams/{team_id}/packs'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
1011
+ local_var_path = '/groups/{group_id}/packs'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
1032
1012
 
1033
1013
  # query parameters
1034
1014
  query_params = opts[:query_params] || {}
@@ -1036,7 +1016,7 @@ module Kleister
1036
1016
  # header parameters
1037
1017
  header_params = opts[:header_params] || {}
1038
1018
  # HTTP header 'Accept' (if needed)
1039
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1019
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1040
1020
  # HTTP header 'Content-Type'
1041
1021
  content_type = @api_client.select_header_content_type(['application/json'])
1042
1022
  unless content_type.nil?
@@ -1047,16 +1027,16 @@ module Kleister
1047
1027
  form_params = opts[:form_params] || {}
1048
1028
 
1049
1029
  # http body (model)
1050
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team_pack_params)
1030
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_group_pack_request)
1051
1031
 
1052
1032
  # return_type
1053
1033
  return_type = opts[:debug_return_type] || 'Notification'
1054
1034
 
1055
1035
  # auth_names
1056
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
1036
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
1057
1037
 
1058
1038
  new_options = opts.merge(
1059
- operation: :'TeamApi.permit_team_pack',
1039
+ operation: :'GroupApi.permit_group_pack',
1060
1040
  header_params: header_params,
1061
1041
  query_params: query_params,
1062
1042
  form_params: form_params,
@@ -1067,41 +1047,41 @@ module Kleister
1067
1047
 
1068
1048
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1069
1049
  if @api_client.config.debugging
1070
- @api_client.config.logger.debug "API called: TeamApi#permit_team_pack\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1050
+ @api_client.config.logger.debug "API called: GroupApi#permit_group_pack\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1071
1051
  end
1072
1052
  [data, status_code, headers]
1073
1053
  end
1074
1054
 
1075
- # Update user perms for team
1076
- # @param team_id [String] A team identifier or slug
1077
- # @param team_user_params [TeamUserParams] The team user data to update
1055
+ # Update user perms for group
1056
+ # @param group_id [String] A group identifier or slug
1057
+ # @param permit_pack_user_request [PermitPackUserRequest] The group user data to permit
1078
1058
  # @param [Hash] opts the optional parameters
1079
1059
  # @return [Notification]
1080
- def permit_team_user(team_id, team_user_params, opts = {})
1081
- data, _status_code, _headers = permit_team_user_with_http_info(team_id, team_user_params, opts)
1060
+ def permit_group_user(group_id, permit_pack_user_request, opts = {})
1061
+ data, _status_code, _headers = permit_group_user_with_http_info(group_id, permit_pack_user_request, opts)
1082
1062
  data
1083
1063
  end
1084
1064
 
1085
- # Update user perms for team
1086
- # @param team_id [String] A team identifier or slug
1087
- # @param team_user_params [TeamUserParams] The team user data to update
1065
+ # Update user perms for group
1066
+ # @param group_id [String] A group identifier or slug
1067
+ # @param permit_pack_user_request [PermitPackUserRequest] The group user data to permit
1088
1068
  # @param [Hash] opts the optional parameters
1089
1069
  # @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
1090
- def permit_team_user_with_http_info(team_id, team_user_params, opts = {})
1070
+ def permit_group_user_with_http_info(group_id, permit_pack_user_request, opts = {})
1091
1071
  if @api_client.config.debugging
1092
- @api_client.config.logger.debug 'Calling API: TeamApi.permit_team_user ...'
1072
+ @api_client.config.logger.debug 'Calling API: GroupApi.permit_group_user ...'
1093
1073
  end
1094
- # verify the required parameter 'team_id' is set
1095
- if @api_client.config.client_side_validation && team_id.nil?
1096
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.permit_team_user"
1074
+ # verify the required parameter 'group_id' is set
1075
+ if @api_client.config.client_side_validation && group_id.nil?
1076
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.permit_group_user"
1097
1077
  end
1098
- # verify the required parameter 'team_user_params' is set
1099
- if @api_client.config.client_side_validation && team_user_params.nil?
1100
- raise ArgumentError, "Missing the required parameter 'team_user_params' when calling TeamApi.permit_team_user"
1078
+ # verify the required parameter 'permit_pack_user_request' is set
1079
+ if @api_client.config.client_side_validation && permit_pack_user_request.nil?
1080
+ raise ArgumentError, "Missing the required parameter 'permit_pack_user_request' when calling GroupApi.permit_group_user"
1101
1081
  end
1102
1082
 
1103
1083
  # resource path
1104
- local_var_path = '/teams/{team_id}/users'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
1084
+ local_var_path = '/groups/{group_id}/users'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
1105
1085
 
1106
1086
  # query parameters
1107
1087
  query_params = opts[:query_params] || {}
@@ -1109,7 +1089,7 @@ module Kleister
1109
1089
  # header parameters
1110
1090
  header_params = opts[:header_params] || {}
1111
1091
  # HTTP header 'Accept' (if needed)
1112
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1092
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1113
1093
  # HTTP header 'Content-Type'
1114
1094
  content_type = @api_client.select_header_content_type(['application/json'])
1115
1095
  unless content_type.nil?
@@ -1120,16 +1100,16 @@ module Kleister
1120
1100
  form_params = opts[:form_params] || {}
1121
1101
 
1122
1102
  # http body (model)
1123
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team_user_params)
1103
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_pack_user_request)
1124
1104
 
1125
1105
  # return_type
1126
1106
  return_type = opts[:debug_return_type] || 'Notification'
1127
1107
 
1128
1108
  # auth_names
1129
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
1109
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
1130
1110
 
1131
1111
  new_options = opts.merge(
1132
- operation: :'TeamApi.permit_team_user',
1112
+ operation: :'GroupApi.permit_group_user',
1133
1113
  header_params: header_params,
1134
1114
  query_params: query_params,
1135
1115
  form_params: form_params,
@@ -1140,35 +1120,35 @@ module Kleister
1140
1120
 
1141
1121
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1142
1122
  if @api_client.config.debugging
1143
- @api_client.config.logger.debug "API called: TeamApi#permit_team_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1123
+ @api_client.config.logger.debug "API called: GroupApi#permit_group_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1144
1124
  end
1145
1125
  [data, status_code, headers]
1146
1126
  end
1147
1127
 
1148
- # Fetch a specific team
1149
- # @param team_id [String] A team identifier or slug
1128
+ # Fetch a specific group
1129
+ # @param group_id [String] A group identifier or slug
1150
1130
  # @param [Hash] opts the optional parameters
1151
- # @return [Team]
1152
- def show_team(team_id, opts = {})
1153
- data, _status_code, _headers = show_team_with_http_info(team_id, opts)
1131
+ # @return [Group]
1132
+ def show_group(group_id, opts = {})
1133
+ data, _status_code, _headers = show_group_with_http_info(group_id, opts)
1154
1134
  data
1155
1135
  end
1156
1136
 
1157
- # Fetch a specific team
1158
- # @param team_id [String] A team identifier or slug
1137
+ # Fetch a specific group
1138
+ # @param group_id [String] A group identifier or slug
1159
1139
  # @param [Hash] opts the optional parameters
1160
- # @return [Array<(Team, Integer, Hash)>] Team data, response status code and response headers
1161
- def show_team_with_http_info(team_id, opts = {})
1140
+ # @return [Array<(Group, Integer, Hash)>] Group data, response status code and response headers
1141
+ def show_group_with_http_info(group_id, opts = {})
1162
1142
  if @api_client.config.debugging
1163
- @api_client.config.logger.debug 'Calling API: TeamApi.show_team ...'
1143
+ @api_client.config.logger.debug 'Calling API: GroupApi.show_group ...'
1164
1144
  end
1165
- # verify the required parameter 'team_id' is set
1166
- if @api_client.config.client_side_validation && team_id.nil?
1167
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.show_team"
1145
+ # verify the required parameter 'group_id' is set
1146
+ if @api_client.config.client_side_validation && group_id.nil?
1147
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.show_group"
1168
1148
  end
1169
1149
 
1170
1150
  # resource path
1171
- local_var_path = '/teams/{team_id}'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
1151
+ local_var_path = '/groups/{group_id}'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
1172
1152
 
1173
1153
  # query parameters
1174
1154
  query_params = opts[:query_params] || {}
@@ -1176,7 +1156,7 @@ module Kleister
1176
1156
  # header parameters
1177
1157
  header_params = opts[:header_params] || {}
1178
1158
  # HTTP header 'Accept' (if needed)
1179
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1159
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1180
1160
 
1181
1161
  # form parameters
1182
1162
  form_params = opts[:form_params] || {}
@@ -1185,13 +1165,13 @@ module Kleister
1185
1165
  post_body = opts[:debug_body]
1186
1166
 
1187
1167
  # return_type
1188
- return_type = opts[:debug_return_type] || 'Team'
1168
+ return_type = opts[:debug_return_type] || 'Group'
1189
1169
 
1190
1170
  # auth_names
1191
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
1171
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
1192
1172
 
1193
1173
  new_options = opts.merge(
1194
- operation: :'TeamApi.show_team',
1174
+ operation: :'GroupApi.show_group',
1195
1175
  header_params: header_params,
1196
1176
  query_params: query_params,
1197
1177
  form_params: form_params,
@@ -1202,41 +1182,41 @@ module Kleister
1202
1182
 
1203
1183
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1204
1184
  if @api_client.config.debugging
1205
- @api_client.config.logger.debug "API called: TeamApi#show_team\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1185
+ @api_client.config.logger.debug "API called: GroupApi#show_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1206
1186
  end
1207
1187
  [data, status_code, headers]
1208
1188
  end
1209
1189
 
1210
- # Update a specific team
1211
- # @param team_id [String] A team identifier or slug
1212
- # @param team [Team] The team data to update
1190
+ # Update a specific group
1191
+ # @param group_id [String] A group identifier or slug
1192
+ # @param create_group_request [CreateGroupRequest] The group data to update
1213
1193
  # @param [Hash] opts the optional parameters
1214
- # @return [Team]
1215
- def update_team(team_id, team, opts = {})
1216
- data, _status_code, _headers = update_team_with_http_info(team_id, team, opts)
1194
+ # @return [Group]
1195
+ def update_group(group_id, create_group_request, opts = {})
1196
+ data, _status_code, _headers = update_group_with_http_info(group_id, create_group_request, opts)
1217
1197
  data
1218
1198
  end
1219
1199
 
1220
- # Update a specific team
1221
- # @param team_id [String] A team identifier or slug
1222
- # @param team [Team] The team data to update
1200
+ # Update a specific group
1201
+ # @param group_id [String] A group identifier or slug
1202
+ # @param create_group_request [CreateGroupRequest] The group data to update
1223
1203
  # @param [Hash] opts the optional parameters
1224
- # @return [Array<(Team, Integer, Hash)>] Team data, response status code and response headers
1225
- def update_team_with_http_info(team_id, team, opts = {})
1204
+ # @return [Array<(Group, Integer, Hash)>] Group data, response status code and response headers
1205
+ def update_group_with_http_info(group_id, create_group_request, opts = {})
1226
1206
  if @api_client.config.debugging
1227
- @api_client.config.logger.debug 'Calling API: TeamApi.update_team ...'
1207
+ @api_client.config.logger.debug 'Calling API: GroupApi.update_group ...'
1228
1208
  end
1229
- # verify the required parameter 'team_id' is set
1230
- if @api_client.config.client_side_validation && team_id.nil?
1231
- raise ArgumentError, "Missing the required parameter 'team_id' when calling TeamApi.update_team"
1209
+ # verify the required parameter 'group_id' is set
1210
+ if @api_client.config.client_side_validation && group_id.nil?
1211
+ raise ArgumentError, "Missing the required parameter 'group_id' when calling GroupApi.update_group"
1232
1212
  end
1233
- # verify the required parameter 'team' is set
1234
- if @api_client.config.client_side_validation && team.nil?
1235
- raise ArgumentError, "Missing the required parameter 'team' when calling TeamApi.update_team"
1213
+ # verify the required parameter 'create_group_request' is set
1214
+ if @api_client.config.client_side_validation && create_group_request.nil?
1215
+ raise ArgumentError, "Missing the required parameter 'create_group_request' when calling GroupApi.update_group"
1236
1216
  end
1237
1217
 
1238
1218
  # resource path
1239
- local_var_path = '/teams/{team_id}'.sub('{' + 'team_id' + '}', CGI.escape(team_id.to_s))
1219
+ local_var_path = '/groups/{group_id}'.sub('{' + 'group_id' + '}', CGI.escape(group_id.to_s))
1240
1220
 
1241
1221
  # query parameters
1242
1222
  query_params = opts[:query_params] || {}
@@ -1244,7 +1224,7 @@ module Kleister
1244
1224
  # header parameters
1245
1225
  header_params = opts[:header_params] || {}
1246
1226
  # HTTP header 'Accept' (if needed)
1247
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1227
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1248
1228
  # HTTP header 'Content-Type'
1249
1229
  content_type = @api_client.select_header_content_type(['application/json'])
1250
1230
  unless content_type.nil?
@@ -1255,16 +1235,16 @@ module Kleister
1255
1235
  form_params = opts[:form_params] || {}
1256
1236
 
1257
1237
  # http body (model)
1258
- post_body = opts[:debug_body] || @api_client.object_to_http_body(team)
1238
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_group_request)
1259
1239
 
1260
1240
  # return_type
1261
- return_type = opts[:debug_return_type] || 'Team'
1241
+ return_type = opts[:debug_return_type] || 'Group'
1262
1242
 
1263
1243
  # auth_names
1264
- auth_names = opts[:debug_auth_names] || %w[Cookie Basic Header Bearer]
1244
+ auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
1265
1245
 
1266
1246
  new_options = opts.merge(
1267
- operation: :'TeamApi.update_team',
1247
+ operation: :'GroupApi.update_group',
1268
1248
  header_params: header_params,
1269
1249
  query_params: query_params,
1270
1250
  form_params: form_params,
@@ -1275,7 +1255,7 @@ module Kleister
1275
1255
 
1276
1256
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1277
1257
  if @api_client.config.debugging
1278
- @api_client.config.logger.debug "API called: TeamApi#update_team\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1258
+ @api_client.config.logger.debug "API called: GroupApi#update_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1279
1259
  end
1280
1260
  [data, status_code, headers]
1281
1261
  end