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.
- 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
data/lib/kleister/api/mod_api.rb
CHANGED
@@ -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'
|
@@ -18,36 +18,36 @@ module Kleister
|
|
18
18
|
@api_client = api_client
|
19
19
|
end
|
20
20
|
|
21
|
-
# Attach a
|
21
|
+
# Attach a group to mod
|
22
22
|
# @param mod_id [String] A mod identifier or slug
|
23
|
-
# @param
|
23
|
+
# @param permit_pack_group_request [PermitPackGroupRequest] The mod group data to permit
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [Notification]
|
26
|
-
def
|
27
|
-
data, _status_code, _headers =
|
26
|
+
def attach_mod_to_group(mod_id, permit_pack_group_request, opts = {})
|
27
|
+
data, _status_code, _headers = attach_mod_to_group_with_http_info(mod_id, permit_pack_group_request, opts)
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
31
|
-
# Attach a
|
31
|
+
# Attach a group to mod
|
32
32
|
# @param mod_id [String] A mod identifier or slug
|
33
|
-
# @param
|
33
|
+
# @param permit_pack_group_request [PermitPackGroupRequest] The mod group 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
|
36
|
+
def attach_mod_to_group_with_http_info(mod_id, permit_pack_group_request, opts = {})
|
37
37
|
if @api_client.config.debugging
|
38
|
-
@api_client.config.logger.debug 'Calling API: ModApi.
|
38
|
+
@api_client.config.logger.debug 'Calling API: ModApi.attach_mod_to_group ...'
|
39
39
|
end
|
40
40
|
# verify the required parameter 'mod_id' is set
|
41
41
|
if @api_client.config.client_side_validation && mod_id.nil?
|
42
|
-
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.
|
42
|
+
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.attach_mod_to_group"
|
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 'permit_pack_group_request' is set
|
45
|
+
if @api_client.config.client_side_validation && permit_pack_group_request.nil?
|
46
|
+
raise ArgumentError, "Missing the required parameter 'permit_pack_group_request' when calling ModApi.attach_mod_to_group"
|
47
47
|
end
|
48
48
|
|
49
49
|
# resource path
|
50
|
-
local_var_path = '/mods/{mod_id}/
|
50
|
+
local_var_path = '/mods/{mod_id}/groups'.sub('{' + 'mod_id' + '}', CGI.escape(mod_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(
|
69
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_pack_group_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
|
-
operation: :'ModApi.
|
78
|
+
operation: :'ModApi.attach_mod_to_group',
|
79
79
|
header_params: header_params,
|
80
80
|
query_params: query_params,
|
81
81
|
form_params: form_params,
|
@@ -86,27 +86,27 @@ 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: ModApi#
|
89
|
+
@api_client.config.logger.debug "API called: ModApi#attach_mod_to_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
90
|
end
|
91
91
|
[data, status_code, headers]
|
92
92
|
end
|
93
93
|
|
94
94
|
# Attach a user to mod
|
95
95
|
# @param mod_id [String] A mod identifier or slug
|
96
|
-
# @param
|
96
|
+
# @param permit_pack_user_request [PermitPackUserRequest] The mod user data to permit
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
98
|
# @return [Notification]
|
99
|
-
def attach_mod_to_user(mod_id,
|
100
|
-
data, _status_code, _headers = attach_mod_to_user_with_http_info(mod_id,
|
99
|
+
def attach_mod_to_user(mod_id, permit_pack_user_request, opts = {})
|
100
|
+
data, _status_code, _headers = attach_mod_to_user_with_http_info(mod_id, permit_pack_user_request, opts)
|
101
101
|
data
|
102
102
|
end
|
103
103
|
|
104
104
|
# Attach a user to mod
|
105
105
|
# @param mod_id [String] A mod identifier or slug
|
106
|
-
# @param
|
106
|
+
# @param permit_pack_user_request [PermitPackUserRequest] The mod user 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_mod_to_user_with_http_info(mod_id,
|
109
|
+
def attach_mod_to_user_with_http_info(mod_id, permit_pack_user_request, opts = {})
|
110
110
|
if @api_client.config.debugging
|
111
111
|
@api_client.config.logger.debug 'Calling API: ModApi.attach_mod_to_user ...'
|
112
112
|
end
|
@@ -114,9 +114,9 @@ module Kleister
|
|
114
114
|
if @api_client.config.client_side_validation && mod_id.nil?
|
115
115
|
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.attach_mod_to_user"
|
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 'permit_pack_user_request' is set
|
118
|
+
if @api_client.config.client_side_validation && permit_pack_user_request.nil?
|
119
|
+
raise ArgumentError, "Missing the required parameter 'permit_pack_user_request' when calling ModApi.attach_mod_to_user"
|
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(permit_pack_user_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: :'ModApi.attach_mod_to_user',
|
@@ -167,21 +167,21 @@ module Kleister
|
|
167
167
|
# Attach a build to a version
|
168
168
|
# @param mod_id [String] A mod identifier or slug
|
169
169
|
# @param version_id [String] A version identifier or slug
|
170
|
-
# @param
|
170
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The version build data to create or delete
|
171
171
|
# @param [Hash] opts the optional parameters
|
172
172
|
# @return [Notification]
|
173
|
-
def attach_version_to_build(mod_id, version_id,
|
174
|
-
data, _status_code, _headers = attach_version_to_build_with_http_info(mod_id, version_id,
|
173
|
+
def attach_version_to_build(mod_id, version_id, attach_minecraft_to_build_request, opts = {})
|
174
|
+
data, _status_code, _headers = attach_version_to_build_with_http_info(mod_id, version_id, attach_minecraft_to_build_request, opts)
|
175
175
|
data
|
176
176
|
end
|
177
177
|
|
178
178
|
# Attach a build to a version
|
179
179
|
# @param mod_id [String] A mod identifier or slug
|
180
180
|
# @param version_id [String] A version identifier or slug
|
181
|
-
# @param
|
181
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The version build data to create or delete
|
182
182
|
# @param [Hash] opts the optional parameters
|
183
183
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
184
|
-
def attach_version_to_build_with_http_info(mod_id, version_id,
|
184
|
+
def attach_version_to_build_with_http_info(mod_id, version_id, attach_minecraft_to_build_request, opts = {})
|
185
185
|
if @api_client.config.debugging
|
186
186
|
@api_client.config.logger.debug 'Calling API: ModApi.attach_version_to_build ...'
|
187
187
|
end
|
@@ -193,9 +193,9 @@ module Kleister
|
|
193
193
|
if @api_client.config.client_side_validation && version_id.nil?
|
194
194
|
raise ArgumentError, "Missing the required parameter 'version_id' when calling ModApi.attach_version_to_build"
|
195
195
|
end
|
196
|
-
# verify the required parameter '
|
197
|
-
if @api_client.config.client_side_validation &&
|
198
|
-
raise ArgumentError, "Missing the required parameter '
|
196
|
+
# verify the required parameter 'attach_minecraft_to_build_request' is set
|
197
|
+
if @api_client.config.client_side_validation && attach_minecraft_to_build_request.nil?
|
198
|
+
raise ArgumentError, "Missing the required parameter 'attach_minecraft_to_build_request' when calling ModApi.attach_version_to_build"
|
199
199
|
end
|
200
200
|
|
201
201
|
# resource path
|
@@ -207,7 +207,7 @@ module Kleister
|
|
207
207
|
# header parameters
|
208
208
|
header_params = opts[:header_params] || {}
|
209
209
|
# HTTP header 'Accept' (if needed)
|
210
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
210
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
211
211
|
# HTTP header 'Content-Type'
|
212
212
|
content_type = @api_client.select_header_content_type(['application/json'])
|
213
213
|
unless content_type.nil?
|
@@ -218,13 +218,13 @@ module Kleister
|
|
218
218
|
form_params = opts[:form_params] || {}
|
219
219
|
|
220
220
|
# http body (model)
|
221
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
221
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(attach_minecraft_to_build_request)
|
222
222
|
|
223
223
|
# return_type
|
224
224
|
return_type = opts[:debug_return_type] || 'Notification'
|
225
225
|
|
226
226
|
# auth_names
|
227
|
-
auth_names = opts[:debug_auth_names] || %w[
|
227
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
228
228
|
|
229
229
|
new_options = opts.merge(
|
230
230
|
operation: :'ModApi.attach_version_to_build',
|
@@ -244,25 +244,25 @@ module Kleister
|
|
244
244
|
end
|
245
245
|
|
246
246
|
# Create a new mod
|
247
|
-
# @param
|
247
|
+
# @param create_mod_request [CreateModRequest] The mod data to create
|
248
248
|
# @param [Hash] opts the optional parameters
|
249
249
|
# @return [Mod]
|
250
|
-
def create_mod(
|
251
|
-
data, _status_code, _headers = create_mod_with_http_info(
|
250
|
+
def create_mod(create_mod_request, opts = {})
|
251
|
+
data, _status_code, _headers = create_mod_with_http_info(create_mod_request, opts)
|
252
252
|
data
|
253
253
|
end
|
254
254
|
|
255
255
|
# Create a new mod
|
256
|
-
# @param
|
256
|
+
# @param create_mod_request [CreateModRequest] The mod data to create
|
257
257
|
# @param [Hash] opts the optional parameters
|
258
258
|
# @return [Array<(Mod, Integer, Hash)>] Mod data, response status code and response headers
|
259
|
-
def create_mod_with_http_info(
|
259
|
+
def create_mod_with_http_info(create_mod_request, opts = {})
|
260
260
|
if @api_client.config.debugging
|
261
261
|
@api_client.config.logger.debug 'Calling API: ModApi.create_mod ...'
|
262
262
|
end
|
263
|
-
# verify the required parameter '
|
264
|
-
if @api_client.config.client_side_validation &&
|
265
|
-
raise ArgumentError, "Missing the required parameter '
|
263
|
+
# verify the required parameter 'create_mod_request' is set
|
264
|
+
if @api_client.config.client_side_validation && create_mod_request.nil?
|
265
|
+
raise ArgumentError, "Missing the required parameter 'create_mod_request' when calling ModApi.create_mod"
|
266
266
|
end
|
267
267
|
|
268
268
|
# resource path
|
@@ -274,7 +274,7 @@ module Kleister
|
|
274
274
|
# header parameters
|
275
275
|
header_params = opts[:header_params] || {}
|
276
276
|
# HTTP header 'Accept' (if needed)
|
277
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
277
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
278
278
|
# HTTP header 'Content-Type'
|
279
279
|
content_type = @api_client.select_header_content_type(['application/json'])
|
280
280
|
unless content_type.nil?
|
@@ -285,13 +285,13 @@ module Kleister
|
|
285
285
|
form_params = opts[:form_params] || {}
|
286
286
|
|
287
287
|
# http body (model)
|
288
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
288
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_mod_request)
|
289
289
|
|
290
290
|
# return_type
|
291
291
|
return_type = opts[:debug_return_type] || 'Mod'
|
292
292
|
|
293
293
|
# auth_names
|
294
|
-
auth_names = opts[:debug_auth_names] || %w[
|
294
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
295
295
|
|
296
296
|
new_options = opts.merge(
|
297
297
|
operation: :'ModApi.create_mod',
|
@@ -310,22 +310,162 @@ module Kleister
|
|
310
310
|
[data, status_code, headers]
|
311
311
|
end
|
312
312
|
|
313
|
+
# Upload an avatar for the defined mod
|
314
|
+
# @param mod_id [String] A mod identifier or slug
|
315
|
+
# @param [Hash] opts the optional parameters
|
316
|
+
# @option opts [File] :file
|
317
|
+
# @return [ModAvatar]
|
318
|
+
def create_mod_avatar(mod_id, opts = {})
|
319
|
+
data, _status_code, _headers = create_mod_avatar_with_http_info(mod_id, opts)
|
320
|
+
data
|
321
|
+
end
|
322
|
+
|
323
|
+
# Upload an avatar for the defined mod
|
324
|
+
# @param mod_id [String] A mod identifier or slug
|
325
|
+
# @param [Hash] opts the optional parameters
|
326
|
+
# @option opts [File] :file
|
327
|
+
# @return [Array<(ModAvatar, Integer, Hash)>] ModAvatar data, response status code and response headers
|
328
|
+
def create_mod_avatar_with_http_info(mod_id, opts = {})
|
329
|
+
if @api_client.config.debugging
|
330
|
+
@api_client.config.logger.debug 'Calling API: ModApi.create_mod_avatar ...'
|
331
|
+
end
|
332
|
+
# verify the required parameter 'mod_id' is set
|
333
|
+
if @api_client.config.client_side_validation && mod_id.nil?
|
334
|
+
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.create_mod_avatar"
|
335
|
+
end
|
336
|
+
|
337
|
+
# resource path
|
338
|
+
local_var_path = '/mods/{mod_id}/avatar'.sub('{' + 'mod_id' + '}', CGI.escape(mod_id.to_s))
|
339
|
+
|
340
|
+
# query parameters
|
341
|
+
query_params = opts[:query_params] || {}
|
342
|
+
|
343
|
+
# header parameters
|
344
|
+
header_params = opts[:header_params] || {}
|
345
|
+
# HTTP header 'Accept' (if needed)
|
346
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
347
|
+
# HTTP header 'Content-Type'
|
348
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
349
|
+
unless content_type.nil?
|
350
|
+
header_params['Content-Type'] = content_type
|
351
|
+
end
|
352
|
+
|
353
|
+
# form parameters
|
354
|
+
form_params = opts[:form_params] || {}
|
355
|
+
form_params['file'] = opts[:file] unless opts[:file].nil?
|
356
|
+
|
357
|
+
# http body (model)
|
358
|
+
post_body = opts[:debug_body]
|
359
|
+
|
360
|
+
# return_type
|
361
|
+
return_type = opts[:debug_return_type] || 'ModAvatar'
|
362
|
+
|
363
|
+
# auth_names
|
364
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
365
|
+
|
366
|
+
new_options = opts.merge(
|
367
|
+
operation: :'ModApi.create_mod_avatar',
|
368
|
+
header_params: header_params,
|
369
|
+
query_params: query_params,
|
370
|
+
form_params: form_params,
|
371
|
+
body: post_body,
|
372
|
+
auth_names: auth_names,
|
373
|
+
return_type: return_type
|
374
|
+
)
|
375
|
+
|
376
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
377
|
+
if @api_client.config.debugging
|
378
|
+
@api_client.config.logger.debug "API called: ModApi#create_mod_avatar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
379
|
+
end
|
380
|
+
[data, status_code, headers]
|
381
|
+
end
|
382
|
+
|
383
|
+
# Upload an avatar for the defined pack
|
384
|
+
# @param pack_id [String] A pack identifier or slug
|
385
|
+
# @param [Hash] opts the optional parameters
|
386
|
+
# @option opts [File] :file
|
387
|
+
# @return [PackAvatar]
|
388
|
+
def create_pack_avatar(pack_id, opts = {})
|
389
|
+
data, _status_code, _headers = create_pack_avatar_with_http_info(pack_id, opts)
|
390
|
+
data
|
391
|
+
end
|
392
|
+
|
393
|
+
# Upload an avatar for the defined pack
|
394
|
+
# @param pack_id [String] A pack identifier or slug
|
395
|
+
# @param [Hash] opts the optional parameters
|
396
|
+
# @option opts [File] :file
|
397
|
+
# @return [Array<(PackAvatar, Integer, Hash)>] PackAvatar data, response status code and response headers
|
398
|
+
def create_pack_avatar_with_http_info(pack_id, opts = {})
|
399
|
+
if @api_client.config.debugging
|
400
|
+
@api_client.config.logger.debug 'Calling API: ModApi.create_pack_avatar ...'
|
401
|
+
end
|
402
|
+
# verify the required parameter 'pack_id' is set
|
403
|
+
if @api_client.config.client_side_validation && pack_id.nil?
|
404
|
+
raise ArgumentError, "Missing the required parameter 'pack_id' when calling ModApi.create_pack_avatar"
|
405
|
+
end
|
406
|
+
|
407
|
+
# resource path
|
408
|
+
local_var_path = '/packs/{pack_id}/avatar'.sub('{' + 'pack_id' + '}', CGI.escape(pack_id.to_s))
|
409
|
+
|
410
|
+
# query parameters
|
411
|
+
query_params = opts[:query_params] || {}
|
412
|
+
|
413
|
+
# header parameters
|
414
|
+
header_params = opts[:header_params] || {}
|
415
|
+
# HTTP header 'Accept' (if needed)
|
416
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
417
|
+
# HTTP header 'Content-Type'
|
418
|
+
content_type = @api_client.select_header_content_type(['multipart/form-data'])
|
419
|
+
unless content_type.nil?
|
420
|
+
header_params['Content-Type'] = content_type
|
421
|
+
end
|
422
|
+
|
423
|
+
# form parameters
|
424
|
+
form_params = opts[:form_params] || {}
|
425
|
+
form_params['file'] = opts[:file] unless opts[:file].nil?
|
426
|
+
|
427
|
+
# http body (model)
|
428
|
+
post_body = opts[:debug_body]
|
429
|
+
|
430
|
+
# return_type
|
431
|
+
return_type = opts[:debug_return_type] || 'PackAvatar'
|
432
|
+
|
433
|
+
# auth_names
|
434
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
435
|
+
|
436
|
+
new_options = opts.merge(
|
437
|
+
operation: :'ModApi.create_pack_avatar',
|
438
|
+
header_params: header_params,
|
439
|
+
query_params: query_params,
|
440
|
+
form_params: form_params,
|
441
|
+
body: post_body,
|
442
|
+
auth_names: auth_names,
|
443
|
+
return_type: return_type
|
444
|
+
)
|
445
|
+
|
446
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
447
|
+
if @api_client.config.debugging
|
448
|
+
@api_client.config.logger.debug "API called: ModApi#create_pack_avatar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
449
|
+
end
|
450
|
+
[data, status_code, headers]
|
451
|
+
end
|
452
|
+
|
313
453
|
# Create a new version for a mod
|
314
454
|
# @param mod_id [String] A mod identifier or slug
|
315
|
-
# @param
|
455
|
+
# @param create_version_request [CreateVersionRequest] The version data to create
|
316
456
|
# @param [Hash] opts the optional parameters
|
317
457
|
# @return [Version]
|
318
|
-
def create_version(mod_id,
|
319
|
-
data, _status_code, _headers = create_version_with_http_info(mod_id,
|
458
|
+
def create_version(mod_id, create_version_request, opts = {})
|
459
|
+
data, _status_code, _headers = create_version_with_http_info(mod_id, create_version_request, opts)
|
320
460
|
data
|
321
461
|
end
|
322
462
|
|
323
463
|
# Create a new version for a mod
|
324
464
|
# @param mod_id [String] A mod identifier or slug
|
325
|
-
# @param
|
465
|
+
# @param create_version_request [CreateVersionRequest] The version data to create
|
326
466
|
# @param [Hash] opts the optional parameters
|
327
467
|
# @return [Array<(Version, Integer, Hash)>] Version data, response status code and response headers
|
328
|
-
def create_version_with_http_info(mod_id,
|
468
|
+
def create_version_with_http_info(mod_id, create_version_request, opts = {})
|
329
469
|
if @api_client.config.debugging
|
330
470
|
@api_client.config.logger.debug 'Calling API: ModApi.create_version ...'
|
331
471
|
end
|
@@ -333,9 +473,9 @@ module Kleister
|
|
333
473
|
if @api_client.config.client_side_validation && mod_id.nil?
|
334
474
|
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.create_version"
|
335
475
|
end
|
336
|
-
# verify the required parameter '
|
337
|
-
if @api_client.config.client_side_validation &&
|
338
|
-
raise ArgumentError, "Missing the required parameter '
|
476
|
+
# verify the required parameter 'create_version_request' is set
|
477
|
+
if @api_client.config.client_side_validation && create_version_request.nil?
|
478
|
+
raise ArgumentError, "Missing the required parameter 'create_version_request' when calling ModApi.create_version"
|
339
479
|
end
|
340
480
|
|
341
481
|
# resource path
|
@@ -347,7 +487,7 @@ module Kleister
|
|
347
487
|
# header parameters
|
348
488
|
header_params = opts[:header_params] || {}
|
349
489
|
# HTTP header 'Accept' (if needed)
|
350
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
490
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
351
491
|
# HTTP header 'Content-Type'
|
352
492
|
content_type = @api_client.select_header_content_type(['application/json'])
|
353
493
|
unless content_type.nil?
|
@@ -358,13 +498,13 @@ module Kleister
|
|
358
498
|
form_params = opts[:form_params] || {}
|
359
499
|
|
360
500
|
# http body (model)
|
361
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
501
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_version_request)
|
362
502
|
|
363
503
|
# return_type
|
364
504
|
return_type = opts[:debug_return_type] || 'Version'
|
365
505
|
|
366
506
|
# auth_names
|
367
|
-
auth_names = opts[:debug_auth_names] || %w[
|
507
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
368
508
|
|
369
509
|
new_options = opts.merge(
|
370
510
|
operation: :'ModApi.create_version',
|
@@ -414,7 +554,7 @@ module Kleister
|
|
414
554
|
# header parameters
|
415
555
|
header_params = opts[:header_params] || {}
|
416
556
|
# HTTP header 'Accept' (if needed)
|
417
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
557
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
418
558
|
|
419
559
|
# form parameters
|
420
560
|
form_params = opts[:form_params] || {}
|
@@ -426,7 +566,7 @@ module Kleister
|
|
426
566
|
return_type = opts[:debug_return_type] || 'Notification'
|
427
567
|
|
428
568
|
# auth_names
|
429
|
-
auth_names = opts[:debug_auth_names] || %w[
|
569
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
430
570
|
|
431
571
|
new_options = opts.merge(
|
432
572
|
operation: :'ModApi.delete_mod',
|
@@ -445,36 +585,98 @@ module Kleister
|
|
445
585
|
[data, status_code, headers]
|
446
586
|
end
|
447
587
|
|
448
|
-
#
|
588
|
+
# Delete the avatar for the defined mod
|
589
|
+
# @param mod_id [String] A mod identifier or slug
|
590
|
+
# @param [Hash] opts the optional parameters
|
591
|
+
# @return [ModAvatar]
|
592
|
+
def delete_mod_avatar(mod_id, opts = {})
|
593
|
+
data, _status_code, _headers = delete_mod_avatar_with_http_info(mod_id, opts)
|
594
|
+
data
|
595
|
+
end
|
596
|
+
|
597
|
+
# Delete the avatar for the defined mod
|
598
|
+
# @param mod_id [String] A mod identifier or slug
|
599
|
+
# @param [Hash] opts the optional parameters
|
600
|
+
# @return [Array<(ModAvatar, Integer, Hash)>] ModAvatar data, response status code and response headers
|
601
|
+
def delete_mod_avatar_with_http_info(mod_id, opts = {})
|
602
|
+
if @api_client.config.debugging
|
603
|
+
@api_client.config.logger.debug 'Calling API: ModApi.delete_mod_avatar ...'
|
604
|
+
end
|
605
|
+
# verify the required parameter 'mod_id' is set
|
606
|
+
if @api_client.config.client_side_validation && mod_id.nil?
|
607
|
+
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.delete_mod_avatar"
|
608
|
+
end
|
609
|
+
|
610
|
+
# resource path
|
611
|
+
local_var_path = '/mods/{mod_id}/avatar'.sub('{' + 'mod_id' + '}', CGI.escape(mod_id.to_s))
|
612
|
+
|
613
|
+
# query parameters
|
614
|
+
query_params = opts[:query_params] || {}
|
615
|
+
|
616
|
+
# header parameters
|
617
|
+
header_params = opts[:header_params] || {}
|
618
|
+
# HTTP header 'Accept' (if needed)
|
619
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
620
|
+
|
621
|
+
# form parameters
|
622
|
+
form_params = opts[:form_params] || {}
|
623
|
+
|
624
|
+
# http body (model)
|
625
|
+
post_body = opts[:debug_body]
|
626
|
+
|
627
|
+
# return_type
|
628
|
+
return_type = opts[:debug_return_type] || 'ModAvatar'
|
629
|
+
|
630
|
+
# auth_names
|
631
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
632
|
+
|
633
|
+
new_options = opts.merge(
|
634
|
+
operation: :'ModApi.delete_mod_avatar',
|
635
|
+
header_params: header_params,
|
636
|
+
query_params: query_params,
|
637
|
+
form_params: form_params,
|
638
|
+
body: post_body,
|
639
|
+
auth_names: auth_names,
|
640
|
+
return_type: return_type
|
641
|
+
)
|
642
|
+
|
643
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
644
|
+
if @api_client.config.debugging
|
645
|
+
@api_client.config.logger.debug "API called: ModApi#delete_mod_avatar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
646
|
+
end
|
647
|
+
[data, status_code, headers]
|
648
|
+
end
|
649
|
+
|
650
|
+
# Unlink a group from mod
|
449
651
|
# @param mod_id [String] A mod identifier or slug
|
450
|
-
# @param
|
652
|
+
# @param delete_pack_from_group_request [DeletePackFromGroupRequest] The mod group data to unlink
|
451
653
|
# @param [Hash] opts the optional parameters
|
452
654
|
# @return [Notification]
|
453
|
-
def
|
454
|
-
data, _status_code, _headers =
|
655
|
+
def delete_mod_from_group(mod_id, delete_pack_from_group_request, opts = {})
|
656
|
+
data, _status_code, _headers = delete_mod_from_group_with_http_info(mod_id, delete_pack_from_group_request, opts)
|
455
657
|
data
|
456
658
|
end
|
457
659
|
|
458
|
-
# Unlink a
|
660
|
+
# Unlink a group from mod
|
459
661
|
# @param mod_id [String] A mod identifier or slug
|
460
|
-
# @param
|
662
|
+
# @param delete_pack_from_group_request [DeletePackFromGroupRequest] The mod group data to unlink
|
461
663
|
# @param [Hash] opts the optional parameters
|
462
664
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
463
|
-
def
|
665
|
+
def delete_mod_from_group_with_http_info(mod_id, delete_pack_from_group_request, opts = {})
|
464
666
|
if @api_client.config.debugging
|
465
|
-
@api_client.config.logger.debug 'Calling API: ModApi.
|
667
|
+
@api_client.config.logger.debug 'Calling API: ModApi.delete_mod_from_group ...'
|
466
668
|
end
|
467
669
|
# verify the required parameter 'mod_id' is set
|
468
670
|
if @api_client.config.client_side_validation && mod_id.nil?
|
469
|
-
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.
|
671
|
+
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.delete_mod_from_group"
|
470
672
|
end
|
471
|
-
# verify the required parameter '
|
472
|
-
if @api_client.config.client_side_validation &&
|
473
|
-
raise ArgumentError, "Missing the required parameter '
|
673
|
+
# verify the required parameter 'delete_pack_from_group_request' is set
|
674
|
+
if @api_client.config.client_side_validation && delete_pack_from_group_request.nil?
|
675
|
+
raise ArgumentError, "Missing the required parameter 'delete_pack_from_group_request' when calling ModApi.delete_mod_from_group"
|
474
676
|
end
|
475
677
|
|
476
678
|
# resource path
|
477
|
-
local_var_path = '/mods/{mod_id}/
|
679
|
+
local_var_path = '/mods/{mod_id}/groups'.sub('{' + 'mod_id' + '}', CGI.escape(mod_id.to_s))
|
478
680
|
|
479
681
|
# query parameters
|
480
682
|
query_params = opts[:query_params] || {}
|
@@ -482,7 +684,7 @@ module Kleister
|
|
482
684
|
# header parameters
|
483
685
|
header_params = opts[:header_params] || {}
|
484
686
|
# HTTP header 'Accept' (if needed)
|
485
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
687
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
486
688
|
# HTTP header 'Content-Type'
|
487
689
|
content_type = @api_client.select_header_content_type(['application/json'])
|
488
690
|
unless content_type.nil?
|
@@ -493,16 +695,16 @@ module Kleister
|
|
493
695
|
form_params = opts[:form_params] || {}
|
494
696
|
|
495
697
|
# http body (model)
|
496
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
698
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_pack_from_group_request)
|
497
699
|
|
498
700
|
# return_type
|
499
701
|
return_type = opts[:debug_return_type] || 'Notification'
|
500
702
|
|
501
703
|
# auth_names
|
502
|
-
auth_names = opts[:debug_auth_names] || %w[
|
704
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
503
705
|
|
504
706
|
new_options = opts.merge(
|
505
|
-
operation: :'ModApi.
|
707
|
+
operation: :'ModApi.delete_mod_from_group',
|
506
708
|
header_params: header_params,
|
507
709
|
query_params: query_params,
|
508
710
|
form_params: form_params,
|
@@ -513,27 +715,27 @@ module Kleister
|
|
513
715
|
|
514
716
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
515
717
|
if @api_client.config.debugging
|
516
|
-
@api_client.config.logger.debug "API called: ModApi#
|
718
|
+
@api_client.config.logger.debug "API called: ModApi#delete_mod_from_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
517
719
|
end
|
518
720
|
[data, status_code, headers]
|
519
721
|
end
|
520
722
|
|
521
723
|
# Unlink a user from mod
|
522
724
|
# @param mod_id [String] A mod identifier or slug
|
523
|
-
# @param
|
725
|
+
# @param delete_pack_from_user_request [DeletePackFromUserRequest] The mod user data to unlink
|
524
726
|
# @param [Hash] opts the optional parameters
|
525
727
|
# @return [Notification]
|
526
|
-
def delete_mod_from_user(mod_id,
|
527
|
-
data, _status_code, _headers = delete_mod_from_user_with_http_info(mod_id,
|
728
|
+
def delete_mod_from_user(mod_id, delete_pack_from_user_request, opts = {})
|
729
|
+
data, _status_code, _headers = delete_mod_from_user_with_http_info(mod_id, delete_pack_from_user_request, opts)
|
528
730
|
data
|
529
731
|
end
|
530
732
|
|
531
733
|
# Unlink a user from mod
|
532
734
|
# @param mod_id [String] A mod identifier or slug
|
533
|
-
# @param
|
735
|
+
# @param delete_pack_from_user_request [DeletePackFromUserRequest] The mod user data to unlink
|
534
736
|
# @param [Hash] opts the optional parameters
|
535
737
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
536
|
-
def delete_mod_from_user_with_http_info(mod_id,
|
738
|
+
def delete_mod_from_user_with_http_info(mod_id, delete_pack_from_user_request, opts = {})
|
537
739
|
if @api_client.config.debugging
|
538
740
|
@api_client.config.logger.debug 'Calling API: ModApi.delete_mod_from_user ...'
|
539
741
|
end
|
@@ -541,9 +743,9 @@ module Kleister
|
|
541
743
|
if @api_client.config.client_side_validation && mod_id.nil?
|
542
744
|
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.delete_mod_from_user"
|
543
745
|
end
|
544
|
-
# verify the required parameter '
|
545
|
-
if @api_client.config.client_side_validation &&
|
546
|
-
raise ArgumentError, "Missing the required parameter '
|
746
|
+
# verify the required parameter 'delete_pack_from_user_request' is set
|
747
|
+
if @api_client.config.client_side_validation && delete_pack_from_user_request.nil?
|
748
|
+
raise ArgumentError, "Missing the required parameter 'delete_pack_from_user_request' when calling ModApi.delete_mod_from_user"
|
547
749
|
end
|
548
750
|
|
549
751
|
# resource path
|
@@ -555,7 +757,7 @@ module Kleister
|
|
555
757
|
# header parameters
|
556
758
|
header_params = opts[:header_params] || {}
|
557
759
|
# HTTP header 'Accept' (if needed)
|
558
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
760
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
559
761
|
# HTTP header 'Content-Type'
|
560
762
|
content_type = @api_client.select_header_content_type(['application/json'])
|
561
763
|
unless content_type.nil?
|
@@ -566,13 +768,13 @@ module Kleister
|
|
566
768
|
form_params = opts[:form_params] || {}
|
567
769
|
|
568
770
|
# http body (model)
|
569
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
771
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_pack_from_user_request)
|
570
772
|
|
571
773
|
# return_type
|
572
774
|
return_type = opts[:debug_return_type] || 'Notification'
|
573
775
|
|
574
776
|
# auth_names
|
575
|
-
auth_names = opts[:debug_auth_names] || %w[
|
777
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
576
778
|
|
577
779
|
new_options = opts.merge(
|
578
780
|
operation: :'ModApi.delete_mod_from_user',
|
@@ -591,6 +793,68 @@ module Kleister
|
|
591
793
|
[data, status_code, headers]
|
592
794
|
end
|
593
795
|
|
796
|
+
# Delete the avatar for the defined pack
|
797
|
+
# @param pack_id [String] A pack identifier or slug
|
798
|
+
# @param [Hash] opts the optional parameters
|
799
|
+
# @return [PackAvatar]
|
800
|
+
def delete_pack_avatar(pack_id, opts = {})
|
801
|
+
data, _status_code, _headers = delete_pack_avatar_with_http_info(pack_id, opts)
|
802
|
+
data
|
803
|
+
end
|
804
|
+
|
805
|
+
# Delete the avatar for the defined pack
|
806
|
+
# @param pack_id [String] A pack identifier or slug
|
807
|
+
# @param [Hash] opts the optional parameters
|
808
|
+
# @return [Array<(PackAvatar, Integer, Hash)>] PackAvatar data, response status code and response headers
|
809
|
+
def delete_pack_avatar_with_http_info(pack_id, opts = {})
|
810
|
+
if @api_client.config.debugging
|
811
|
+
@api_client.config.logger.debug 'Calling API: ModApi.delete_pack_avatar ...'
|
812
|
+
end
|
813
|
+
# verify the required parameter 'pack_id' is set
|
814
|
+
if @api_client.config.client_side_validation && pack_id.nil?
|
815
|
+
raise ArgumentError, "Missing the required parameter 'pack_id' when calling ModApi.delete_pack_avatar"
|
816
|
+
end
|
817
|
+
|
818
|
+
# resource path
|
819
|
+
local_var_path = '/packs/{pack_id}/avatar'.sub('{' + 'pack_id' + '}', CGI.escape(pack_id.to_s))
|
820
|
+
|
821
|
+
# query parameters
|
822
|
+
query_params = opts[:query_params] || {}
|
823
|
+
|
824
|
+
# header parameters
|
825
|
+
header_params = opts[:header_params] || {}
|
826
|
+
# HTTP header 'Accept' (if needed)
|
827
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
828
|
+
|
829
|
+
# form parameters
|
830
|
+
form_params = opts[:form_params] || {}
|
831
|
+
|
832
|
+
# http body (model)
|
833
|
+
post_body = opts[:debug_body]
|
834
|
+
|
835
|
+
# return_type
|
836
|
+
return_type = opts[:debug_return_type] || 'PackAvatar'
|
837
|
+
|
838
|
+
# auth_names
|
839
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
840
|
+
|
841
|
+
new_options = opts.merge(
|
842
|
+
operation: :'ModApi.delete_pack_avatar',
|
843
|
+
header_params: header_params,
|
844
|
+
query_params: query_params,
|
845
|
+
form_params: form_params,
|
846
|
+
body: post_body,
|
847
|
+
auth_names: auth_names,
|
848
|
+
return_type: return_type
|
849
|
+
)
|
850
|
+
|
851
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
852
|
+
if @api_client.config.debugging
|
853
|
+
@api_client.config.logger.debug "API called: ModApi#delete_pack_avatar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
854
|
+
end
|
855
|
+
[data, status_code, headers]
|
856
|
+
end
|
857
|
+
|
594
858
|
# Delete a specific version for a mod
|
595
859
|
# @param mod_id [String] A mod identifier or slug
|
596
860
|
# @param version_id [String] A version identifier or slug
|
@@ -628,7 +892,7 @@ module Kleister
|
|
628
892
|
# header parameters
|
629
893
|
header_params = opts[:header_params] || {}
|
630
894
|
# HTTP header 'Accept' (if needed)
|
631
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
895
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
632
896
|
|
633
897
|
# form parameters
|
634
898
|
form_params = opts[:form_params] || {}
|
@@ -640,7 +904,7 @@ module Kleister
|
|
640
904
|
return_type = opts[:debug_return_type] || 'Notification'
|
641
905
|
|
642
906
|
# auth_names
|
643
|
-
auth_names = opts[:debug_auth_names] || %w[
|
907
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
644
908
|
|
645
909
|
new_options = opts.merge(
|
646
910
|
operation: :'ModApi.delete_version',
|
@@ -662,21 +926,21 @@ module Kleister
|
|
662
926
|
# Unlink a build from a version
|
663
927
|
# @param mod_id [String] A mod identifier or slug
|
664
928
|
# @param version_id [String] A version identifier or slug
|
665
|
-
# @param
|
929
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The version build data to create or delete
|
666
930
|
# @param [Hash] opts the optional parameters
|
667
931
|
# @return [Notification]
|
668
|
-
def delete_version_from_build(mod_id, version_id,
|
669
|
-
data, _status_code, _headers = delete_version_from_build_with_http_info(mod_id, version_id,
|
932
|
+
def delete_version_from_build(mod_id, version_id, attach_minecraft_to_build_request, opts = {})
|
933
|
+
data, _status_code, _headers = delete_version_from_build_with_http_info(mod_id, version_id, attach_minecraft_to_build_request, opts)
|
670
934
|
data
|
671
935
|
end
|
672
936
|
|
673
937
|
# Unlink a build from a version
|
674
938
|
# @param mod_id [String] A mod identifier or slug
|
675
939
|
# @param version_id [String] A version identifier or slug
|
676
|
-
# @param
|
940
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The version build data to create or delete
|
677
941
|
# @param [Hash] opts the optional parameters
|
678
942
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
679
|
-
def delete_version_from_build_with_http_info(mod_id, version_id,
|
943
|
+
def delete_version_from_build_with_http_info(mod_id, version_id, attach_minecraft_to_build_request, opts = {})
|
680
944
|
if @api_client.config.debugging
|
681
945
|
@api_client.config.logger.debug 'Calling API: ModApi.delete_version_from_build ...'
|
682
946
|
end
|
@@ -688,9 +952,9 @@ module Kleister
|
|
688
952
|
if @api_client.config.client_side_validation && version_id.nil?
|
689
953
|
raise ArgumentError, "Missing the required parameter 'version_id' when calling ModApi.delete_version_from_build"
|
690
954
|
end
|
691
|
-
# verify the required parameter '
|
692
|
-
if @api_client.config.client_side_validation &&
|
693
|
-
raise ArgumentError, "Missing the required parameter '
|
955
|
+
# verify the required parameter 'attach_minecraft_to_build_request' is set
|
956
|
+
if @api_client.config.client_side_validation && attach_minecraft_to_build_request.nil?
|
957
|
+
raise ArgumentError, "Missing the required parameter 'attach_minecraft_to_build_request' when calling ModApi.delete_version_from_build"
|
694
958
|
end
|
695
959
|
|
696
960
|
# resource path
|
@@ -702,7 +966,7 @@ module Kleister
|
|
702
966
|
# header parameters
|
703
967
|
header_params = opts[:header_params] || {}
|
704
968
|
# HTTP header 'Accept' (if needed)
|
705
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
969
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
706
970
|
# HTTP header 'Content-Type'
|
707
971
|
content_type = @api_client.select_header_content_type(['application/json'])
|
708
972
|
unless content_type.nil?
|
@@ -713,13 +977,13 @@ module Kleister
|
|
713
977
|
form_params = opts[:form_params] || {}
|
714
978
|
|
715
979
|
# http body (model)
|
716
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
980
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(attach_minecraft_to_build_request)
|
717
981
|
|
718
982
|
# return_type
|
719
983
|
return_type = opts[:debug_return_type] || 'Notification'
|
720
984
|
|
721
985
|
# auth_names
|
722
|
-
auth_names = opts[:debug_auth_names] || %w[
|
986
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
723
987
|
|
724
988
|
new_options = opts.merge(
|
725
989
|
operation: :'ModApi.delete_version_from_build',
|
@@ -738,41 +1002,36 @@ module Kleister
|
|
738
1002
|
[data, status_code, headers]
|
739
1003
|
end
|
740
1004
|
|
741
|
-
# Fetch all
|
1005
|
+
# Fetch all groups attached to mod
|
742
1006
|
# @param mod_id [String] A mod identifier or slug
|
743
1007
|
# @param [Hash] opts the optional parameters
|
744
1008
|
# @option opts [String] :search Search query
|
745
|
-
# @option opts [String] :sort Sorting column
|
1009
|
+
# @option opts [String] :sort Sorting column
|
746
1010
|
# @option opts [String] :order Sorting order (default to 'asc')
|
747
1011
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
748
1012
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
749
|
-
# @return [
|
750
|
-
def
|
751
|
-
data, _status_code, _headers =
|
1013
|
+
# @return [ListModGroups200Response]
|
1014
|
+
def list_mod_groups(mod_id, opts = {})
|
1015
|
+
data, _status_code, _headers = list_mod_groups_with_http_info(mod_id, opts)
|
752
1016
|
data
|
753
1017
|
end
|
754
1018
|
|
755
|
-
# Fetch all
|
1019
|
+
# Fetch all groups attached to mod
|
756
1020
|
# @param mod_id [String] A mod identifier or slug
|
757
1021
|
# @param [Hash] opts the optional parameters
|
758
1022
|
# @option opts [String] :search Search query
|
759
|
-
# @option opts [String] :sort Sorting column
|
1023
|
+
# @option opts [String] :sort Sorting column
|
760
1024
|
# @option opts [String] :order Sorting order (default to 'asc')
|
761
1025
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
762
1026
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
763
|
-
# @return [Array<(
|
764
|
-
def
|
1027
|
+
# @return [Array<(ListModGroups200Response, Integer, Hash)>] ListModGroups200Response data, response status code and response headers
|
1028
|
+
def list_mod_groups_with_http_info(mod_id, opts = {})
|
765
1029
|
if @api_client.config.debugging
|
766
|
-
@api_client.config.logger.debug 'Calling API: ModApi.
|
1030
|
+
@api_client.config.logger.debug 'Calling API: ModApi.list_mod_groups ...'
|
767
1031
|
end
|
768
1032
|
# verify the required parameter 'mod_id' is set
|
769
1033
|
if @api_client.config.client_side_validation && mod_id.nil?
|
770
|
-
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.
|
771
|
-
end
|
772
|
-
|
773
|
-
allowable_values = %w[slug name]
|
774
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
775
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
1034
|
+
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.list_mod_groups"
|
776
1035
|
end
|
777
1036
|
|
778
1037
|
allowable_values = %w[asc desc]
|
@@ -781,7 +1040,7 @@ module Kleister
|
|
781
1040
|
end
|
782
1041
|
|
783
1042
|
# resource path
|
784
|
-
local_var_path = '/mods/{mod_id}/
|
1043
|
+
local_var_path = '/mods/{mod_id}/groups'.sub('{' + 'mod_id' + '}', CGI.escape(mod_id.to_s))
|
785
1044
|
|
786
1045
|
# query parameters
|
787
1046
|
query_params = opts[:query_params] || {}
|
@@ -794,7 +1053,7 @@ module Kleister
|
|
794
1053
|
# header parameters
|
795
1054
|
header_params = opts[:header_params] || {}
|
796
1055
|
# HTTP header 'Accept' (if needed)
|
797
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1056
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
798
1057
|
|
799
1058
|
# form parameters
|
800
1059
|
form_params = opts[:form_params] || {}
|
@@ -803,13 +1062,13 @@ module Kleister
|
|
803
1062
|
post_body = opts[:debug_body]
|
804
1063
|
|
805
1064
|
# return_type
|
806
|
-
return_type = opts[:debug_return_type] || '
|
1065
|
+
return_type = opts[:debug_return_type] || 'ListModGroups200Response'
|
807
1066
|
|
808
1067
|
# auth_names
|
809
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1068
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
810
1069
|
|
811
1070
|
new_options = opts.merge(
|
812
|
-
operation: :'ModApi.
|
1071
|
+
operation: :'ModApi.list_mod_groups',
|
813
1072
|
header_params: header_params,
|
814
1073
|
query_params: query_params,
|
815
1074
|
form_params: form_params,
|
@@ -820,7 +1079,7 @@ module Kleister
|
|
820
1079
|
|
821
1080
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
822
1081
|
if @api_client.config.debugging
|
823
|
-
@api_client.config.logger.debug "API called: ModApi#
|
1082
|
+
@api_client.config.logger.debug "API called: ModApi#list_mod_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
824
1083
|
end
|
825
1084
|
[data, status_code, headers]
|
826
1085
|
end
|
@@ -829,11 +1088,11 @@ module Kleister
|
|
829
1088
|
# @param mod_id [String] A mod identifier or slug
|
830
1089
|
# @param [Hash] opts the optional parameters
|
831
1090
|
# @option opts [String] :search Search query
|
832
|
-
# @option opts [String] :sort Sorting column
|
1091
|
+
# @option opts [String] :sort Sorting column
|
833
1092
|
# @option opts [String] :order Sorting order (default to 'asc')
|
834
1093
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
835
1094
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
836
|
-
# @return [
|
1095
|
+
# @return [ListModUsers200Response]
|
837
1096
|
def list_mod_users(mod_id, opts = {})
|
838
1097
|
data, _status_code, _headers = list_mod_users_with_http_info(mod_id, opts)
|
839
1098
|
data
|
@@ -843,11 +1102,11 @@ module Kleister
|
|
843
1102
|
# @param mod_id [String] A mod identifier or slug
|
844
1103
|
# @param [Hash] opts the optional parameters
|
845
1104
|
# @option opts [String] :search Search query
|
846
|
-
# @option opts [String] :sort Sorting column
|
1105
|
+
# @option opts [String] :sort Sorting column
|
847
1106
|
# @option opts [String] :order Sorting order (default to 'asc')
|
848
1107
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
849
1108
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
850
|
-
# @return [Array<(
|
1109
|
+
# @return [Array<(ListModUsers200Response, Integer, Hash)>] ListModUsers200Response data, response status code and response headers
|
851
1110
|
def list_mod_users_with_http_info(mod_id, opts = {})
|
852
1111
|
if @api_client.config.debugging
|
853
1112
|
@api_client.config.logger.debug 'Calling API: ModApi.list_mod_users ...'
|
@@ -857,11 +1116,6 @@ module Kleister
|
|
857
1116
|
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.list_mod_users"
|
858
1117
|
end
|
859
1118
|
|
860
|
-
allowable_values = %w[username email fullname admin active]
|
861
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
862
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
863
|
-
end
|
864
|
-
|
865
1119
|
allowable_values = %w[asc desc]
|
866
1120
|
if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
|
867
1121
|
raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
@@ -881,7 +1135,7 @@ module Kleister
|
|
881
1135
|
# header parameters
|
882
1136
|
header_params = opts[:header_params] || {}
|
883
1137
|
# HTTP header 'Accept' (if needed)
|
884
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1138
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
885
1139
|
|
886
1140
|
# form parameters
|
887
1141
|
form_params = opts[:form_params] || {}
|
@@ -890,10 +1144,10 @@ module Kleister
|
|
890
1144
|
post_body = opts[:debug_body]
|
891
1145
|
|
892
1146
|
# return_type
|
893
|
-
return_type = opts[:debug_return_type] || '
|
1147
|
+
return_type = opts[:debug_return_type] || 'ListModUsers200Response'
|
894
1148
|
|
895
1149
|
# auth_names
|
896
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1150
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
897
1151
|
|
898
1152
|
new_options = opts.merge(
|
899
1153
|
operation: :'ModApi.list_mod_users',
|
@@ -915,11 +1169,11 @@ module Kleister
|
|
915
1169
|
# Fetch all available mods
|
916
1170
|
# @param [Hash] opts the optional parameters
|
917
1171
|
# @option opts [String] :search Search query
|
918
|
-
# @option opts [String] :sort Sorting column
|
1172
|
+
# @option opts [String] :sort Sorting column
|
919
1173
|
# @option opts [String] :order Sorting order (default to 'asc')
|
920
1174
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
921
1175
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
922
|
-
# @return [
|
1176
|
+
# @return [ListMods200Response]
|
923
1177
|
def list_mods(opts = {})
|
924
1178
|
data, _status_code, _headers = list_mods_with_http_info(opts)
|
925
1179
|
data
|
@@ -928,20 +1182,15 @@ module Kleister
|
|
928
1182
|
# Fetch all available mods
|
929
1183
|
# @param [Hash] opts the optional parameters
|
930
1184
|
# @option opts [String] :search Search query
|
931
|
-
# @option opts [String] :sort Sorting column
|
1185
|
+
# @option opts [String] :sort Sorting column
|
932
1186
|
# @option opts [String] :order Sorting order (default to 'asc')
|
933
1187
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
934
1188
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
935
|
-
# @return [Array<(
|
1189
|
+
# @return [Array<(ListMods200Response, Integer, Hash)>] ListMods200Response data, response status code and response headers
|
936
1190
|
def list_mods_with_http_info(opts = {})
|
937
1191
|
if @api_client.config.debugging
|
938
1192
|
@api_client.config.logger.debug 'Calling API: ModApi.list_mods ...'
|
939
1193
|
end
|
940
|
-
allowable_values = %w[slug name public]
|
941
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
942
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
943
|
-
end
|
944
|
-
|
945
1194
|
allowable_values = %w[asc desc]
|
946
1195
|
if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
|
947
1196
|
raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
@@ -961,7 +1210,7 @@ module Kleister
|
|
961
1210
|
# header parameters
|
962
1211
|
header_params = opts[:header_params] || {}
|
963
1212
|
# HTTP header 'Accept' (if needed)
|
964
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1213
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
965
1214
|
|
966
1215
|
# form parameters
|
967
1216
|
form_params = opts[:form_params] || {}
|
@@ -970,10 +1219,10 @@ module Kleister
|
|
970
1219
|
post_body = opts[:debug_body]
|
971
1220
|
|
972
1221
|
# return_type
|
973
|
-
return_type = opts[:debug_return_type] || '
|
1222
|
+
return_type = opts[:debug_return_type] || 'ListMods200Response'
|
974
1223
|
|
975
1224
|
# auth_names
|
976
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1225
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
977
1226
|
|
978
1227
|
new_options = opts.merge(
|
979
1228
|
operation: :'ModApi.list_mods',
|
@@ -997,11 +1246,11 @@ module Kleister
|
|
997
1246
|
# @param version_id [String] A version identifier or slug
|
998
1247
|
# @param [Hash] opts the optional parameters
|
999
1248
|
# @option opts [String] :search Search query
|
1000
|
-
# @option opts [String] :sort Sorting column
|
1249
|
+
# @option opts [String] :sort Sorting column
|
1001
1250
|
# @option opts [String] :order Sorting order (default to 'asc')
|
1002
1251
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
1003
1252
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
1004
|
-
# @return [
|
1253
|
+
# @return [ListVersionBuilds200Response]
|
1005
1254
|
def list_version_builds(mod_id, version_id, opts = {})
|
1006
1255
|
data, _status_code, _headers = list_version_builds_with_http_info(mod_id, version_id, opts)
|
1007
1256
|
data
|
@@ -1012,11 +1261,11 @@ module Kleister
|
|
1012
1261
|
# @param version_id [String] A version identifier or slug
|
1013
1262
|
# @param [Hash] opts the optional parameters
|
1014
1263
|
# @option opts [String] :search Search query
|
1015
|
-
# @option opts [String] :sort Sorting column
|
1264
|
+
# @option opts [String] :sort Sorting column
|
1016
1265
|
# @option opts [String] :order Sorting order (default to 'asc')
|
1017
1266
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
1018
1267
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
1019
|
-
# @return [Array<(
|
1268
|
+
# @return [Array<(ListVersionBuilds200Response, Integer, Hash)>] ListVersionBuilds200Response data, response status code and response headers
|
1020
1269
|
def list_version_builds_with_http_info(mod_id, version_id, opts = {})
|
1021
1270
|
if @api_client.config.debugging
|
1022
1271
|
@api_client.config.logger.debug 'Calling API: ModApi.list_version_builds ...'
|
@@ -1030,11 +1279,6 @@ module Kleister
|
|
1030
1279
|
raise ArgumentError, "Missing the required parameter 'version_id' when calling ModApi.list_version_builds"
|
1031
1280
|
end
|
1032
1281
|
|
1033
|
-
allowable_values = %w[name public]
|
1034
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
1035
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
1036
|
-
end
|
1037
|
-
|
1038
1282
|
allowable_values = %w[asc desc]
|
1039
1283
|
if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
|
1040
1284
|
raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
@@ -1054,7 +1298,7 @@ module Kleister
|
|
1054
1298
|
# header parameters
|
1055
1299
|
header_params = opts[:header_params] || {}
|
1056
1300
|
# HTTP header 'Accept' (if needed)
|
1057
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1301
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1058
1302
|
|
1059
1303
|
# form parameters
|
1060
1304
|
form_params = opts[:form_params] || {}
|
@@ -1063,10 +1307,10 @@ module Kleister
|
|
1063
1307
|
post_body = opts[:debug_body]
|
1064
1308
|
|
1065
1309
|
# return_type
|
1066
|
-
return_type = opts[:debug_return_type] || '
|
1310
|
+
return_type = opts[:debug_return_type] || 'ListVersionBuilds200Response'
|
1067
1311
|
|
1068
1312
|
# auth_names
|
1069
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1313
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1070
1314
|
|
1071
1315
|
new_options = opts.merge(
|
1072
1316
|
operation: :'ModApi.list_version_builds',
|
@@ -1089,11 +1333,11 @@ module Kleister
|
|
1089
1333
|
# @param mod_id [String] A mod identifier or slug
|
1090
1334
|
# @param [Hash] opts the optional parameters
|
1091
1335
|
# @option opts [String] :search Search query
|
1092
|
-
# @option opts [String] :sort Sorting column
|
1336
|
+
# @option opts [String] :sort Sorting column
|
1093
1337
|
# @option opts [String] :order Sorting order (default to 'asc')
|
1094
1338
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
1095
1339
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
1096
|
-
# @return [
|
1340
|
+
# @return [ListVersions200Response]
|
1097
1341
|
def list_versions(mod_id, opts = {})
|
1098
1342
|
data, _status_code, _headers = list_versions_with_http_info(mod_id, opts)
|
1099
1343
|
data
|
@@ -1103,11 +1347,11 @@ module Kleister
|
|
1103
1347
|
# @param mod_id [String] A mod identifier or slug
|
1104
1348
|
# @param [Hash] opts the optional parameters
|
1105
1349
|
# @option opts [String] :search Search query
|
1106
|
-
# @option opts [String] :sort Sorting column
|
1350
|
+
# @option opts [String] :sort Sorting column
|
1107
1351
|
# @option opts [String] :order Sorting order (default to 'asc')
|
1108
1352
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
1109
1353
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
1110
|
-
# @return [Array<(
|
1354
|
+
# @return [Array<(ListVersions200Response, Integer, Hash)>] ListVersions200Response data, response status code and response headers
|
1111
1355
|
def list_versions_with_http_info(mod_id, opts = {})
|
1112
1356
|
if @api_client.config.debugging
|
1113
1357
|
@api_client.config.logger.debug 'Calling API: ModApi.list_versions ...'
|
@@ -1117,11 +1361,6 @@ module Kleister
|
|
1117
1361
|
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.list_versions"
|
1118
1362
|
end
|
1119
1363
|
|
1120
|
-
allowable_values = %w[name public]
|
1121
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
1122
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
1123
|
-
end
|
1124
|
-
|
1125
1364
|
allowable_values = %w[asc desc]
|
1126
1365
|
if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
|
1127
1366
|
raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
@@ -1141,7 +1380,7 @@ module Kleister
|
|
1141
1380
|
# header parameters
|
1142
1381
|
header_params = opts[:header_params] || {}
|
1143
1382
|
# HTTP header 'Accept' (if needed)
|
1144
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1383
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1145
1384
|
|
1146
1385
|
# form parameters
|
1147
1386
|
form_params = opts[:form_params] || {}
|
@@ -1150,10 +1389,10 @@ module Kleister
|
|
1150
1389
|
post_body = opts[:debug_body]
|
1151
1390
|
|
1152
1391
|
# return_type
|
1153
|
-
return_type = opts[:debug_return_type] || '
|
1392
|
+
return_type = opts[:debug_return_type] || 'ListVersions200Response'
|
1154
1393
|
|
1155
1394
|
# auth_names
|
1156
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1395
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1157
1396
|
|
1158
1397
|
new_options = opts.merge(
|
1159
1398
|
operation: :'ModApi.list_versions',
|
@@ -1172,36 +1411,36 @@ module Kleister
|
|
1172
1411
|
[data, status_code, headers]
|
1173
1412
|
end
|
1174
1413
|
|
1175
|
-
# Update
|
1414
|
+
# Update group perms for mod
|
1176
1415
|
# @param mod_id [String] A mod identifier or slug
|
1177
|
-
# @param
|
1416
|
+
# @param permit_pack_group_request [PermitPackGroupRequest] The mod group data to permit
|
1178
1417
|
# @param [Hash] opts the optional parameters
|
1179
1418
|
# @return [Notification]
|
1180
|
-
def
|
1181
|
-
data, _status_code, _headers =
|
1419
|
+
def permit_mod_group(mod_id, permit_pack_group_request, opts = {})
|
1420
|
+
data, _status_code, _headers = permit_mod_group_with_http_info(mod_id, permit_pack_group_request, opts)
|
1182
1421
|
data
|
1183
1422
|
end
|
1184
1423
|
|
1185
|
-
# Update
|
1424
|
+
# Update group perms for mod
|
1186
1425
|
# @param mod_id [String] A mod identifier or slug
|
1187
|
-
# @param
|
1426
|
+
# @param permit_pack_group_request [PermitPackGroupRequest] The mod group data to permit
|
1188
1427
|
# @param [Hash] opts the optional parameters
|
1189
1428
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
1190
|
-
def
|
1429
|
+
def permit_mod_group_with_http_info(mod_id, permit_pack_group_request, opts = {})
|
1191
1430
|
if @api_client.config.debugging
|
1192
|
-
@api_client.config.logger.debug 'Calling API: ModApi.
|
1431
|
+
@api_client.config.logger.debug 'Calling API: ModApi.permit_mod_group ...'
|
1193
1432
|
end
|
1194
1433
|
# verify the required parameter 'mod_id' is set
|
1195
1434
|
if @api_client.config.client_side_validation && mod_id.nil?
|
1196
|
-
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.
|
1435
|
+
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.permit_mod_group"
|
1197
1436
|
end
|
1198
|
-
# verify the required parameter '
|
1199
|
-
if @api_client.config.client_side_validation &&
|
1200
|
-
raise ArgumentError, "Missing the required parameter '
|
1437
|
+
# verify the required parameter 'permit_pack_group_request' is set
|
1438
|
+
if @api_client.config.client_side_validation && permit_pack_group_request.nil?
|
1439
|
+
raise ArgumentError, "Missing the required parameter 'permit_pack_group_request' when calling ModApi.permit_mod_group"
|
1201
1440
|
end
|
1202
1441
|
|
1203
1442
|
# resource path
|
1204
|
-
local_var_path = '/mods/{mod_id}/
|
1443
|
+
local_var_path = '/mods/{mod_id}/groups'.sub('{' + 'mod_id' + '}', CGI.escape(mod_id.to_s))
|
1205
1444
|
|
1206
1445
|
# query parameters
|
1207
1446
|
query_params = opts[:query_params] || {}
|
@@ -1209,7 +1448,7 @@ module Kleister
|
|
1209
1448
|
# header parameters
|
1210
1449
|
header_params = opts[:header_params] || {}
|
1211
1450
|
# HTTP header 'Accept' (if needed)
|
1212
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1451
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1213
1452
|
# HTTP header 'Content-Type'
|
1214
1453
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1215
1454
|
unless content_type.nil?
|
@@ -1220,16 +1459,16 @@ module Kleister
|
|
1220
1459
|
form_params = opts[:form_params] || {}
|
1221
1460
|
|
1222
1461
|
# http body (model)
|
1223
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1462
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_pack_group_request)
|
1224
1463
|
|
1225
1464
|
# return_type
|
1226
1465
|
return_type = opts[:debug_return_type] || 'Notification'
|
1227
1466
|
|
1228
1467
|
# auth_names
|
1229
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1468
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1230
1469
|
|
1231
1470
|
new_options = opts.merge(
|
1232
|
-
operation: :'ModApi.
|
1471
|
+
operation: :'ModApi.permit_mod_group',
|
1233
1472
|
header_params: header_params,
|
1234
1473
|
query_params: query_params,
|
1235
1474
|
form_params: form_params,
|
@@ -1240,27 +1479,27 @@ module Kleister
|
|
1240
1479
|
|
1241
1480
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1242
1481
|
if @api_client.config.debugging
|
1243
|
-
@api_client.config.logger.debug "API called: ModApi#
|
1482
|
+
@api_client.config.logger.debug "API called: ModApi#permit_mod_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1244
1483
|
end
|
1245
1484
|
[data, status_code, headers]
|
1246
1485
|
end
|
1247
1486
|
|
1248
1487
|
# Update user perms for mod
|
1249
1488
|
# @param mod_id [String] A mod identifier or slug
|
1250
|
-
# @param
|
1489
|
+
# @param permit_pack_user_request [PermitPackUserRequest] The mod user data to permit
|
1251
1490
|
# @param [Hash] opts the optional parameters
|
1252
1491
|
# @return [Notification]
|
1253
|
-
def permit_mod_user(mod_id,
|
1254
|
-
data, _status_code, _headers = permit_mod_user_with_http_info(mod_id,
|
1492
|
+
def permit_mod_user(mod_id, permit_pack_user_request, opts = {})
|
1493
|
+
data, _status_code, _headers = permit_mod_user_with_http_info(mod_id, permit_pack_user_request, opts)
|
1255
1494
|
data
|
1256
1495
|
end
|
1257
1496
|
|
1258
1497
|
# Update user perms for mod
|
1259
1498
|
# @param mod_id [String] A mod identifier or slug
|
1260
|
-
# @param
|
1499
|
+
# @param permit_pack_user_request [PermitPackUserRequest] The mod user data to permit
|
1261
1500
|
# @param [Hash] opts the optional parameters
|
1262
1501
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
1263
|
-
def permit_mod_user_with_http_info(mod_id,
|
1502
|
+
def permit_mod_user_with_http_info(mod_id, permit_pack_user_request, opts = {})
|
1264
1503
|
if @api_client.config.debugging
|
1265
1504
|
@api_client.config.logger.debug 'Calling API: ModApi.permit_mod_user ...'
|
1266
1505
|
end
|
@@ -1268,9 +1507,9 @@ module Kleister
|
|
1268
1507
|
if @api_client.config.client_side_validation && mod_id.nil?
|
1269
1508
|
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.permit_mod_user"
|
1270
1509
|
end
|
1271
|
-
# verify the required parameter '
|
1272
|
-
if @api_client.config.client_side_validation &&
|
1273
|
-
raise ArgumentError, "Missing the required parameter '
|
1510
|
+
# verify the required parameter 'permit_pack_user_request' is set
|
1511
|
+
if @api_client.config.client_side_validation && permit_pack_user_request.nil?
|
1512
|
+
raise ArgumentError, "Missing the required parameter 'permit_pack_user_request' when calling ModApi.permit_mod_user"
|
1274
1513
|
end
|
1275
1514
|
|
1276
1515
|
# resource path
|
@@ -1282,7 +1521,7 @@ module Kleister
|
|
1282
1521
|
# header parameters
|
1283
1522
|
header_params = opts[:header_params] || {}
|
1284
1523
|
# HTTP header 'Accept' (if needed)
|
1285
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1524
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1286
1525
|
# HTTP header 'Content-Type'
|
1287
1526
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1288
1527
|
unless content_type.nil?
|
@@ -1293,13 +1532,13 @@ module Kleister
|
|
1293
1532
|
form_params = opts[:form_params] || {}
|
1294
1533
|
|
1295
1534
|
# http body (model)
|
1296
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1535
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_pack_user_request)
|
1297
1536
|
|
1298
1537
|
# return_type
|
1299
1538
|
return_type = opts[:debug_return_type] || 'Notification'
|
1300
1539
|
|
1301
1540
|
# auth_names
|
1302
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1541
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1303
1542
|
|
1304
1543
|
new_options = opts.merge(
|
1305
1544
|
operation: :'ModApi.permit_mod_user',
|
@@ -1349,7 +1588,7 @@ module Kleister
|
|
1349
1588
|
# header parameters
|
1350
1589
|
header_params = opts[:header_params] || {}
|
1351
1590
|
# HTTP header 'Accept' (if needed)
|
1352
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1591
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1353
1592
|
|
1354
1593
|
# form parameters
|
1355
1594
|
form_params = opts[:form_params] || {}
|
@@ -1361,7 +1600,7 @@ module Kleister
|
|
1361
1600
|
return_type = opts[:debug_return_type] || 'Mod'
|
1362
1601
|
|
1363
1602
|
# auth_names
|
1364
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1603
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1365
1604
|
|
1366
1605
|
new_options = opts.merge(
|
1367
1606
|
operation: :'ModApi.show_mod',
|
@@ -1417,7 +1656,7 @@ module Kleister
|
|
1417
1656
|
# header parameters
|
1418
1657
|
header_params = opts[:header_params] || {}
|
1419
1658
|
# HTTP header 'Accept' (if needed)
|
1420
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1659
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1421
1660
|
|
1422
1661
|
# form parameters
|
1423
1662
|
form_params = opts[:form_params] || {}
|
@@ -1429,7 +1668,7 @@ module Kleister
|
|
1429
1668
|
return_type = opts[:debug_return_type] || 'Version'
|
1430
1669
|
|
1431
1670
|
# auth_names
|
1432
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1671
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1433
1672
|
|
1434
1673
|
new_options = opts.merge(
|
1435
1674
|
operation: :'ModApi.show_version',
|
@@ -1450,20 +1689,20 @@ module Kleister
|
|
1450
1689
|
|
1451
1690
|
# Update a specific mod
|
1452
1691
|
# @param mod_id [String] A mod identifier or slug
|
1453
|
-
# @param
|
1692
|
+
# @param create_mod_request [CreateModRequest] The mod data to update
|
1454
1693
|
# @param [Hash] opts the optional parameters
|
1455
1694
|
# @return [Mod]
|
1456
|
-
def update_mod(mod_id,
|
1457
|
-
data, _status_code, _headers = update_mod_with_http_info(mod_id,
|
1695
|
+
def update_mod(mod_id, create_mod_request, opts = {})
|
1696
|
+
data, _status_code, _headers = update_mod_with_http_info(mod_id, create_mod_request, opts)
|
1458
1697
|
data
|
1459
1698
|
end
|
1460
1699
|
|
1461
1700
|
# Update a specific mod
|
1462
1701
|
# @param mod_id [String] A mod identifier or slug
|
1463
|
-
# @param
|
1702
|
+
# @param create_mod_request [CreateModRequest] The mod data to update
|
1464
1703
|
# @param [Hash] opts the optional parameters
|
1465
1704
|
# @return [Array<(Mod, Integer, Hash)>] Mod data, response status code and response headers
|
1466
|
-
def update_mod_with_http_info(mod_id,
|
1705
|
+
def update_mod_with_http_info(mod_id, create_mod_request, opts = {})
|
1467
1706
|
if @api_client.config.debugging
|
1468
1707
|
@api_client.config.logger.debug 'Calling API: ModApi.update_mod ...'
|
1469
1708
|
end
|
@@ -1471,9 +1710,9 @@ module Kleister
|
|
1471
1710
|
if @api_client.config.client_side_validation && mod_id.nil?
|
1472
1711
|
raise ArgumentError, "Missing the required parameter 'mod_id' when calling ModApi.update_mod"
|
1473
1712
|
end
|
1474
|
-
# verify the required parameter '
|
1475
|
-
if @api_client.config.client_side_validation &&
|
1476
|
-
raise ArgumentError, "Missing the required parameter '
|
1713
|
+
# verify the required parameter 'create_mod_request' is set
|
1714
|
+
if @api_client.config.client_side_validation && create_mod_request.nil?
|
1715
|
+
raise ArgumentError, "Missing the required parameter 'create_mod_request' when calling ModApi.update_mod"
|
1477
1716
|
end
|
1478
1717
|
|
1479
1718
|
# resource path
|
@@ -1485,7 +1724,7 @@ module Kleister
|
|
1485
1724
|
# header parameters
|
1486
1725
|
header_params = opts[:header_params] || {}
|
1487
1726
|
# HTTP header 'Accept' (if needed)
|
1488
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1727
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1489
1728
|
# HTTP header 'Content-Type'
|
1490
1729
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1491
1730
|
unless content_type.nil?
|
@@ -1496,13 +1735,13 @@ module Kleister
|
|
1496
1735
|
form_params = opts[:form_params] || {}
|
1497
1736
|
|
1498
1737
|
# http body (model)
|
1499
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1738
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_mod_request)
|
1500
1739
|
|
1501
1740
|
# return_type
|
1502
1741
|
return_type = opts[:debug_return_type] || 'Mod'
|
1503
1742
|
|
1504
1743
|
# auth_names
|
1505
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1744
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1506
1745
|
|
1507
1746
|
new_options = opts.merge(
|
1508
1747
|
operation: :'ModApi.update_mod',
|
@@ -1524,21 +1763,21 @@ module Kleister
|
|
1524
1763
|
# Update a specific version for a mod
|
1525
1764
|
# @param mod_id [String] A mod identifier or slug
|
1526
1765
|
# @param version_id [String] A version identifier or slug
|
1527
|
-
# @param
|
1766
|
+
# @param create_version_request [CreateVersionRequest] The version data to update
|
1528
1767
|
# @param [Hash] opts the optional parameters
|
1529
1768
|
# @return [Version]
|
1530
|
-
def update_version(mod_id, version_id,
|
1531
|
-
data, _status_code, _headers = update_version_with_http_info(mod_id, version_id,
|
1769
|
+
def update_version(mod_id, version_id, create_version_request, opts = {})
|
1770
|
+
data, _status_code, _headers = update_version_with_http_info(mod_id, version_id, create_version_request, opts)
|
1532
1771
|
data
|
1533
1772
|
end
|
1534
1773
|
|
1535
1774
|
# Update a specific version for a mod
|
1536
1775
|
# @param mod_id [String] A mod identifier or slug
|
1537
1776
|
# @param version_id [String] A version identifier or slug
|
1538
|
-
# @param
|
1777
|
+
# @param create_version_request [CreateVersionRequest] The version data to update
|
1539
1778
|
# @param [Hash] opts the optional parameters
|
1540
1779
|
# @return [Array<(Version, Integer, Hash)>] Version data, response status code and response headers
|
1541
|
-
def update_version_with_http_info(mod_id, version_id,
|
1780
|
+
def update_version_with_http_info(mod_id, version_id, create_version_request, opts = {})
|
1542
1781
|
if @api_client.config.debugging
|
1543
1782
|
@api_client.config.logger.debug 'Calling API: ModApi.update_version ...'
|
1544
1783
|
end
|
@@ -1550,9 +1789,9 @@ module Kleister
|
|
1550
1789
|
if @api_client.config.client_side_validation && version_id.nil?
|
1551
1790
|
raise ArgumentError, "Missing the required parameter 'version_id' when calling ModApi.update_version"
|
1552
1791
|
end
|
1553
|
-
# verify the required parameter '
|
1554
|
-
if @api_client.config.client_side_validation &&
|
1555
|
-
raise ArgumentError, "Missing the required parameter '
|
1792
|
+
# verify the required parameter 'create_version_request' is set
|
1793
|
+
if @api_client.config.client_side_validation && create_version_request.nil?
|
1794
|
+
raise ArgumentError, "Missing the required parameter 'create_version_request' when calling ModApi.update_version"
|
1556
1795
|
end
|
1557
1796
|
|
1558
1797
|
# resource path
|
@@ -1564,7 +1803,7 @@ module Kleister
|
|
1564
1803
|
# header parameters
|
1565
1804
|
header_params = opts[:header_params] || {}
|
1566
1805
|
# HTTP header 'Accept' (if needed)
|
1567
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1806
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1568
1807
|
# HTTP header 'Content-Type'
|
1569
1808
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1570
1809
|
unless content_type.nil?
|
@@ -1575,13 +1814,13 @@ module Kleister
|
|
1575
1814
|
form_params = opts[:form_params] || {}
|
1576
1815
|
|
1577
1816
|
# http body (model)
|
1578
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1817
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_version_request)
|
1579
1818
|
|
1580
1819
|
# return_type
|
1581
1820
|
return_type = opts[:debug_return_type] || 'Version'
|
1582
1821
|
|
1583
1822
|
# auth_names
|
1584
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1823
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1585
1824
|
|
1586
1825
|
new_options = opts.merge(
|
1587
1826
|
operation: :'ModApi.update_version',
|