kleister 1.14.1 → 1.15.1
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 +4 -4
- data/CHANGELOG.md +23 -0
- data/README.md +3 -3
- data/lib/kleister/api/auth_api.rb +137 -73
- data/lib/kleister/api/fabric_api.rb +37 -42
- data/lib/kleister/api/forge_api.rb +37 -42
- data/lib/kleister/api/{team_api.rb → group_api.rb} +359 -379
- data/lib/kleister/api/minecraft_api.rb +37 -42
- data/lib/kleister/api/mod_api.rb +471 -232
- data/lib/kleister/api/neoforge_api.rb +37 -42
- data/lib/kleister/api/pack_api.rb +215 -240
- data/lib/kleister/api/profile_api.rb +16 -16
- data/lib/kleister/api/quilt_api.rb +37 -42
- data/lib/kleister/api/user_api.rb +259 -279
- data/lib/kleister/api_client.rb +1 -1
- data/lib/kleister/api_error.rb +1 -1
- data/lib/kleister/configuration.rb +1 -8
- data/lib/kleister/models/{build_version_params.rb → attach_build_to_version_request.rb} +8 -20
- data/lib/kleister/models/{quilt_build_params.rb → attach_minecraft_to_build_request.rb} +8 -20
- data/lib/kleister/models/auth_token.rb +1 -1
- data/lib/kleister/models/auth_verify.rb +1 -1
- data/lib/kleister/models/build.rb +3 -13
- data/lib/kleister/models/build_version.rb +2 -3
- data/lib/kleister/models/{pack_back.rb → create_build_request.rb} +76 -58
- data/lib/kleister/models/{mods.rb → create_group_request.rb} +19 -18
- data/lib/kleister/models/{pack_icon.rb → create_mod_request.rb} +48 -54
- data/lib/kleister/models/{forge_builds.rb → create_pack_request.rb} +33 -23
- data/lib/kleister/models/create_user_request.rb +257 -0
- data/lib/kleister/models/{builds.rb → create_version_request.rb} +25 -23
- data/lib/kleister/models/{packs.rb → delete_group_from_mod_request.rb} +20 -21
- data/lib/kleister/models/delete_group_from_pack_request.rb +219 -0
- data/lib/kleister/models/delete_pack_from_group_request.rb +219 -0
- data/lib/kleister/models/{users.rb → delete_pack_from_user_request.rb} +20 -21
- data/lib/kleister/models/fabric.rb +1 -1
- data/lib/kleister/models/forge.rb +1 -1
- data/lib/kleister/models/{team.rb → group.rb} +5 -5
- data/lib/kleister/models/{team_mod.rb → group_mod.rb} +21 -21
- data/lib/kleister/models/{team_pack.rb → group_pack.rb} +21 -21
- data/lib/kleister/models/{build_versions.rb → list_build_versions200_response.rb} +56 -18
- data/lib/kleister/models/{pack_teams.rb → list_builds200_response.rb} +59 -20
- data/lib/kleister/models/{fabric_builds.rb → list_fabric_builds200_response.rb} +56 -18
- data/lib/kleister/models/{fabrics.rb → list_fabrics200_response.rb} +52 -13
- data/lib/kleister/models/list_forge_builds200_response.rb +266 -0
- data/lib/kleister/models/{forges.rb → list_forges200_response.rb} +52 -13
- data/lib/kleister/models/list_group_mods200_response.rb +266 -0
- data/lib/kleister/models/list_group_packs200_response.rb +266 -0
- data/lib/kleister/models/list_group_users200_response.rb +266 -0
- data/lib/kleister/models/list_groups200_response.rb +259 -0
- data/lib/kleister/models/{minecraft_builds.rb → list_minecraft_builds200_response.rb} +56 -18
- data/lib/kleister/models/list_minecrafts200_response.rb +259 -0
- data/lib/kleister/models/list_mod_groups200_response.rb +266 -0
- data/lib/kleister/models/list_mod_users200_response.rb +266 -0
- data/lib/kleister/models/{team_mods.rb → list_mods200_response.rb} +52 -20
- data/lib/kleister/models/{neoforge_builds.rb → list_neoforge_builds200_response.rb} +56 -18
- data/lib/kleister/models/{neoforges.rb → list_neoforges200_response.rb} +52 -13
- data/lib/kleister/models/list_pack_groups200_response.rb +266 -0
- data/lib/kleister/models/{pack_users.rb → list_pack_users200_response.rb} +56 -17
- data/lib/kleister/models/list_packs200_response.rb +259 -0
- data/lib/kleister/models/{mod_teams.rb → list_providers200_response.rb} +31 -23
- data/lib/kleister/models/{quilt_builds.rb → list_quilt_builds200_response.rb} +56 -17
- data/lib/kleister/models/{quilts.rb → list_quilts200_response.rb} +52 -13
- data/lib/kleister/models/list_user_groups200_response.rb +266 -0
- data/lib/kleister/models/{user_teams.rb → list_user_mods200_response.rb} +59 -20
- data/lib/kleister/models/{user_packs.rb → list_user_packs200_response.rb} +56 -17
- data/lib/kleister/models/{team_users.rb → list_users200_response.rb} +52 -20
- data/lib/kleister/models/{version_builds.rb → list_version_builds200_response.rb} +56 -18
- data/lib/kleister/models/{versions.rb → list_versions200_response.rb} +52 -13
- data/lib/kleister/models/{auth_login.rb → login_auth_request.rb} +4 -4
- data/lib/kleister/models/minecraft.rb +1 -1
- data/lib/kleister/models/mod.rb +10 -3
- data/lib/kleister/models/{team_packs.rb → mod_avatar.rb} +32 -23
- data/lib/kleister/models/neoforge.rb +1 -1
- data/lib/kleister/models/notification.rb +2 -3
- data/lib/kleister/models/pack.rb +8 -22
- data/lib/kleister/models/{minecrafts.rb → pack_avatar.rb} +34 -18
- data/lib/kleister/models/{mod_users.rb → permit_group_mod_request.rb} +29 -25
- data/lib/kleister/models/{forge_build_params.rb → permit_group_pack_request.rb} +15 -17
- data/lib/kleister/models/{fabric_build_params.rb → permit_pack_group_request.rb} +24 -26
- data/lib/kleister/models/{user_mods.rb → permit_pack_user_request.rb} +29 -25
- data/lib/kleister/models/profile.rb +20 -20
- data/lib/kleister/models/provider.rb +1 -1
- data/lib/kleister/models/quilt.rb +1 -1
- data/lib/kleister/models/{teams.rb → redirect_auth_request.rb} +20 -21
- data/lib/kleister/models/update_profile_request.rb +237 -0
- data/lib/kleister/models/update_user_request.rb +253 -0
- data/lib/kleister/models/user.rb +1 -1
- data/lib/kleister/models/user_auth.rb +1 -1
- data/lib/kleister/models/{user_team.rb → user_group.rb} +23 -23
- data/lib/kleister/models/user_mod.rb +1 -1
- data/lib/kleister/models/user_pack.rb +1 -1
- data/lib/kleister/models/validation.rb +1 -1
- data/lib/kleister/models/version.rb +3 -11
- data/lib/kleister/models/version_file.rb +3 -18
- data/lib/kleister/version.rb +2 -2
- data/lib/kleister.rb +57 -56
- metadata +58 -57
- data/lib/kleister/models/minecraft_build_params.rb +0 -233
- data/lib/kleister/models/mod_team_params.rb +0 -265
- data/lib/kleister/models/mod_user_params.rb +0 -265
- data/lib/kleister/models/neoforge_build_params.rb +0 -233
- data/lib/kleister/models/pack_logo.rb +0 -275
- data/lib/kleister/models/pack_team_params.rb +0 -265
- data/lib/kleister/models/pack_user_params.rb +0 -265
- data/lib/kleister/models/providers.rb +0 -220
- data/lib/kleister/models/team_mod_params.rb +0 -265
- data/lib/kleister/models/team_pack_params.rb +0 -265
- data/lib/kleister/models/team_user_params.rb +0 -265
- data/lib/kleister/models/user_mod_params.rb +0 -265
- data/lib/kleister/models/user_pack_params.rb +0 -265
- data/lib/kleister/models/user_team_params.rb +0 -265
- data/lib/kleister/models/version_build_params.rb +0 -233
@@ -5,7 +5,7 @@
|
|
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.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'cgi'
|
@@ -20,20 +20,20 @@ module Kleister
|
|
20
20
|
|
21
21
|
# Attach a build to a Fabric version
|
22
22
|
# @param fabric_id [String] A fabric identifier or slug
|
23
|
-
# @param
|
23
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The fabric build data to create or update
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [Notification]
|
26
|
-
def attach_fabric_to_build(fabric_id,
|
27
|
-
data, _status_code, _headers = attach_fabric_to_build_with_http_info(fabric_id,
|
26
|
+
def attach_fabric_to_build(fabric_id, attach_minecraft_to_build_request, opts = {})
|
27
|
+
data, _status_code, _headers = attach_fabric_to_build_with_http_info(fabric_id, attach_minecraft_to_build_request, opts)
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
31
31
|
# Attach a build to a Fabric version
|
32
32
|
# @param fabric_id [String] A fabric identifier or slug
|
33
|
-
# @param
|
33
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The fabric build data to create or update
|
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_fabric_to_build_with_http_info(fabric_id,
|
36
|
+
def attach_fabric_to_build_with_http_info(fabric_id, attach_minecraft_to_build_request, opts = {})
|
37
37
|
if @api_client.config.debugging
|
38
38
|
@api_client.config.logger.debug 'Calling API: FabricApi.attach_fabric_to_build ...'
|
39
39
|
end
|
@@ -41,9 +41,9 @@ module Kleister
|
|
41
41
|
if @api_client.config.client_side_validation && fabric_id.nil?
|
42
42
|
raise ArgumentError, "Missing the required parameter 'fabric_id' when calling FabricApi.attach_fabric_to_build"
|
43
43
|
end
|
44
|
-
# verify the required parameter '
|
45
|
-
if @api_client.config.client_side_validation &&
|
46
|
-
raise ArgumentError, "Missing the required parameter '
|
44
|
+
# verify the required parameter 'attach_minecraft_to_build_request' is set
|
45
|
+
if @api_client.config.client_side_validation && attach_minecraft_to_build_request.nil?
|
46
|
+
raise ArgumentError, "Missing the required parameter 'attach_minecraft_to_build_request' when calling FabricApi.attach_fabric_to_build"
|
47
47
|
end
|
48
48
|
|
49
49
|
# resource path
|
@@ -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,13 +66,13 @@ 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(
|
69
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(attach_minecraft_to_build_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[
|
75
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
76
76
|
|
77
77
|
new_options = opts.merge(
|
78
78
|
operation: :'FabricApi.attach_fabric_to_build',
|
@@ -93,20 +93,20 @@ module Kleister
|
|
93
93
|
|
94
94
|
# Unlink a build from a Fabric version
|
95
95
|
# @param fabric_id [String] A fabric identifier or slug
|
96
|
-
# @param
|
96
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The fabric build data to create or update
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
98
|
# @return [Notification]
|
99
|
-
def delete_fabric_from_build(fabric_id,
|
100
|
-
data, _status_code, _headers = delete_fabric_from_build_with_http_info(fabric_id,
|
99
|
+
def delete_fabric_from_build(fabric_id, attach_minecraft_to_build_request, opts = {})
|
100
|
+
data, _status_code, _headers = delete_fabric_from_build_with_http_info(fabric_id, attach_minecraft_to_build_request, opts)
|
101
101
|
data
|
102
102
|
end
|
103
103
|
|
104
104
|
# Unlink a build from a Fabric version
|
105
105
|
# @param fabric_id [String] A fabric identifier or slug
|
106
|
-
# @param
|
106
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The fabric build data to create or update
|
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 delete_fabric_from_build_with_http_info(fabric_id,
|
109
|
+
def delete_fabric_from_build_with_http_info(fabric_id, attach_minecraft_to_build_request, opts = {})
|
110
110
|
if @api_client.config.debugging
|
111
111
|
@api_client.config.logger.debug 'Calling API: FabricApi.delete_fabric_from_build ...'
|
112
112
|
end
|
@@ -114,9 +114,9 @@ module Kleister
|
|
114
114
|
if @api_client.config.client_side_validation && fabric_id.nil?
|
115
115
|
raise ArgumentError, "Missing the required parameter 'fabric_id' when calling FabricApi.delete_fabric_from_build"
|
116
116
|
end
|
117
|
-
# verify the required parameter '
|
118
|
-
if @api_client.config.client_side_validation &&
|
119
|
-
raise ArgumentError, "Missing the required parameter '
|
117
|
+
# verify the required parameter 'attach_minecraft_to_build_request' is set
|
118
|
+
if @api_client.config.client_side_validation && attach_minecraft_to_build_request.nil?
|
119
|
+
raise ArgumentError, "Missing the required parameter 'attach_minecraft_to_build_request' when calling FabricApi.delete_fabric_from_build"
|
120
120
|
end
|
121
121
|
|
122
122
|
# resource path
|
@@ -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,13 +139,13 @@ 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(
|
142
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(attach_minecraft_to_build_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[
|
148
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
149
149
|
|
150
150
|
new_options = opts.merge(
|
151
151
|
operation: :'FabricApi.delete_fabric_from_build',
|
@@ -168,11 +168,11 @@ module Kleister
|
|
168
168
|
# @param fabric_id [String] A fabric identifier or slug
|
169
169
|
# @param [Hash] opts the optional parameters
|
170
170
|
# @option opts [String] :search Search query
|
171
|
-
# @option opts [String] :sort Sorting column
|
171
|
+
# @option opts [String] :sort Sorting column
|
172
172
|
# @option opts [String] :order Sorting order (default to 'asc')
|
173
173
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
174
174
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
175
|
-
# @return [
|
175
|
+
# @return [ListFabricBuilds200Response]
|
176
176
|
def list_fabric_builds(fabric_id, opts = {})
|
177
177
|
data, _status_code, _headers = list_fabric_builds_with_http_info(fabric_id, opts)
|
178
178
|
data
|
@@ -182,11 +182,11 @@ module Kleister
|
|
182
182
|
# @param fabric_id [String] A fabric identifier or slug
|
183
183
|
# @param [Hash] opts the optional parameters
|
184
184
|
# @option opts [String] :search Search query
|
185
|
-
# @option opts [String] :sort Sorting column
|
185
|
+
# @option opts [String] :sort Sorting column
|
186
186
|
# @option opts [String] :order Sorting order (default to 'asc')
|
187
187
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
188
188
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
189
|
-
# @return [Array<(
|
189
|
+
# @return [Array<(ListFabricBuilds200Response, Integer, Hash)>] ListFabricBuilds200Response data, response status code and response headers
|
190
190
|
def list_fabric_builds_with_http_info(fabric_id, opts = {})
|
191
191
|
if @api_client.config.debugging
|
192
192
|
@api_client.config.logger.debug 'Calling API: FabricApi.list_fabric_builds ...'
|
@@ -196,11 +196,6 @@ module Kleister
|
|
196
196
|
raise ArgumentError, "Missing the required parameter 'fabric_id' when calling FabricApi.list_fabric_builds"
|
197
197
|
end
|
198
198
|
|
199
|
-
allowable_values = %w[build_name build_public pack_slug pack_name]
|
200
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
201
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
202
|
-
end
|
203
|
-
|
204
199
|
allowable_values = %w[asc desc]
|
205
200
|
if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
|
206
201
|
raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
@@ -220,7 +215,7 @@ module Kleister
|
|
220
215
|
# header parameters
|
221
216
|
header_params = opts[:header_params] || {}
|
222
217
|
# HTTP header 'Accept' (if needed)
|
223
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
218
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
224
219
|
|
225
220
|
# form parameters
|
226
221
|
form_params = opts[:form_params] || {}
|
@@ -229,10 +224,10 @@ module Kleister
|
|
229
224
|
post_body = opts[:debug_body]
|
230
225
|
|
231
226
|
# return_type
|
232
|
-
return_type = opts[:debug_return_type] || '
|
227
|
+
return_type = opts[:debug_return_type] || 'ListFabricBuilds200Response'
|
233
228
|
|
234
229
|
# auth_names
|
235
|
-
auth_names = opts[:debug_auth_names] || %w[
|
230
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
236
231
|
|
237
232
|
new_options = opts.merge(
|
238
233
|
operation: :'FabricApi.list_fabric_builds',
|
@@ -254,7 +249,7 @@ module Kleister
|
|
254
249
|
# Fetch the available Fabric versions
|
255
250
|
# @param [Hash] opts the optional parameters
|
256
251
|
# @option opts [String] :search Search query
|
257
|
-
# @return [
|
252
|
+
# @return [ListFabrics200Response]
|
258
253
|
def list_fabrics(opts = {})
|
259
254
|
data, _status_code, _headers = list_fabrics_with_http_info(opts)
|
260
255
|
data
|
@@ -263,7 +258,7 @@ module Kleister
|
|
263
258
|
# Fetch the available Fabric versions
|
264
259
|
# @param [Hash] opts the optional parameters
|
265
260
|
# @option opts [String] :search Search query
|
266
|
-
# @return [Array<(
|
261
|
+
# @return [Array<(ListFabrics200Response, Integer, Hash)>] ListFabrics200Response data, response status code and response headers
|
267
262
|
def list_fabrics_with_http_info(opts = {})
|
268
263
|
if @api_client.config.debugging
|
269
264
|
@api_client.config.logger.debug 'Calling API: FabricApi.list_fabrics ...'
|
@@ -278,7 +273,7 @@ module Kleister
|
|
278
273
|
# header parameters
|
279
274
|
header_params = opts[:header_params] || {}
|
280
275
|
# HTTP header 'Accept' (if needed)
|
281
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
282
277
|
|
283
278
|
# form parameters
|
284
279
|
form_params = opts[:form_params] || {}
|
@@ -287,10 +282,10 @@ module Kleister
|
|
287
282
|
post_body = opts[:debug_body]
|
288
283
|
|
289
284
|
# return_type
|
290
|
-
return_type = opts[:debug_return_type] || '
|
285
|
+
return_type = opts[:debug_return_type] || 'ListFabrics200Response'
|
291
286
|
|
292
287
|
# auth_names
|
293
|
-
auth_names = opts[:debug_auth_names] || %w[
|
288
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
294
289
|
|
295
290
|
new_options = opts.merge(
|
296
291
|
operation: :'FabricApi.list_fabrics',
|
@@ -333,7 +328,7 @@ module Kleister
|
|
333
328
|
# header parameters
|
334
329
|
header_params = opts[:header_params] || {}
|
335
330
|
# HTTP header 'Accept' (if needed)
|
336
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
331
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
337
332
|
|
338
333
|
# form parameters
|
339
334
|
form_params = opts[:form_params] || {}
|
@@ -345,7 +340,7 @@ module Kleister
|
|
345
340
|
return_type = opts[:debug_return_type] || 'Notification'
|
346
341
|
|
347
342
|
# auth_names
|
348
|
-
auth_names = opts[:debug_auth_names] || %w[
|
343
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
349
344
|
|
350
345
|
new_options = opts.merge(
|
351
346
|
operation: :'FabricApi.update_fabric',
|
@@ -5,7 +5,7 @@
|
|
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.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
require 'cgi'
|
@@ -20,20 +20,20 @@ module Kleister
|
|
20
20
|
|
21
21
|
# Attach a build to a Forge version
|
22
22
|
# @param forge_id [String] A forge identifier or slug
|
23
|
-
# @param
|
23
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The forge build data to create or update
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [Notification]
|
26
|
-
def attach_forge_to_build(forge_id,
|
27
|
-
data, _status_code, _headers = attach_forge_to_build_with_http_info(forge_id,
|
26
|
+
def attach_forge_to_build(forge_id, attach_minecraft_to_build_request, opts = {})
|
27
|
+
data, _status_code, _headers = attach_forge_to_build_with_http_info(forge_id, attach_minecraft_to_build_request, opts)
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
31
31
|
# Attach a build to a Forge version
|
32
32
|
# @param forge_id [String] A forge identifier or slug
|
33
|
-
# @param
|
33
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The forge build data to create or update
|
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_forge_to_build_with_http_info(forge_id,
|
36
|
+
def attach_forge_to_build_with_http_info(forge_id, attach_minecraft_to_build_request, opts = {})
|
37
37
|
if @api_client.config.debugging
|
38
38
|
@api_client.config.logger.debug 'Calling API: ForgeApi.attach_forge_to_build ...'
|
39
39
|
end
|
@@ -41,9 +41,9 @@ module Kleister
|
|
41
41
|
if @api_client.config.client_side_validation && forge_id.nil?
|
42
42
|
raise ArgumentError, "Missing the required parameter 'forge_id' when calling ForgeApi.attach_forge_to_build"
|
43
43
|
end
|
44
|
-
# verify the required parameter '
|
45
|
-
if @api_client.config.client_side_validation &&
|
46
|
-
raise ArgumentError, "Missing the required parameter '
|
44
|
+
# verify the required parameter 'attach_minecraft_to_build_request' is set
|
45
|
+
if @api_client.config.client_side_validation && attach_minecraft_to_build_request.nil?
|
46
|
+
raise ArgumentError, "Missing the required parameter 'attach_minecraft_to_build_request' when calling ForgeApi.attach_forge_to_build"
|
47
47
|
end
|
48
48
|
|
49
49
|
# resource path
|
@@ -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,13 +66,13 @@ 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(
|
69
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(attach_minecraft_to_build_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[
|
75
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
76
76
|
|
77
77
|
new_options = opts.merge(
|
78
78
|
operation: :'ForgeApi.attach_forge_to_build',
|
@@ -93,20 +93,20 @@ module Kleister
|
|
93
93
|
|
94
94
|
# Unlink a build from a Forge version
|
95
95
|
# @param forge_id [String] A forge identifier or slug
|
96
|
-
# @param
|
96
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The forge build data to create or update
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
98
|
# @return [Notification]
|
99
|
-
def delete_forge_from_build(forge_id,
|
100
|
-
data, _status_code, _headers = delete_forge_from_build_with_http_info(forge_id,
|
99
|
+
def delete_forge_from_build(forge_id, attach_minecraft_to_build_request, opts = {})
|
100
|
+
data, _status_code, _headers = delete_forge_from_build_with_http_info(forge_id, attach_minecraft_to_build_request, opts)
|
101
101
|
data
|
102
102
|
end
|
103
103
|
|
104
104
|
# Unlink a build from a Forge version
|
105
105
|
# @param forge_id [String] A forge identifier or slug
|
106
|
-
# @param
|
106
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The forge build data to create or update
|
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 delete_forge_from_build_with_http_info(forge_id,
|
109
|
+
def delete_forge_from_build_with_http_info(forge_id, attach_minecraft_to_build_request, opts = {})
|
110
110
|
if @api_client.config.debugging
|
111
111
|
@api_client.config.logger.debug 'Calling API: ForgeApi.delete_forge_from_build ...'
|
112
112
|
end
|
@@ -114,9 +114,9 @@ module Kleister
|
|
114
114
|
if @api_client.config.client_side_validation && forge_id.nil?
|
115
115
|
raise ArgumentError, "Missing the required parameter 'forge_id' when calling ForgeApi.delete_forge_from_build"
|
116
116
|
end
|
117
|
-
# verify the required parameter '
|
118
|
-
if @api_client.config.client_side_validation &&
|
119
|
-
raise ArgumentError, "Missing the required parameter '
|
117
|
+
# verify the required parameter 'attach_minecraft_to_build_request' is set
|
118
|
+
if @api_client.config.client_side_validation && attach_minecraft_to_build_request.nil?
|
119
|
+
raise ArgumentError, "Missing the required parameter 'attach_minecraft_to_build_request' when calling ForgeApi.delete_forge_from_build"
|
120
120
|
end
|
121
121
|
|
122
122
|
# resource path
|
@@ -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,13 +139,13 @@ 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(
|
142
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(attach_minecraft_to_build_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[
|
148
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
149
149
|
|
150
150
|
new_options = opts.merge(
|
151
151
|
operation: :'ForgeApi.delete_forge_from_build',
|
@@ -168,11 +168,11 @@ module Kleister
|
|
168
168
|
# @param forge_id [String] A forge identifier or slug
|
169
169
|
# @param [Hash] opts the optional parameters
|
170
170
|
# @option opts [String] :search Search query
|
171
|
-
# @option opts [String] :sort Sorting column
|
171
|
+
# @option opts [String] :sort Sorting column
|
172
172
|
# @option opts [String] :order Sorting order (default to 'asc')
|
173
173
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
174
174
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
175
|
-
# @return [
|
175
|
+
# @return [ListForgeBuilds200Response]
|
176
176
|
def list_forge_builds(forge_id, opts = {})
|
177
177
|
data, _status_code, _headers = list_forge_builds_with_http_info(forge_id, opts)
|
178
178
|
data
|
@@ -182,11 +182,11 @@ module Kleister
|
|
182
182
|
# @param forge_id [String] A forge identifier or slug
|
183
183
|
# @param [Hash] opts the optional parameters
|
184
184
|
# @option opts [String] :search Search query
|
185
|
-
# @option opts [String] :sort Sorting column
|
185
|
+
# @option opts [String] :sort Sorting column
|
186
186
|
# @option opts [String] :order Sorting order (default to 'asc')
|
187
187
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
188
188
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
189
|
-
# @return [Array<(
|
189
|
+
# @return [Array<(ListForgeBuilds200Response, Integer, Hash)>] ListForgeBuilds200Response data, response status code and response headers
|
190
190
|
def list_forge_builds_with_http_info(forge_id, opts = {})
|
191
191
|
if @api_client.config.debugging
|
192
192
|
@api_client.config.logger.debug 'Calling API: ForgeApi.list_forge_builds ...'
|
@@ -196,11 +196,6 @@ module Kleister
|
|
196
196
|
raise ArgumentError, "Missing the required parameter 'forge_id' when calling ForgeApi.list_forge_builds"
|
197
197
|
end
|
198
198
|
|
199
|
-
allowable_values = %w[build_name build_public pack_slug pack_name]
|
200
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
201
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
202
|
-
end
|
203
|
-
|
204
199
|
allowable_values = %w[asc desc]
|
205
200
|
if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
|
206
201
|
raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
@@ -220,7 +215,7 @@ module Kleister
|
|
220
215
|
# header parameters
|
221
216
|
header_params = opts[:header_params] || {}
|
222
217
|
# HTTP header 'Accept' (if needed)
|
223
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
218
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
224
219
|
|
225
220
|
# form parameters
|
226
221
|
form_params = opts[:form_params] || {}
|
@@ -229,10 +224,10 @@ module Kleister
|
|
229
224
|
post_body = opts[:debug_body]
|
230
225
|
|
231
226
|
# return_type
|
232
|
-
return_type = opts[:debug_return_type] || '
|
227
|
+
return_type = opts[:debug_return_type] || 'ListForgeBuilds200Response'
|
233
228
|
|
234
229
|
# auth_names
|
235
|
-
auth_names = opts[:debug_auth_names] || %w[
|
230
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
236
231
|
|
237
232
|
new_options = opts.merge(
|
238
233
|
operation: :'ForgeApi.list_forge_builds',
|
@@ -254,7 +249,7 @@ module Kleister
|
|
254
249
|
# Fetch the available Forge versions
|
255
250
|
# @param [Hash] opts the optional parameters
|
256
251
|
# @option opts [String] :search Search query
|
257
|
-
# @return [
|
252
|
+
# @return [ListForges200Response]
|
258
253
|
def list_forges(opts = {})
|
259
254
|
data, _status_code, _headers = list_forges_with_http_info(opts)
|
260
255
|
data
|
@@ -263,7 +258,7 @@ module Kleister
|
|
263
258
|
# Fetch the available Forge versions
|
264
259
|
# @param [Hash] opts the optional parameters
|
265
260
|
# @option opts [String] :search Search query
|
266
|
-
# @return [Array<(
|
261
|
+
# @return [Array<(ListForges200Response, Integer, Hash)>] ListForges200Response data, response status code and response headers
|
267
262
|
def list_forges_with_http_info(opts = {})
|
268
263
|
if @api_client.config.debugging
|
269
264
|
@api_client.config.logger.debug 'Calling API: ForgeApi.list_forges ...'
|
@@ -278,7 +273,7 @@ module Kleister
|
|
278
273
|
# header parameters
|
279
274
|
header_params = opts[:header_params] || {}
|
280
275
|
# HTTP header 'Accept' (if needed)
|
281
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
282
277
|
|
283
278
|
# form parameters
|
284
279
|
form_params = opts[:form_params] || {}
|
@@ -287,10 +282,10 @@ module Kleister
|
|
287
282
|
post_body = opts[:debug_body]
|
288
283
|
|
289
284
|
# return_type
|
290
|
-
return_type = opts[:debug_return_type] || '
|
285
|
+
return_type = opts[:debug_return_type] || 'ListForges200Response'
|
291
286
|
|
292
287
|
# auth_names
|
293
|
-
auth_names = opts[:debug_auth_names] || %w[
|
288
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
294
289
|
|
295
290
|
new_options = opts.merge(
|
296
291
|
operation: :'ForgeApi.list_forges',
|
@@ -333,7 +328,7 @@ module Kleister
|
|
333
328
|
# header parameters
|
334
329
|
header_params = opts[:header_params] || {}
|
335
330
|
# HTTP header 'Accept' (if needed)
|
336
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
331
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
337
332
|
|
338
333
|
# form parameters
|
339
334
|
form_params = opts[:form_params] || {}
|
@@ -345,7 +340,7 @@ module Kleister
|
|
345
340
|
return_type = opts[:debug_return_type] || 'Notification'
|
346
341
|
|
347
342
|
# auth_names
|
348
|
-
auth_names = opts[:debug_auth_names] || %w[
|
343
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
349
344
|
|
350
345
|
new_options = opts.merge(
|
351
346
|
operation: :'ForgeApi.update_forge',
|