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
@@ -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'
|
@@ -21,21 +21,21 @@ module Kleister
|
|
21
21
|
# Attach a version to a build
|
22
22
|
# @param pack_id [String] A pack identifier or slug
|
23
23
|
# @param build_id [String] A build identifier or slug
|
24
|
-
# @param
|
24
|
+
# @param attach_build_to_version_request [AttachBuildToVersionRequest] The build version data to create or delete
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @return [Notification]
|
27
|
-
def attach_build_to_version(pack_id, build_id,
|
28
|
-
data, _status_code, _headers = attach_build_to_version_with_http_info(pack_id, build_id,
|
27
|
+
def attach_build_to_version(pack_id, build_id, attach_build_to_version_request, opts = {})
|
28
|
+
data, _status_code, _headers = attach_build_to_version_with_http_info(pack_id, build_id, attach_build_to_version_request, opts)
|
29
29
|
data
|
30
30
|
end
|
31
31
|
|
32
32
|
# Attach a version to a build
|
33
33
|
# @param pack_id [String] A pack identifier or slug
|
34
34
|
# @param build_id [String] A build identifier or slug
|
35
|
-
# @param
|
35
|
+
# @param attach_build_to_version_request [AttachBuildToVersionRequest] The build version data to create or delete
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
38
|
-
def attach_build_to_version_with_http_info(pack_id, build_id,
|
38
|
+
def attach_build_to_version_with_http_info(pack_id, build_id, attach_build_to_version_request, opts = {})
|
39
39
|
if @api_client.config.debugging
|
40
40
|
@api_client.config.logger.debug 'Calling API: PackApi.attach_build_to_version ...'
|
41
41
|
end
|
@@ -47,9 +47,9 @@ module Kleister
|
|
47
47
|
if @api_client.config.client_side_validation && build_id.nil?
|
48
48
|
raise ArgumentError, "Missing the required parameter 'build_id' when calling PackApi.attach_build_to_version"
|
49
49
|
end
|
50
|
-
# verify the required parameter '
|
51
|
-
if @api_client.config.client_side_validation &&
|
52
|
-
raise ArgumentError, "Missing the required parameter '
|
50
|
+
# verify the required parameter 'attach_build_to_version_request' is set
|
51
|
+
if @api_client.config.client_side_validation && attach_build_to_version_request.nil?
|
52
|
+
raise ArgumentError, "Missing the required parameter 'attach_build_to_version_request' when calling PackApi.attach_build_to_version"
|
53
53
|
end
|
54
54
|
|
55
55
|
# resource path
|
@@ -61,7 +61,7 @@ module Kleister
|
|
61
61
|
# header parameters
|
62
62
|
header_params = opts[:header_params] || {}
|
63
63
|
# HTTP header 'Accept' (if needed)
|
64
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
65
65
|
# HTTP header 'Content-Type'
|
66
66
|
content_type = @api_client.select_header_content_type(['application/json'])
|
67
67
|
unless content_type.nil?
|
@@ -72,13 +72,13 @@ module Kleister
|
|
72
72
|
form_params = opts[:form_params] || {}
|
73
73
|
|
74
74
|
# http body (model)
|
75
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
75
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(attach_build_to_version_request)
|
76
76
|
|
77
77
|
# return_type
|
78
78
|
return_type = opts[:debug_return_type] || 'Notification'
|
79
79
|
|
80
80
|
# auth_names
|
81
|
-
auth_names = opts[:debug_auth_names] || %w[
|
81
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
82
82
|
|
83
83
|
new_options = opts.merge(
|
84
84
|
operation: :'PackApi.attach_build_to_version',
|
@@ -97,36 +97,36 @@ module Kleister
|
|
97
97
|
[data, status_code, headers]
|
98
98
|
end
|
99
99
|
|
100
|
-
# Attach a
|
100
|
+
# Attach a group to pack
|
101
101
|
# @param pack_id [String] A pack identifier or slug
|
102
|
-
# @param
|
102
|
+
# @param permit_pack_group_request [PermitPackGroupRequest] The pack group data to permit
|
103
103
|
# @param [Hash] opts the optional parameters
|
104
104
|
# @return [Notification]
|
105
|
-
def
|
106
|
-
data, _status_code, _headers =
|
105
|
+
def attach_pack_to_group(pack_id, permit_pack_group_request, opts = {})
|
106
|
+
data, _status_code, _headers = attach_pack_to_group_with_http_info(pack_id, permit_pack_group_request, opts)
|
107
107
|
data
|
108
108
|
end
|
109
109
|
|
110
|
-
# Attach a
|
110
|
+
# Attach a group to pack
|
111
111
|
# @param pack_id [String] A pack identifier or slug
|
112
|
-
# @param
|
112
|
+
# @param permit_pack_group_request [PermitPackGroupRequest] The pack group data to permit
|
113
113
|
# @param [Hash] opts the optional parameters
|
114
114
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
115
|
-
def
|
115
|
+
def attach_pack_to_group_with_http_info(pack_id, permit_pack_group_request, opts = {})
|
116
116
|
if @api_client.config.debugging
|
117
|
-
@api_client.config.logger.debug 'Calling API: PackApi.
|
117
|
+
@api_client.config.logger.debug 'Calling API: PackApi.attach_pack_to_group ...'
|
118
118
|
end
|
119
119
|
# verify the required parameter 'pack_id' is set
|
120
120
|
if @api_client.config.client_side_validation && pack_id.nil?
|
121
|
-
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.
|
121
|
+
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.attach_pack_to_group"
|
122
122
|
end
|
123
|
-
# verify the required parameter '
|
124
|
-
if @api_client.config.client_side_validation &&
|
125
|
-
raise ArgumentError, "Missing the required parameter '
|
123
|
+
# verify the required parameter 'permit_pack_group_request' is set
|
124
|
+
if @api_client.config.client_side_validation && permit_pack_group_request.nil?
|
125
|
+
raise ArgumentError, "Missing the required parameter 'permit_pack_group_request' when calling PackApi.attach_pack_to_group"
|
126
126
|
end
|
127
127
|
|
128
128
|
# resource path
|
129
|
-
local_var_path = '/packs/{pack_id}/
|
129
|
+
local_var_path = '/packs/{pack_id}/groups'.sub('{' + 'pack_id' + '}', CGI.escape(pack_id.to_s))
|
130
130
|
|
131
131
|
# query parameters
|
132
132
|
query_params = opts[:query_params] || {}
|
@@ -134,7 +134,7 @@ module Kleister
|
|
134
134
|
# header parameters
|
135
135
|
header_params = opts[:header_params] || {}
|
136
136
|
# HTTP header 'Accept' (if needed)
|
137
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
138
138
|
# HTTP header 'Content-Type'
|
139
139
|
content_type = @api_client.select_header_content_type(['application/json'])
|
140
140
|
unless content_type.nil?
|
@@ -145,16 +145,16 @@ module Kleister
|
|
145
145
|
form_params = opts[:form_params] || {}
|
146
146
|
|
147
147
|
# http body (model)
|
148
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
148
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_pack_group_request)
|
149
149
|
|
150
150
|
# return_type
|
151
151
|
return_type = opts[:debug_return_type] || 'Notification'
|
152
152
|
|
153
153
|
# auth_names
|
154
|
-
auth_names = opts[:debug_auth_names] || %w[
|
154
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
155
155
|
|
156
156
|
new_options = opts.merge(
|
157
|
-
operation: :'PackApi.
|
157
|
+
operation: :'PackApi.attach_pack_to_group',
|
158
158
|
header_params: header_params,
|
159
159
|
query_params: query_params,
|
160
160
|
form_params: form_params,
|
@@ -165,27 +165,27 @@ module Kleister
|
|
165
165
|
|
166
166
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
167
167
|
if @api_client.config.debugging
|
168
|
-
@api_client.config.logger.debug "API called: PackApi#
|
168
|
+
@api_client.config.logger.debug "API called: PackApi#attach_pack_to_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
169
169
|
end
|
170
170
|
[data, status_code, headers]
|
171
171
|
end
|
172
172
|
|
173
173
|
# Attach a user to pack
|
174
174
|
# @param pack_id [String] A pack identifier or slug
|
175
|
-
# @param
|
175
|
+
# @param permit_pack_user_request [PermitPackUserRequest] The pack user data to permit
|
176
176
|
# @param [Hash] opts the optional parameters
|
177
177
|
# @return [Notification]
|
178
|
-
def attach_pack_to_user(pack_id,
|
179
|
-
data, _status_code, _headers = attach_pack_to_user_with_http_info(pack_id,
|
178
|
+
def attach_pack_to_user(pack_id, permit_pack_user_request, opts = {})
|
179
|
+
data, _status_code, _headers = attach_pack_to_user_with_http_info(pack_id, permit_pack_user_request, opts)
|
180
180
|
data
|
181
181
|
end
|
182
182
|
|
183
183
|
# Attach a user to pack
|
184
184
|
# @param pack_id [String] A pack identifier or slug
|
185
|
-
# @param
|
185
|
+
# @param permit_pack_user_request [PermitPackUserRequest] The pack user data to permit
|
186
186
|
# @param [Hash] opts the optional parameters
|
187
187
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
188
|
-
def attach_pack_to_user_with_http_info(pack_id,
|
188
|
+
def attach_pack_to_user_with_http_info(pack_id, permit_pack_user_request, opts = {})
|
189
189
|
if @api_client.config.debugging
|
190
190
|
@api_client.config.logger.debug 'Calling API: PackApi.attach_pack_to_user ...'
|
191
191
|
end
|
@@ -193,9 +193,9 @@ module Kleister
|
|
193
193
|
if @api_client.config.client_side_validation && pack_id.nil?
|
194
194
|
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.attach_pack_to_user"
|
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 'permit_pack_user_request' is set
|
197
|
+
if @api_client.config.client_side_validation && permit_pack_user_request.nil?
|
198
|
+
raise ArgumentError, "Missing the required parameter 'permit_pack_user_request' when calling PackApi.attach_pack_to_user"
|
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(permit_pack_user_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: :'PackApi.attach_pack_to_user',
|
@@ -245,20 +245,20 @@ module Kleister
|
|
245
245
|
|
246
246
|
# Create a new build for a pack
|
247
247
|
# @param pack_id [String] A pack identifier or slug
|
248
|
-
# @param
|
248
|
+
# @param create_build_request [CreateBuildRequest] The build data to create
|
249
249
|
# @param [Hash] opts the optional parameters
|
250
250
|
# @return [Build]
|
251
|
-
def create_build(pack_id,
|
252
|
-
data, _status_code, _headers = create_build_with_http_info(pack_id,
|
251
|
+
def create_build(pack_id, create_build_request, opts = {})
|
252
|
+
data, _status_code, _headers = create_build_with_http_info(pack_id, create_build_request, opts)
|
253
253
|
data
|
254
254
|
end
|
255
255
|
|
256
256
|
# Create a new build for a pack
|
257
257
|
# @param pack_id [String] A pack identifier or slug
|
258
|
-
# @param
|
258
|
+
# @param create_build_request [CreateBuildRequest] The build data to create
|
259
259
|
# @param [Hash] opts the optional parameters
|
260
260
|
# @return [Array<(Build, Integer, Hash)>] Build data, response status code and response headers
|
261
|
-
def create_build_with_http_info(pack_id,
|
261
|
+
def create_build_with_http_info(pack_id, create_build_request, opts = {})
|
262
262
|
if @api_client.config.debugging
|
263
263
|
@api_client.config.logger.debug 'Calling API: PackApi.create_build ...'
|
264
264
|
end
|
@@ -266,9 +266,9 @@ module Kleister
|
|
266
266
|
if @api_client.config.client_side_validation && pack_id.nil?
|
267
267
|
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.create_build"
|
268
268
|
end
|
269
|
-
# verify the required parameter '
|
270
|
-
if @api_client.config.client_side_validation &&
|
271
|
-
raise ArgumentError, "Missing the required parameter '
|
269
|
+
# verify the required parameter 'create_build_request' is set
|
270
|
+
if @api_client.config.client_side_validation && create_build_request.nil?
|
271
|
+
raise ArgumentError, "Missing the required parameter 'create_build_request' when calling PackApi.create_build"
|
272
272
|
end
|
273
273
|
|
274
274
|
# resource path
|
@@ -280,7 +280,7 @@ module Kleister
|
|
280
280
|
# header parameters
|
281
281
|
header_params = opts[:header_params] || {}
|
282
282
|
# HTTP header 'Accept' (if needed)
|
283
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
283
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
284
284
|
# HTTP header 'Content-Type'
|
285
285
|
content_type = @api_client.select_header_content_type(['application/json'])
|
286
286
|
unless content_type.nil?
|
@@ -291,13 +291,13 @@ module Kleister
|
|
291
291
|
form_params = opts[:form_params] || {}
|
292
292
|
|
293
293
|
# http body (model)
|
294
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
294
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_build_request)
|
295
295
|
|
296
296
|
# return_type
|
297
297
|
return_type = opts[:debug_return_type] || 'Build'
|
298
298
|
|
299
299
|
# auth_names
|
300
|
-
auth_names = opts[:debug_auth_names] || %w[
|
300
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
301
301
|
|
302
302
|
new_options = opts.merge(
|
303
303
|
operation: :'PackApi.create_build',
|
@@ -317,25 +317,25 @@ module Kleister
|
|
317
317
|
end
|
318
318
|
|
319
319
|
# Create a new pack
|
320
|
-
# @param
|
320
|
+
# @param create_pack_request [CreatePackRequest] The pack data to create
|
321
321
|
# @param [Hash] opts the optional parameters
|
322
322
|
# @return [Pack]
|
323
|
-
def create_pack(
|
324
|
-
data, _status_code, _headers = create_pack_with_http_info(
|
323
|
+
def create_pack(create_pack_request, opts = {})
|
324
|
+
data, _status_code, _headers = create_pack_with_http_info(create_pack_request, opts)
|
325
325
|
data
|
326
326
|
end
|
327
327
|
|
328
328
|
# Create a new pack
|
329
|
-
# @param
|
329
|
+
# @param create_pack_request [CreatePackRequest] The pack data to create
|
330
330
|
# @param [Hash] opts the optional parameters
|
331
331
|
# @return [Array<(Pack, Integer, Hash)>] Pack data, response status code and response headers
|
332
|
-
def create_pack_with_http_info(
|
332
|
+
def create_pack_with_http_info(create_pack_request, opts = {})
|
333
333
|
if @api_client.config.debugging
|
334
334
|
@api_client.config.logger.debug 'Calling API: PackApi.create_pack ...'
|
335
335
|
end
|
336
|
-
# verify the required parameter '
|
337
|
-
if @api_client.config.client_side_validation &&
|
338
|
-
raise ArgumentError, "Missing the required parameter '
|
336
|
+
# verify the required parameter 'create_pack_request' is set
|
337
|
+
if @api_client.config.client_side_validation && create_pack_request.nil?
|
338
|
+
raise ArgumentError, "Missing the required parameter 'create_pack_request' when calling PackApi.create_pack"
|
339
339
|
end
|
340
340
|
|
341
341
|
# resource path
|
@@ -347,7 +347,7 @@ module Kleister
|
|
347
347
|
# header parameters
|
348
348
|
header_params = opts[:header_params] || {}
|
349
349
|
# HTTP header 'Accept' (if needed)
|
350
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
350
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
351
351
|
# HTTP header 'Content-Type'
|
352
352
|
content_type = @api_client.select_header_content_type(['application/json'])
|
353
353
|
unless content_type.nil?
|
@@ -358,13 +358,13 @@ module Kleister
|
|
358
358
|
form_params = opts[:form_params] || {}
|
359
359
|
|
360
360
|
# http body (model)
|
361
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
361
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_pack_request)
|
362
362
|
|
363
363
|
# return_type
|
364
364
|
return_type = opts[:debug_return_type] || 'Pack'
|
365
365
|
|
366
366
|
# auth_names
|
367
|
-
auth_names = opts[:debug_auth_names] || %w[
|
367
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
368
368
|
|
369
369
|
new_options = opts.merge(
|
370
370
|
operation: :'PackApi.create_pack',
|
@@ -420,7 +420,7 @@ module Kleister
|
|
420
420
|
# header parameters
|
421
421
|
header_params = opts[:header_params] || {}
|
422
422
|
# HTTP header 'Accept' (if needed)
|
423
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
423
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
424
424
|
|
425
425
|
# form parameters
|
426
426
|
form_params = opts[:form_params] || {}
|
@@ -432,7 +432,7 @@ module Kleister
|
|
432
432
|
return_type = opts[:debug_return_type] || 'Notification'
|
433
433
|
|
434
434
|
# auth_names
|
435
|
-
auth_names = opts[:debug_auth_names] || %w[
|
435
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
436
436
|
|
437
437
|
new_options = opts.merge(
|
438
438
|
operation: :'PackApi.delete_build',
|
@@ -454,21 +454,21 @@ module Kleister
|
|
454
454
|
# Unlink a version from a build
|
455
455
|
# @param pack_id [String] A pack identifier or slug
|
456
456
|
# @param build_id [String] A build identifier or slug
|
457
|
-
# @param
|
457
|
+
# @param attach_build_to_version_request [AttachBuildToVersionRequest] The build version data to create or delete
|
458
458
|
# @param [Hash] opts the optional parameters
|
459
459
|
# @return [Notification]
|
460
|
-
def delete_build_from_version(pack_id, build_id,
|
461
|
-
data, _status_code, _headers = delete_build_from_version_with_http_info(pack_id, build_id,
|
460
|
+
def delete_build_from_version(pack_id, build_id, attach_build_to_version_request, opts = {})
|
461
|
+
data, _status_code, _headers = delete_build_from_version_with_http_info(pack_id, build_id, attach_build_to_version_request, opts)
|
462
462
|
data
|
463
463
|
end
|
464
464
|
|
465
465
|
# Unlink a version from a build
|
466
466
|
# @param pack_id [String] A pack identifier or slug
|
467
467
|
# @param build_id [String] A build identifier or slug
|
468
|
-
# @param
|
468
|
+
# @param attach_build_to_version_request [AttachBuildToVersionRequest] The build version data to create or delete
|
469
469
|
# @param [Hash] opts the optional parameters
|
470
470
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
471
|
-
def delete_build_from_version_with_http_info(pack_id, build_id,
|
471
|
+
def delete_build_from_version_with_http_info(pack_id, build_id, attach_build_to_version_request, opts = {})
|
472
472
|
if @api_client.config.debugging
|
473
473
|
@api_client.config.logger.debug 'Calling API: PackApi.delete_build_from_version ...'
|
474
474
|
end
|
@@ -480,9 +480,9 @@ module Kleister
|
|
480
480
|
if @api_client.config.client_side_validation && build_id.nil?
|
481
481
|
raise ArgumentError, "Missing the required parameter 'build_id' when calling PackApi.delete_build_from_version"
|
482
482
|
end
|
483
|
-
# verify the required parameter '
|
484
|
-
if @api_client.config.client_side_validation &&
|
485
|
-
raise ArgumentError, "Missing the required parameter '
|
483
|
+
# verify the required parameter 'attach_build_to_version_request' is set
|
484
|
+
if @api_client.config.client_side_validation && attach_build_to_version_request.nil?
|
485
|
+
raise ArgumentError, "Missing the required parameter 'attach_build_to_version_request' when calling PackApi.delete_build_from_version"
|
486
486
|
end
|
487
487
|
|
488
488
|
# resource path
|
@@ -494,7 +494,7 @@ module Kleister
|
|
494
494
|
# header parameters
|
495
495
|
header_params = opts[:header_params] || {}
|
496
496
|
# HTTP header 'Accept' (if needed)
|
497
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
497
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
498
498
|
# HTTP header 'Content-Type'
|
499
499
|
content_type = @api_client.select_header_content_type(['application/json'])
|
500
500
|
unless content_type.nil?
|
@@ -505,13 +505,13 @@ module Kleister
|
|
505
505
|
form_params = opts[:form_params] || {}
|
506
506
|
|
507
507
|
# http body (model)
|
508
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
508
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(attach_build_to_version_request)
|
509
509
|
|
510
510
|
# return_type
|
511
511
|
return_type = opts[:debug_return_type] || 'Notification'
|
512
512
|
|
513
513
|
# auth_names
|
514
|
-
auth_names = opts[:debug_auth_names] || %w[
|
514
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
515
515
|
|
516
516
|
new_options = opts.merge(
|
517
517
|
operation: :'PackApi.delete_build_from_version',
|
@@ -561,7 +561,7 @@ module Kleister
|
|
561
561
|
# header parameters
|
562
562
|
header_params = opts[:header_params] || {}
|
563
563
|
# HTTP header 'Accept' (if needed)
|
564
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
564
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
565
565
|
|
566
566
|
# form parameters
|
567
567
|
form_params = opts[:form_params] || {}
|
@@ -573,7 +573,7 @@ module Kleister
|
|
573
573
|
return_type = opts[:debug_return_type] || 'Notification'
|
574
574
|
|
575
575
|
# auth_names
|
576
|
-
auth_names = opts[:debug_auth_names] || %w[
|
576
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
577
577
|
|
578
578
|
new_options = opts.merge(
|
579
579
|
operation: :'PackApi.delete_pack',
|
@@ -592,36 +592,36 @@ module Kleister
|
|
592
592
|
[data, status_code, headers]
|
593
593
|
end
|
594
594
|
|
595
|
-
# Unlink a
|
595
|
+
# Unlink a group from pack
|
596
596
|
# @param pack_id [String] A pack identifier or slug
|
597
|
-
# @param
|
597
|
+
# @param delete_pack_from_group_request [DeletePackFromGroupRequest] The pack group data to unlink
|
598
598
|
# @param [Hash] opts the optional parameters
|
599
599
|
# @return [Notification]
|
600
|
-
def
|
601
|
-
data, _status_code, _headers =
|
600
|
+
def delete_pack_from_group(pack_id, delete_pack_from_group_request, opts = {})
|
601
|
+
data, _status_code, _headers = delete_pack_from_group_with_http_info(pack_id, delete_pack_from_group_request, opts)
|
602
602
|
data
|
603
603
|
end
|
604
604
|
|
605
|
-
# Unlink a
|
605
|
+
# Unlink a group from pack
|
606
606
|
# @param pack_id [String] A pack identifier or slug
|
607
|
-
# @param
|
607
|
+
# @param delete_pack_from_group_request [DeletePackFromGroupRequest] The pack group data to unlink
|
608
608
|
# @param [Hash] opts the optional parameters
|
609
609
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
610
|
-
def
|
610
|
+
def delete_pack_from_group_with_http_info(pack_id, delete_pack_from_group_request, opts = {})
|
611
611
|
if @api_client.config.debugging
|
612
|
-
@api_client.config.logger.debug 'Calling API: PackApi.
|
612
|
+
@api_client.config.logger.debug 'Calling API: PackApi.delete_pack_from_group ...'
|
613
613
|
end
|
614
614
|
# verify the required parameter 'pack_id' is set
|
615
615
|
if @api_client.config.client_side_validation && pack_id.nil?
|
616
|
-
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.
|
616
|
+
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.delete_pack_from_group"
|
617
617
|
end
|
618
|
-
# verify the required parameter '
|
619
|
-
if @api_client.config.client_side_validation &&
|
620
|
-
raise ArgumentError, "Missing the required parameter '
|
618
|
+
# verify the required parameter 'delete_pack_from_group_request' is set
|
619
|
+
if @api_client.config.client_side_validation && delete_pack_from_group_request.nil?
|
620
|
+
raise ArgumentError, "Missing the required parameter 'delete_pack_from_group_request' when calling PackApi.delete_pack_from_group"
|
621
621
|
end
|
622
622
|
|
623
623
|
# resource path
|
624
|
-
local_var_path = '/packs/{pack_id}/
|
624
|
+
local_var_path = '/packs/{pack_id}/groups'.sub('{' + 'pack_id' + '}', CGI.escape(pack_id.to_s))
|
625
625
|
|
626
626
|
# query parameters
|
627
627
|
query_params = opts[:query_params] || {}
|
@@ -629,7 +629,7 @@ module Kleister
|
|
629
629
|
# header parameters
|
630
630
|
header_params = opts[:header_params] || {}
|
631
631
|
# HTTP header 'Accept' (if needed)
|
632
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
632
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
633
633
|
# HTTP header 'Content-Type'
|
634
634
|
content_type = @api_client.select_header_content_type(['application/json'])
|
635
635
|
unless content_type.nil?
|
@@ -640,16 +640,16 @@ module Kleister
|
|
640
640
|
form_params = opts[:form_params] || {}
|
641
641
|
|
642
642
|
# http body (model)
|
643
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
643
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_pack_from_group_request)
|
644
644
|
|
645
645
|
# return_type
|
646
646
|
return_type = opts[:debug_return_type] || 'Notification'
|
647
647
|
|
648
648
|
# auth_names
|
649
|
-
auth_names = opts[:debug_auth_names] || %w[
|
649
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
650
650
|
|
651
651
|
new_options = opts.merge(
|
652
|
-
operation: :'PackApi.
|
652
|
+
operation: :'PackApi.delete_pack_from_group',
|
653
653
|
header_params: header_params,
|
654
654
|
query_params: query_params,
|
655
655
|
form_params: form_params,
|
@@ -660,27 +660,27 @@ module Kleister
|
|
660
660
|
|
661
661
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
662
662
|
if @api_client.config.debugging
|
663
|
-
@api_client.config.logger.debug "API called: PackApi#
|
663
|
+
@api_client.config.logger.debug "API called: PackApi#delete_pack_from_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
664
664
|
end
|
665
665
|
[data, status_code, headers]
|
666
666
|
end
|
667
667
|
|
668
668
|
# Unlink a user from pack
|
669
669
|
# @param pack_id [String] A pack identifier or slug
|
670
|
-
# @param
|
670
|
+
# @param delete_pack_from_user_request [DeletePackFromUserRequest] The pack user data to unlink
|
671
671
|
# @param [Hash] opts the optional parameters
|
672
672
|
# @return [Notification]
|
673
|
-
def delete_pack_from_user(pack_id,
|
674
|
-
data, _status_code, _headers = delete_pack_from_user_with_http_info(pack_id,
|
673
|
+
def delete_pack_from_user(pack_id, delete_pack_from_user_request, opts = {})
|
674
|
+
data, _status_code, _headers = delete_pack_from_user_with_http_info(pack_id, delete_pack_from_user_request, opts)
|
675
675
|
data
|
676
676
|
end
|
677
677
|
|
678
678
|
# Unlink a user from pack
|
679
679
|
# @param pack_id [String] A pack identifier or slug
|
680
|
-
# @param
|
680
|
+
# @param delete_pack_from_user_request [DeletePackFromUserRequest] The pack user data to unlink
|
681
681
|
# @param [Hash] opts the optional parameters
|
682
682
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
683
|
-
def delete_pack_from_user_with_http_info(pack_id,
|
683
|
+
def delete_pack_from_user_with_http_info(pack_id, delete_pack_from_user_request, opts = {})
|
684
684
|
if @api_client.config.debugging
|
685
685
|
@api_client.config.logger.debug 'Calling API: PackApi.delete_pack_from_user ...'
|
686
686
|
end
|
@@ -688,9 +688,9 @@ module Kleister
|
|
688
688
|
if @api_client.config.client_side_validation && pack_id.nil?
|
689
689
|
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.delete_pack_from_user"
|
690
690
|
end
|
691
|
-
# verify the required parameter '
|
692
|
-
if @api_client.config.client_side_validation &&
|
693
|
-
raise ArgumentError, "Missing the required parameter '
|
691
|
+
# verify the required parameter 'delete_pack_from_user_request' is set
|
692
|
+
if @api_client.config.client_side_validation && delete_pack_from_user_request.nil?
|
693
|
+
raise ArgumentError, "Missing the required parameter 'delete_pack_from_user_request' when calling PackApi.delete_pack_from_user"
|
694
694
|
end
|
695
695
|
|
696
696
|
# resource path
|
@@ -702,7 +702,7 @@ module Kleister
|
|
702
702
|
# header parameters
|
703
703
|
header_params = opts[:header_params] || {}
|
704
704
|
# HTTP header 'Accept' (if needed)
|
705
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
705
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
706
706
|
# HTTP header 'Content-Type'
|
707
707
|
content_type = @api_client.select_header_content_type(['application/json'])
|
708
708
|
unless content_type.nil?
|
@@ -713,13 +713,13 @@ module Kleister
|
|
713
713
|
form_params = opts[:form_params] || {}
|
714
714
|
|
715
715
|
# http body (model)
|
716
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
716
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(delete_pack_from_user_request)
|
717
717
|
|
718
718
|
# return_type
|
719
719
|
return_type = opts[:debug_return_type] || 'Notification'
|
720
720
|
|
721
721
|
# auth_names
|
722
|
-
auth_names = opts[:debug_auth_names] || %w[
|
722
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
723
723
|
|
724
724
|
new_options = opts.merge(
|
725
725
|
operation: :'PackApi.delete_pack_from_user',
|
@@ -743,11 +743,11 @@ module Kleister
|
|
743
743
|
# @param build_id [String] A build identifier or slug
|
744
744
|
# @param [Hash] opts the optional parameters
|
745
745
|
# @option opts [String] :search Search query
|
746
|
-
# @option opts [String] :sort Sorting column
|
746
|
+
# @option opts [String] :sort Sorting column
|
747
747
|
# @option opts [String] :order Sorting order (default to 'asc')
|
748
|
-
# @option opts [Integer] :limit Paging limit
|
749
|
-
# @option opts [Integer] :offset Paging offset
|
750
|
-
# @return [
|
748
|
+
# @option opts [Integer] :limit Paging limit (default to 100)
|
749
|
+
# @option opts [Integer] :offset Paging offset (default to 0)
|
750
|
+
# @return [ListBuildVersions200Response]
|
751
751
|
def list_build_versions(pack_id, build_id, opts = {})
|
752
752
|
data, _status_code, _headers = list_build_versions_with_http_info(pack_id, build_id, opts)
|
753
753
|
data
|
@@ -758,11 +758,11 @@ module Kleister
|
|
758
758
|
# @param build_id [String] A build identifier or slug
|
759
759
|
# @param [Hash] opts the optional parameters
|
760
760
|
# @option opts [String] :search Search query
|
761
|
-
# @option opts [String] :sort Sorting column
|
761
|
+
# @option opts [String] :sort Sorting column
|
762
762
|
# @option opts [String] :order Sorting order (default to 'asc')
|
763
|
-
# @option opts [Integer] :limit Paging limit
|
764
|
-
# @option opts [Integer] :offset Paging offset
|
765
|
-
# @return [Array<(
|
763
|
+
# @option opts [Integer] :limit Paging limit (default to 100)
|
764
|
+
# @option opts [Integer] :offset Paging offset (default to 0)
|
765
|
+
# @return [Array<(ListBuildVersions200Response, Integer, Hash)>] ListBuildVersions200Response data, response status code and response headers
|
766
766
|
def list_build_versions_with_http_info(pack_id, build_id, opts = {})
|
767
767
|
if @api_client.config.debugging
|
768
768
|
@api_client.config.logger.debug 'Calling API: PackApi.list_build_versions ...'
|
@@ -776,11 +776,6 @@ module Kleister
|
|
776
776
|
raise ArgumentError, "Missing the required parameter 'build_id' when calling PackApi.list_build_versions"
|
777
777
|
end
|
778
778
|
|
779
|
-
allowable_values = %w[name public]
|
780
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
781
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
782
|
-
end
|
783
|
-
|
784
779
|
allowable_values = %w[asc desc]
|
785
780
|
if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
|
786
781
|
raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
@@ -800,7 +795,7 @@ module Kleister
|
|
800
795
|
# header parameters
|
801
796
|
header_params = opts[:header_params] || {}
|
802
797
|
# HTTP header 'Accept' (if needed)
|
803
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
798
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
804
799
|
|
805
800
|
# form parameters
|
806
801
|
form_params = opts[:form_params] || {}
|
@@ -809,10 +804,10 @@ module Kleister
|
|
809
804
|
post_body = opts[:debug_body]
|
810
805
|
|
811
806
|
# return_type
|
812
|
-
return_type = opts[:debug_return_type] || '
|
807
|
+
return_type = opts[:debug_return_type] || 'ListBuildVersions200Response'
|
813
808
|
|
814
809
|
# auth_names
|
815
|
-
auth_names = opts[:debug_auth_names] || %w[
|
810
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
816
811
|
|
817
812
|
new_options = opts.merge(
|
818
813
|
operation: :'PackApi.list_build_versions',
|
@@ -835,11 +830,11 @@ module Kleister
|
|
835
830
|
# @param pack_id [String] A pack identifier or slug
|
836
831
|
# @param [Hash] opts the optional parameters
|
837
832
|
# @option opts [String] :search Search query
|
838
|
-
# @option opts [String] :sort Sorting column
|
833
|
+
# @option opts [String] :sort Sorting column
|
839
834
|
# @option opts [String] :order Sorting order (default to 'asc')
|
840
|
-
# @option opts [Integer] :limit Paging limit
|
841
|
-
# @option opts [Integer] :offset Paging offset
|
842
|
-
# @return [
|
835
|
+
# @option opts [Integer] :limit Paging limit (default to 100)
|
836
|
+
# @option opts [Integer] :offset Paging offset (default to 0)
|
837
|
+
# @return [ListBuilds200Response]
|
843
838
|
def list_builds(pack_id, opts = {})
|
844
839
|
data, _status_code, _headers = list_builds_with_http_info(pack_id, opts)
|
845
840
|
data
|
@@ -849,11 +844,11 @@ module Kleister
|
|
849
844
|
# @param pack_id [String] A pack identifier or slug
|
850
845
|
# @param [Hash] opts the optional parameters
|
851
846
|
# @option opts [String] :search Search query
|
852
|
-
# @option opts [String] :sort Sorting column
|
847
|
+
# @option opts [String] :sort Sorting column
|
853
848
|
# @option opts [String] :order Sorting order (default to 'asc')
|
854
|
-
# @option opts [Integer] :limit Paging limit
|
855
|
-
# @option opts [Integer] :offset Paging offset
|
856
|
-
# @return [Array<(
|
849
|
+
# @option opts [Integer] :limit Paging limit (default to 100)
|
850
|
+
# @option opts [Integer] :offset Paging offset (default to 0)
|
851
|
+
# @return [Array<(ListBuilds200Response, Integer, Hash)>] ListBuilds200Response data, response status code and response headers
|
857
852
|
def list_builds_with_http_info(pack_id, opts = {})
|
858
853
|
if @api_client.config.debugging
|
859
854
|
@api_client.config.logger.debug 'Calling API: PackApi.list_builds ...'
|
@@ -863,11 +858,6 @@ module Kleister
|
|
863
858
|
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.list_builds"
|
864
859
|
end
|
865
860
|
|
866
|
-
allowable_values = %w[name public]
|
867
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
868
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
869
|
-
end
|
870
|
-
|
871
861
|
allowable_values = %w[asc desc]
|
872
862
|
if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
|
873
863
|
raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
@@ -887,7 +877,7 @@ module Kleister
|
|
887
877
|
# header parameters
|
888
878
|
header_params = opts[:header_params] || {}
|
889
879
|
# HTTP header 'Accept' (if needed)
|
890
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
880
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
891
881
|
|
892
882
|
# form parameters
|
893
883
|
form_params = opts[:form_params] || {}
|
@@ -896,10 +886,10 @@ module Kleister
|
|
896
886
|
post_body = opts[:debug_body]
|
897
887
|
|
898
888
|
# return_type
|
899
|
-
return_type = opts[:debug_return_type] || '
|
889
|
+
return_type = opts[:debug_return_type] || 'ListBuilds200Response'
|
900
890
|
|
901
891
|
# auth_names
|
902
|
-
auth_names = opts[:debug_auth_names] || %w[
|
892
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
903
893
|
|
904
894
|
new_options = opts.merge(
|
905
895
|
operation: :'PackApi.list_builds',
|
@@ -918,41 +908,36 @@ module Kleister
|
|
918
908
|
[data, status_code, headers]
|
919
909
|
end
|
920
910
|
|
921
|
-
# Fetch all
|
911
|
+
# Fetch all groups attached to pack
|
922
912
|
# @param pack_id [String] A pack identifier or slug
|
923
913
|
# @param [Hash] opts the optional parameters
|
924
914
|
# @option opts [String] :search Search query
|
925
|
-
# @option opts [String] :sort Sorting column
|
915
|
+
# @option opts [String] :sort Sorting column
|
926
916
|
# @option opts [String] :order Sorting order (default to 'asc')
|
927
917
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
928
918
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
929
|
-
# @return [
|
930
|
-
def
|
931
|
-
data, _status_code, _headers =
|
919
|
+
# @return [ListPackGroups200Response]
|
920
|
+
def list_pack_groups(pack_id, opts = {})
|
921
|
+
data, _status_code, _headers = list_pack_groups_with_http_info(pack_id, opts)
|
932
922
|
data
|
933
923
|
end
|
934
924
|
|
935
|
-
# Fetch all
|
925
|
+
# Fetch all groups attached to pack
|
936
926
|
# @param pack_id [String] A pack identifier or slug
|
937
927
|
# @param [Hash] opts the optional parameters
|
938
928
|
# @option opts [String] :search Search query
|
939
|
-
# @option opts [String] :sort Sorting column
|
929
|
+
# @option opts [String] :sort Sorting column
|
940
930
|
# @option opts [String] :order Sorting order (default to 'asc')
|
941
931
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
942
932
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
943
|
-
# @return [Array<(
|
944
|
-
def
|
933
|
+
# @return [Array<(ListPackGroups200Response, Integer, Hash)>] ListPackGroups200Response data, response status code and response headers
|
934
|
+
def list_pack_groups_with_http_info(pack_id, opts = {})
|
945
935
|
if @api_client.config.debugging
|
946
|
-
@api_client.config.logger.debug 'Calling API: PackApi.
|
936
|
+
@api_client.config.logger.debug 'Calling API: PackApi.list_pack_groups ...'
|
947
937
|
end
|
948
938
|
# verify the required parameter 'pack_id' is set
|
949
939
|
if @api_client.config.client_side_validation && pack_id.nil?
|
950
|
-
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.
|
951
|
-
end
|
952
|
-
|
953
|
-
allowable_values = %w[slug name]
|
954
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
955
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
940
|
+
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.list_pack_groups"
|
956
941
|
end
|
957
942
|
|
958
943
|
allowable_values = %w[asc desc]
|
@@ -961,7 +946,7 @@ module Kleister
|
|
961
946
|
end
|
962
947
|
|
963
948
|
# resource path
|
964
|
-
local_var_path = '/packs/{pack_id}/
|
949
|
+
local_var_path = '/packs/{pack_id}/groups'.sub('{' + 'pack_id' + '}', CGI.escape(pack_id.to_s))
|
965
950
|
|
966
951
|
# query parameters
|
967
952
|
query_params = opts[:query_params] || {}
|
@@ -974,7 +959,7 @@ module Kleister
|
|
974
959
|
# header parameters
|
975
960
|
header_params = opts[:header_params] || {}
|
976
961
|
# HTTP header 'Accept' (if needed)
|
977
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
962
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
978
963
|
|
979
964
|
# form parameters
|
980
965
|
form_params = opts[:form_params] || {}
|
@@ -983,13 +968,13 @@ module Kleister
|
|
983
968
|
post_body = opts[:debug_body]
|
984
969
|
|
985
970
|
# return_type
|
986
|
-
return_type = opts[:debug_return_type] || '
|
971
|
+
return_type = opts[:debug_return_type] || 'ListPackGroups200Response'
|
987
972
|
|
988
973
|
# auth_names
|
989
|
-
auth_names = opts[:debug_auth_names] || %w[
|
974
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
990
975
|
|
991
976
|
new_options = opts.merge(
|
992
|
-
operation: :'PackApi.
|
977
|
+
operation: :'PackApi.list_pack_groups',
|
993
978
|
header_params: header_params,
|
994
979
|
query_params: query_params,
|
995
980
|
form_params: form_params,
|
@@ -1000,7 +985,7 @@ module Kleister
|
|
1000
985
|
|
1001
986
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1002
987
|
if @api_client.config.debugging
|
1003
|
-
@api_client.config.logger.debug "API called: PackApi#
|
988
|
+
@api_client.config.logger.debug "API called: PackApi#list_pack_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1004
989
|
end
|
1005
990
|
[data, status_code, headers]
|
1006
991
|
end
|
@@ -1009,11 +994,11 @@ module Kleister
|
|
1009
994
|
# @param pack_id [String] A pack identifier or slug
|
1010
995
|
# @param [Hash] opts the optional parameters
|
1011
996
|
# @option opts [String] :search Search query
|
1012
|
-
# @option opts [String] :sort Sorting column
|
997
|
+
# @option opts [String] :sort Sorting column
|
1013
998
|
# @option opts [String] :order Sorting order (default to 'asc')
|
1014
999
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
1015
1000
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
1016
|
-
# @return [
|
1001
|
+
# @return [ListPackUsers200Response]
|
1017
1002
|
def list_pack_users(pack_id, opts = {})
|
1018
1003
|
data, _status_code, _headers = list_pack_users_with_http_info(pack_id, opts)
|
1019
1004
|
data
|
@@ -1023,11 +1008,11 @@ module Kleister
|
|
1023
1008
|
# @param pack_id [String] A pack identifier or slug
|
1024
1009
|
# @param [Hash] opts the optional parameters
|
1025
1010
|
# @option opts [String] :search Search query
|
1026
|
-
# @option opts [String] :sort Sorting column
|
1011
|
+
# @option opts [String] :sort Sorting column
|
1027
1012
|
# @option opts [String] :order Sorting order (default to 'asc')
|
1028
1013
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
1029
1014
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
1030
|
-
# @return [Array<(
|
1015
|
+
# @return [Array<(ListPackUsers200Response, Integer, Hash)>] ListPackUsers200Response data, response status code and response headers
|
1031
1016
|
def list_pack_users_with_http_info(pack_id, opts = {})
|
1032
1017
|
if @api_client.config.debugging
|
1033
1018
|
@api_client.config.logger.debug 'Calling API: PackApi.list_pack_users ...'
|
@@ -1037,11 +1022,6 @@ module Kleister
|
|
1037
1022
|
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.list_pack_users"
|
1038
1023
|
end
|
1039
1024
|
|
1040
|
-
allowable_values = %w[username email fullname admin active]
|
1041
|
-
if @api_client.config.client_side_validation && opts[:sort] && !allowable_values.include?(opts[:sort])
|
1042
|
-
raise ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
|
1043
|
-
end
|
1044
|
-
|
1045
1025
|
allowable_values = %w[asc desc]
|
1046
1026
|
if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
|
1047
1027
|
raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
@@ -1061,7 +1041,7 @@ module Kleister
|
|
1061
1041
|
# header parameters
|
1062
1042
|
header_params = opts[:header_params] || {}
|
1063
1043
|
# HTTP header 'Accept' (if needed)
|
1064
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1044
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1065
1045
|
|
1066
1046
|
# form parameters
|
1067
1047
|
form_params = opts[:form_params] || {}
|
@@ -1070,10 +1050,10 @@ module Kleister
|
|
1070
1050
|
post_body = opts[:debug_body]
|
1071
1051
|
|
1072
1052
|
# return_type
|
1073
|
-
return_type = opts[:debug_return_type] || '
|
1053
|
+
return_type = opts[:debug_return_type] || 'ListPackUsers200Response'
|
1074
1054
|
|
1075
1055
|
# auth_names
|
1076
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1056
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1077
1057
|
|
1078
1058
|
new_options = opts.merge(
|
1079
1059
|
operation: :'PackApi.list_pack_users',
|
@@ -1095,11 +1075,11 @@ module Kleister
|
|
1095
1075
|
# Fetch all available packs
|
1096
1076
|
# @param [Hash] opts the optional parameters
|
1097
1077
|
# @option opts [String] :search Search query
|
1098
|
-
# @option opts [String] :sort Sorting column
|
1078
|
+
# @option opts [String] :sort Sorting column
|
1099
1079
|
# @option opts [String] :order Sorting order (default to 'asc')
|
1100
1080
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
1101
1081
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
1102
|
-
# @return [
|
1082
|
+
# @return [ListPacks200Response]
|
1103
1083
|
def list_packs(opts = {})
|
1104
1084
|
data, _status_code, _headers = list_packs_with_http_info(opts)
|
1105
1085
|
data
|
@@ -1108,20 +1088,15 @@ module Kleister
|
|
1108
1088
|
# Fetch all available packs
|
1109
1089
|
# @param [Hash] opts the optional parameters
|
1110
1090
|
# @option opts [String] :search Search query
|
1111
|
-
# @option opts [String] :sort Sorting column
|
1091
|
+
# @option opts [String] :sort Sorting column
|
1112
1092
|
# @option opts [String] :order Sorting order (default to 'asc')
|
1113
1093
|
# @option opts [Integer] :limit Paging limit (default to 100)
|
1114
1094
|
# @option opts [Integer] :offset Paging offset (default to 0)
|
1115
|
-
# @return [Array<(
|
1095
|
+
# @return [Array<(ListPacks200Response, Integer, Hash)>] ListPacks200Response data, response status code and response headers
|
1116
1096
|
def list_packs_with_http_info(opts = {})
|
1117
1097
|
if @api_client.config.debugging
|
1118
1098
|
@api_client.config.logger.debug 'Calling API: PackApi.list_packs ...'
|
1119
1099
|
end
|
1120
|
-
allowable_values = %w[slug 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
1100
|
allowable_values = %w[asc desc]
|
1126
1101
|
if @api_client.config.client_side_validation && opts[:order] && !allowable_values.include?(opts[:order])
|
1127
1102
|
raise ArgumentError, "invalid value for \"order\", must be one of #{allowable_values}"
|
@@ -1141,7 +1116,7 @@ module Kleister
|
|
1141
1116
|
# header parameters
|
1142
1117
|
header_params = opts[:header_params] || {}
|
1143
1118
|
# HTTP header 'Accept' (if needed)
|
1144
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1119
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1145
1120
|
|
1146
1121
|
# form parameters
|
1147
1122
|
form_params = opts[:form_params] || {}
|
@@ -1150,10 +1125,10 @@ module Kleister
|
|
1150
1125
|
post_body = opts[:debug_body]
|
1151
1126
|
|
1152
1127
|
# return_type
|
1153
|
-
return_type = opts[:debug_return_type] || '
|
1128
|
+
return_type = opts[:debug_return_type] || 'ListPacks200Response'
|
1154
1129
|
|
1155
1130
|
# auth_names
|
1156
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1131
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1157
1132
|
|
1158
1133
|
new_options = opts.merge(
|
1159
1134
|
operation: :'PackApi.list_packs',
|
@@ -1172,36 +1147,36 @@ module Kleister
|
|
1172
1147
|
[data, status_code, headers]
|
1173
1148
|
end
|
1174
1149
|
|
1175
|
-
# Update
|
1150
|
+
# Update group perms for pack
|
1176
1151
|
# @param pack_id [String] A pack identifier or slug
|
1177
|
-
# @param
|
1152
|
+
# @param permit_pack_group_request [PermitPackGroupRequest] The pack group data to permit
|
1178
1153
|
# @param [Hash] opts the optional parameters
|
1179
1154
|
# @return [Notification]
|
1180
|
-
def
|
1181
|
-
data, _status_code, _headers =
|
1155
|
+
def permit_pack_group(pack_id, permit_pack_group_request, opts = {})
|
1156
|
+
data, _status_code, _headers = permit_pack_group_with_http_info(pack_id, permit_pack_group_request, opts)
|
1182
1157
|
data
|
1183
1158
|
end
|
1184
1159
|
|
1185
|
-
# Update
|
1160
|
+
# Update group perms for pack
|
1186
1161
|
# @param pack_id [String] A pack identifier or slug
|
1187
|
-
# @param
|
1162
|
+
# @param permit_pack_group_request [PermitPackGroupRequest] The pack group data to permit
|
1188
1163
|
# @param [Hash] opts the optional parameters
|
1189
1164
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
1190
|
-
def
|
1165
|
+
def permit_pack_group_with_http_info(pack_id, permit_pack_group_request, opts = {})
|
1191
1166
|
if @api_client.config.debugging
|
1192
|
-
@api_client.config.logger.debug 'Calling API: PackApi.
|
1167
|
+
@api_client.config.logger.debug 'Calling API: PackApi.permit_pack_group ...'
|
1193
1168
|
end
|
1194
1169
|
# verify the required parameter 'pack_id' is set
|
1195
1170
|
if @api_client.config.client_side_validation && pack_id.nil?
|
1196
|
-
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.
|
1171
|
+
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.permit_pack_group"
|
1197
1172
|
end
|
1198
|
-
# verify the required parameter '
|
1199
|
-
if @api_client.config.client_side_validation &&
|
1200
|
-
raise ArgumentError, "Missing the required parameter '
|
1173
|
+
# verify the required parameter 'permit_pack_group_request' is set
|
1174
|
+
if @api_client.config.client_side_validation && permit_pack_group_request.nil?
|
1175
|
+
raise ArgumentError, "Missing the required parameter 'permit_pack_group_request' when calling PackApi.permit_pack_group"
|
1201
1176
|
end
|
1202
1177
|
|
1203
1178
|
# resource path
|
1204
|
-
local_var_path = '/packs/{pack_id}/
|
1179
|
+
local_var_path = '/packs/{pack_id}/groups'.sub('{' + 'pack_id' + '}', CGI.escape(pack_id.to_s))
|
1205
1180
|
|
1206
1181
|
# query parameters
|
1207
1182
|
query_params = opts[:query_params] || {}
|
@@ -1209,7 +1184,7 @@ module Kleister
|
|
1209
1184
|
# header parameters
|
1210
1185
|
header_params = opts[:header_params] || {}
|
1211
1186
|
# HTTP header 'Accept' (if needed)
|
1212
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1187
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1213
1188
|
# HTTP header 'Content-Type'
|
1214
1189
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1215
1190
|
unless content_type.nil?
|
@@ -1220,16 +1195,16 @@ module Kleister
|
|
1220
1195
|
form_params = opts[:form_params] || {}
|
1221
1196
|
|
1222
1197
|
# http body (model)
|
1223
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1198
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_pack_group_request)
|
1224
1199
|
|
1225
1200
|
# return_type
|
1226
1201
|
return_type = opts[:debug_return_type] || 'Notification'
|
1227
1202
|
|
1228
1203
|
# auth_names
|
1229
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1204
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1230
1205
|
|
1231
1206
|
new_options = opts.merge(
|
1232
|
-
operation: :'PackApi.
|
1207
|
+
operation: :'PackApi.permit_pack_group',
|
1233
1208
|
header_params: header_params,
|
1234
1209
|
query_params: query_params,
|
1235
1210
|
form_params: form_params,
|
@@ -1240,27 +1215,27 @@ module Kleister
|
|
1240
1215
|
|
1241
1216
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1242
1217
|
if @api_client.config.debugging
|
1243
|
-
@api_client.config.logger.debug "API called: PackApi#
|
1218
|
+
@api_client.config.logger.debug "API called: PackApi#permit_pack_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1244
1219
|
end
|
1245
1220
|
[data, status_code, headers]
|
1246
1221
|
end
|
1247
1222
|
|
1248
1223
|
# Update user perms for pack
|
1249
1224
|
# @param pack_id [String] A pack identifier or slug
|
1250
|
-
# @param
|
1225
|
+
# @param permit_pack_user_request [PermitPackUserRequest] The pack user data to permit
|
1251
1226
|
# @param [Hash] opts the optional parameters
|
1252
1227
|
# @return [Notification]
|
1253
|
-
def permit_pack_user(pack_id,
|
1254
|
-
data, _status_code, _headers = permit_pack_user_with_http_info(pack_id,
|
1228
|
+
def permit_pack_user(pack_id, permit_pack_user_request, opts = {})
|
1229
|
+
data, _status_code, _headers = permit_pack_user_with_http_info(pack_id, permit_pack_user_request, opts)
|
1255
1230
|
data
|
1256
1231
|
end
|
1257
1232
|
|
1258
1233
|
# Update user perms for pack
|
1259
1234
|
# @param pack_id [String] A pack identifier or slug
|
1260
|
-
# @param
|
1235
|
+
# @param permit_pack_user_request [PermitPackUserRequest] The pack user data to permit
|
1261
1236
|
# @param [Hash] opts the optional parameters
|
1262
1237
|
# @return [Array<(Notification, Integer, Hash)>] Notification data, response status code and response headers
|
1263
|
-
def permit_pack_user_with_http_info(pack_id,
|
1238
|
+
def permit_pack_user_with_http_info(pack_id, permit_pack_user_request, opts = {})
|
1264
1239
|
if @api_client.config.debugging
|
1265
1240
|
@api_client.config.logger.debug 'Calling API: PackApi.permit_pack_user ...'
|
1266
1241
|
end
|
@@ -1268,9 +1243,9 @@ module Kleister
|
|
1268
1243
|
if @api_client.config.client_side_validation && pack_id.nil?
|
1269
1244
|
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.permit_pack_user"
|
1270
1245
|
end
|
1271
|
-
# verify the required parameter '
|
1272
|
-
if @api_client.config.client_side_validation &&
|
1273
|
-
raise ArgumentError, "Missing the required parameter '
|
1246
|
+
# verify the required parameter 'permit_pack_user_request' is set
|
1247
|
+
if @api_client.config.client_side_validation && permit_pack_user_request.nil?
|
1248
|
+
raise ArgumentError, "Missing the required parameter 'permit_pack_user_request' when calling PackApi.permit_pack_user"
|
1274
1249
|
end
|
1275
1250
|
|
1276
1251
|
# resource path
|
@@ -1282,7 +1257,7 @@ module Kleister
|
|
1282
1257
|
# header parameters
|
1283
1258
|
header_params = opts[:header_params] || {}
|
1284
1259
|
# HTTP header 'Accept' (if needed)
|
1285
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1260
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1286
1261
|
# HTTP header 'Content-Type'
|
1287
1262
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1288
1263
|
unless content_type.nil?
|
@@ -1293,13 +1268,13 @@ module Kleister
|
|
1293
1268
|
form_params = opts[:form_params] || {}
|
1294
1269
|
|
1295
1270
|
# http body (model)
|
1296
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1271
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(permit_pack_user_request)
|
1297
1272
|
|
1298
1273
|
# return_type
|
1299
1274
|
return_type = opts[:debug_return_type] || 'Notification'
|
1300
1275
|
|
1301
1276
|
# auth_names
|
1302
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1277
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1303
1278
|
|
1304
1279
|
new_options = opts.merge(
|
1305
1280
|
operation: :'PackApi.permit_pack_user',
|
@@ -1355,7 +1330,7 @@ module Kleister
|
|
1355
1330
|
# header parameters
|
1356
1331
|
header_params = opts[:header_params] || {}
|
1357
1332
|
# HTTP header 'Accept' (if needed)
|
1358
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1333
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1359
1334
|
|
1360
1335
|
# form parameters
|
1361
1336
|
form_params = opts[:form_params] || {}
|
@@ -1367,7 +1342,7 @@ module Kleister
|
|
1367
1342
|
return_type = opts[:debug_return_type] || 'Build'
|
1368
1343
|
|
1369
1344
|
# auth_names
|
1370
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1345
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1371
1346
|
|
1372
1347
|
new_options = opts.merge(
|
1373
1348
|
operation: :'PackApi.show_build',
|
@@ -1417,7 +1392,7 @@ module Kleister
|
|
1417
1392
|
# header parameters
|
1418
1393
|
header_params = opts[:header_params] || {}
|
1419
1394
|
# HTTP header 'Accept' (if needed)
|
1420
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1395
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1421
1396
|
|
1422
1397
|
# form parameters
|
1423
1398
|
form_params = opts[:form_params] || {}
|
@@ -1429,7 +1404,7 @@ module Kleister
|
|
1429
1404
|
return_type = opts[:debug_return_type] || 'Pack'
|
1430
1405
|
|
1431
1406
|
# auth_names
|
1432
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1407
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1433
1408
|
|
1434
1409
|
new_options = opts.merge(
|
1435
1410
|
operation: :'PackApi.show_pack',
|
@@ -1451,21 +1426,21 @@ module Kleister
|
|
1451
1426
|
# Update a specific build for a pack
|
1452
1427
|
# @param pack_id [String] A pack identifier or slug
|
1453
1428
|
# @param build_id [String] A build identifier or slug
|
1454
|
-
# @param
|
1429
|
+
# @param create_build_request [CreateBuildRequest] The build data to update
|
1455
1430
|
# @param [Hash] opts the optional parameters
|
1456
1431
|
# @return [Build]
|
1457
|
-
def update_build(pack_id, build_id,
|
1458
|
-
data, _status_code, _headers = update_build_with_http_info(pack_id, build_id,
|
1432
|
+
def update_build(pack_id, build_id, create_build_request, opts = {})
|
1433
|
+
data, _status_code, _headers = update_build_with_http_info(pack_id, build_id, create_build_request, opts)
|
1459
1434
|
data
|
1460
1435
|
end
|
1461
1436
|
|
1462
1437
|
# Update a specific build for a pack
|
1463
1438
|
# @param pack_id [String] A pack identifier or slug
|
1464
1439
|
# @param build_id [String] A build identifier or slug
|
1465
|
-
# @param
|
1440
|
+
# @param create_build_request [CreateBuildRequest] The build data to update
|
1466
1441
|
# @param [Hash] opts the optional parameters
|
1467
1442
|
# @return [Array<(Build, Integer, Hash)>] Build data, response status code and response headers
|
1468
|
-
def update_build_with_http_info(pack_id, build_id,
|
1443
|
+
def update_build_with_http_info(pack_id, build_id, create_build_request, opts = {})
|
1469
1444
|
if @api_client.config.debugging
|
1470
1445
|
@api_client.config.logger.debug 'Calling API: PackApi.update_build ...'
|
1471
1446
|
end
|
@@ -1477,9 +1452,9 @@ module Kleister
|
|
1477
1452
|
if @api_client.config.client_side_validation && build_id.nil?
|
1478
1453
|
raise ArgumentError, "Missing the required parameter 'build_id' when calling PackApi.update_build"
|
1479
1454
|
end
|
1480
|
-
# verify the required parameter '
|
1481
|
-
if @api_client.config.client_side_validation &&
|
1482
|
-
raise ArgumentError, "Missing the required parameter '
|
1455
|
+
# verify the required parameter 'create_build_request' is set
|
1456
|
+
if @api_client.config.client_side_validation && create_build_request.nil?
|
1457
|
+
raise ArgumentError, "Missing the required parameter 'create_build_request' when calling PackApi.update_build"
|
1483
1458
|
end
|
1484
1459
|
|
1485
1460
|
# resource path
|
@@ -1491,7 +1466,7 @@ module Kleister
|
|
1491
1466
|
# header parameters
|
1492
1467
|
header_params = opts[:header_params] || {}
|
1493
1468
|
# HTTP header 'Accept' (if needed)
|
1494
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1469
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1495
1470
|
# HTTP header 'Content-Type'
|
1496
1471
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1497
1472
|
unless content_type.nil?
|
@@ -1502,13 +1477,13 @@ module Kleister
|
|
1502
1477
|
form_params = opts[:form_params] || {}
|
1503
1478
|
|
1504
1479
|
# http body (model)
|
1505
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1480
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_build_request)
|
1506
1481
|
|
1507
1482
|
# return_type
|
1508
1483
|
return_type = opts[:debug_return_type] || 'Build'
|
1509
1484
|
|
1510
1485
|
# auth_names
|
1511
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1486
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1512
1487
|
|
1513
1488
|
new_options = opts.merge(
|
1514
1489
|
operation: :'PackApi.update_build',
|
@@ -1529,20 +1504,20 @@ module Kleister
|
|
1529
1504
|
|
1530
1505
|
# Update a specific pack
|
1531
1506
|
# @param pack_id [String] A pack identifier or slug
|
1532
|
-
# @param
|
1507
|
+
# @param create_pack_request [CreatePackRequest] The pack data to update
|
1533
1508
|
# @param [Hash] opts the optional parameters
|
1534
1509
|
# @return [Pack]
|
1535
|
-
def update_pack(pack_id,
|
1536
|
-
data, _status_code, _headers = update_pack_with_http_info(pack_id,
|
1510
|
+
def update_pack(pack_id, create_pack_request, opts = {})
|
1511
|
+
data, _status_code, _headers = update_pack_with_http_info(pack_id, create_pack_request, opts)
|
1537
1512
|
data
|
1538
1513
|
end
|
1539
1514
|
|
1540
1515
|
# Update a specific pack
|
1541
1516
|
# @param pack_id [String] A pack identifier or slug
|
1542
|
-
# @param
|
1517
|
+
# @param create_pack_request [CreatePackRequest] The pack data to update
|
1543
1518
|
# @param [Hash] opts the optional parameters
|
1544
1519
|
# @return [Array<(Pack, Integer, Hash)>] Pack data, response status code and response headers
|
1545
|
-
def update_pack_with_http_info(pack_id,
|
1520
|
+
def update_pack_with_http_info(pack_id, create_pack_request, opts = {})
|
1546
1521
|
if @api_client.config.debugging
|
1547
1522
|
@api_client.config.logger.debug 'Calling API: PackApi.update_pack ...'
|
1548
1523
|
end
|
@@ -1550,9 +1525,9 @@ module Kleister
|
|
1550
1525
|
if @api_client.config.client_side_validation && pack_id.nil?
|
1551
1526
|
raise ArgumentError, "Missing the required parameter 'pack_id' when calling PackApi.update_pack"
|
1552
1527
|
end
|
1553
|
-
# verify the required parameter '
|
1554
|
-
if @api_client.config.client_side_validation &&
|
1555
|
-
raise ArgumentError, "Missing the required parameter '
|
1528
|
+
# verify the required parameter 'create_pack_request' is set
|
1529
|
+
if @api_client.config.client_side_validation && create_pack_request.nil?
|
1530
|
+
raise ArgumentError, "Missing the required parameter 'create_pack_request' when calling PackApi.update_pack"
|
1556
1531
|
end
|
1557
1532
|
|
1558
1533
|
# resource path
|
@@ -1564,7 +1539,7 @@ module Kleister
|
|
1564
1539
|
# header parameters
|
1565
1540
|
header_params = opts[:header_params] || {}
|
1566
1541
|
# HTTP header 'Accept' (if needed)
|
1567
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1542
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1568
1543
|
# HTTP header 'Content-Type'
|
1569
1544
|
content_type = @api_client.select_header_content_type(['application/json'])
|
1570
1545
|
unless content_type.nil?
|
@@ -1575,13 +1550,13 @@ module Kleister
|
|
1575
1550
|
form_params = opts[:form_params] || {}
|
1576
1551
|
|
1577
1552
|
# http body (model)
|
1578
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
1553
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_pack_request)
|
1579
1554
|
|
1580
1555
|
# return_type
|
1581
1556
|
return_type = opts[:debug_return_type] || 'Pack'
|
1582
1557
|
|
1583
1558
|
# auth_names
|
1584
|
-
auth_names = opts[:debug_auth_names] || %w[
|
1559
|
+
auth_names = opts[:debug_auth_names] || %w[Basic Header Bearer]
|
1585
1560
|
|
1586
1561
|
new_options = opts.merge(
|
1587
1562
|
operation: :'PackApi.update_pack',
|