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'
|
@@ -42,7 +42,7 @@ module Kleister
|
|
42
42
|
# header parameters
|
43
43
|
header_params = opts[:header_params] || {}
|
44
44
|
# HTTP header 'Accept' (if needed)
|
45
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
45
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
46
46
|
|
47
47
|
# form parameters
|
48
48
|
form_params = opts[:form_params] || {}
|
@@ -54,7 +54,7 @@ module Kleister
|
|
54
54
|
return_type = opts[:debug_return_type] || 'Profile'
|
55
55
|
|
56
56
|
# auth_names
|
57
|
-
auth_names = opts[:debug_auth_names] || %w[
|
57
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
58
58
|
|
59
59
|
new_options = opts.merge(
|
60
60
|
operation: :'ProfileApi.show_profile',
|
@@ -97,7 +97,7 @@ module Kleister
|
|
97
97
|
# header parameters
|
98
98
|
header_params = opts[:header_params] || {}
|
99
99
|
# HTTP header 'Accept' (if needed)
|
100
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
100
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
101
101
|
|
102
102
|
# form parameters
|
103
103
|
form_params = opts[:form_params] || {}
|
@@ -109,7 +109,7 @@ module Kleister
|
|
109
109
|
return_type = opts[:debug_return_type] || 'AuthToken'
|
110
110
|
|
111
111
|
# auth_names
|
112
|
-
auth_names = opts[:debug_auth_names] || %w[
|
112
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
113
113
|
|
114
114
|
new_options = opts.merge(
|
115
115
|
operation: :'ProfileApi.token_profile',
|
@@ -129,25 +129,25 @@ module Kleister
|
|
129
129
|
end
|
130
130
|
|
131
131
|
# Update your own profile information
|
132
|
-
# @param
|
132
|
+
# @param update_profile_request [UpdateProfileRequest] The profile data to update
|
133
133
|
# @param [Hash] opts the optional parameters
|
134
134
|
# @return [Profile]
|
135
|
-
def update_profile(
|
136
|
-
data, _status_code, _headers = update_profile_with_http_info(
|
135
|
+
def update_profile(update_profile_request, opts = {})
|
136
|
+
data, _status_code, _headers = update_profile_with_http_info(update_profile_request, opts)
|
137
137
|
data
|
138
138
|
end
|
139
139
|
|
140
140
|
# Update your own profile information
|
141
|
-
# @param
|
141
|
+
# @param update_profile_request [UpdateProfileRequest] The profile data to update
|
142
142
|
# @param [Hash] opts the optional parameters
|
143
143
|
# @return [Array<(Profile, Integer, Hash)>] Profile data, response status code and response headers
|
144
|
-
def update_profile_with_http_info(
|
144
|
+
def update_profile_with_http_info(update_profile_request, opts = {})
|
145
145
|
if @api_client.config.debugging
|
146
146
|
@api_client.config.logger.debug 'Calling API: ProfileApi.update_profile ...'
|
147
147
|
end
|
148
|
-
# verify the required parameter '
|
149
|
-
if @api_client.config.client_side_validation &&
|
150
|
-
raise ArgumentError, "Missing the required parameter '
|
148
|
+
# verify the required parameter 'update_profile_request' is set
|
149
|
+
if @api_client.config.client_side_validation && update_profile_request.nil?
|
150
|
+
raise ArgumentError, "Missing the required parameter 'update_profile_request' when calling ProfileApi.update_profile"
|
151
151
|
end
|
152
152
|
|
153
153
|
# resource path
|
@@ -159,7 +159,7 @@ module Kleister
|
|
159
159
|
# header parameters
|
160
160
|
header_params = opts[:header_params] || {}
|
161
161
|
# HTTP header 'Accept' (if needed)
|
162
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
162
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
163
163
|
# HTTP header 'Content-Type'
|
164
164
|
content_type = @api_client.select_header_content_type(['application/json'])
|
165
165
|
unless content_type.nil?
|
@@ -170,13 +170,13 @@ module Kleister
|
|
170
170
|
form_params = opts[:form_params] || {}
|
171
171
|
|
172
172
|
# http body (model)
|
173
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
173
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_profile_request)
|
174
174
|
|
175
175
|
# return_type
|
176
176
|
return_type = opts[:debug_return_type] || 'Profile'
|
177
177
|
|
178
178
|
# auth_names
|
179
|
-
auth_names = opts[:debug_auth_names] || %w[
|
179
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
180
180
|
|
181
181
|
new_options = opts.merge(
|
182
182
|
operation: :'ProfileApi.update_profile',
|
@@ -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 Quilt version
|
22
22
|
# @param quilt_id [String] A quilt identifier or slug
|
23
|
-
# @param
|
23
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The quilt build data to create or update
|
24
24
|
# @param [Hash] opts the optional parameters
|
25
25
|
# @return [Notification]
|
26
|
-
def attach_quilt_to_build(quilt_id,
|
27
|
-
data, _status_code, _headers = attach_quilt_to_build_with_http_info(quilt_id,
|
26
|
+
def attach_quilt_to_build(quilt_id, attach_minecraft_to_build_request, opts = {})
|
27
|
+
data, _status_code, _headers = attach_quilt_to_build_with_http_info(quilt_id, attach_minecraft_to_build_request, opts)
|
28
28
|
data
|
29
29
|
end
|
30
30
|
|
31
31
|
# Attach a build to a Quilt version
|
32
32
|
# @param quilt_id [String] A quilt identifier or slug
|
33
|
-
# @param
|
33
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The quilt 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_quilt_to_build_with_http_info(quilt_id,
|
36
|
+
def attach_quilt_to_build_with_http_info(quilt_id, attach_minecraft_to_build_request, opts = {})
|
37
37
|
if @api_client.config.debugging
|
38
38
|
@api_client.config.logger.debug 'Calling API: QuiltApi.attach_quilt_to_build ...'
|
39
39
|
end
|
@@ -41,9 +41,9 @@ module Kleister
|
|
41
41
|
if @api_client.config.client_side_validation && quilt_id.nil?
|
42
42
|
raise ArgumentError, "Missing the required parameter 'quilt_id' when calling QuiltApi.attach_quilt_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 QuiltApi.attach_quilt_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: :'QuiltApi.attach_quilt_to_build',
|
@@ -93,20 +93,20 @@ module Kleister
|
|
93
93
|
|
94
94
|
# Unlink a build from a Quilt version
|
95
95
|
# @param quilt_id [String] A quilt identifier or slug
|
96
|
-
# @param
|
96
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The quilt build data to create or update
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
98
|
# @return [Notification]
|
99
|
-
def delete_quilt_from_build(quilt_id,
|
100
|
-
data, _status_code, _headers = delete_quilt_from_build_with_http_info(quilt_id,
|
99
|
+
def delete_quilt_from_build(quilt_id, attach_minecraft_to_build_request, opts = {})
|
100
|
+
data, _status_code, _headers = delete_quilt_from_build_with_http_info(quilt_id, attach_minecraft_to_build_request, opts)
|
101
101
|
data
|
102
102
|
end
|
103
103
|
|
104
104
|
# Unlink a build from a Quilt version
|
105
105
|
# @param quilt_id [String] A quilt identifier or slug
|
106
|
-
# @param
|
106
|
+
# @param attach_minecraft_to_build_request [AttachMinecraftToBuildRequest] The quilt 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_quilt_from_build_with_http_info(quilt_id,
|
109
|
+
def delete_quilt_from_build_with_http_info(quilt_id, attach_minecraft_to_build_request, opts = {})
|
110
110
|
if @api_client.config.debugging
|
111
111
|
@api_client.config.logger.debug 'Calling API: QuiltApi.delete_quilt_from_build ...'
|
112
112
|
end
|
@@ -114,9 +114,9 @@ module Kleister
|
|
114
114
|
if @api_client.config.client_side_validation && quilt_id.nil?
|
115
115
|
raise ArgumentError, "Missing the required parameter 'quilt_id' when calling QuiltApi.delete_quilt_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 QuiltApi.delete_quilt_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: :'QuiltApi.delete_quilt_from_build',
|
@@ -168,11 +168,11 @@ module Kleister
|
|
168
168
|
# @param quilt_id [String] A quilt 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 [ListQuiltBuilds200Response]
|
176
176
|
def list_quilt_builds(quilt_id, opts = {})
|
177
177
|
data, _status_code, _headers = list_quilt_builds_with_http_info(quilt_id, opts)
|
178
178
|
data
|
@@ -182,11 +182,11 @@ module Kleister
|
|
182
182
|
# @param quilt_id [String] A quilt 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<(ListQuiltBuilds200Response, Integer, Hash)>] ListQuiltBuilds200Response data, response status code and response headers
|
190
190
|
def list_quilt_builds_with_http_info(quilt_id, opts = {})
|
191
191
|
if @api_client.config.debugging
|
192
192
|
@api_client.config.logger.debug 'Calling API: QuiltApi.list_quilt_builds ...'
|
@@ -196,11 +196,6 @@ module Kleister
|
|
196
196
|
raise ArgumentError, "Missing the required parameter 'quilt_id' when calling QuiltApi.list_quilt_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] || 'ListQuiltBuilds200Response'
|
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: :'QuiltApi.list_quilt_builds',
|
@@ -254,7 +249,7 @@ module Kleister
|
|
254
249
|
# Fetch the available Quilt versions
|
255
250
|
# @param [Hash] opts the optional parameters
|
256
251
|
# @option opts [String] :search Search query
|
257
|
-
# @return [
|
252
|
+
# @return [ListQuilts200Response]
|
258
253
|
def list_quilts(opts = {})
|
259
254
|
data, _status_code, _headers = list_quilts_with_http_info(opts)
|
260
255
|
data
|
@@ -263,7 +258,7 @@ module Kleister
|
|
263
258
|
# Fetch the available Quilt versions
|
264
259
|
# @param [Hash] opts the optional parameters
|
265
260
|
# @option opts [String] :search Search query
|
266
|
-
# @return [Array<(
|
261
|
+
# @return [Array<(ListQuilts200Response, Integer, Hash)>] ListQuilts200Response data, response status code and response headers
|
267
262
|
def list_quilts_with_http_info(opts = {})
|
268
263
|
if @api_client.config.debugging
|
269
264
|
@api_client.config.logger.debug 'Calling API: QuiltApi.list_quilts ...'
|
@@ -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] || 'ListQuilts200Response'
|
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: :'QuiltApi.list_quilts',
|
@@ -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: :'QuiltApi.update_quilt',
|