kleister 1.14.1 → 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 +16 -0
- data/README.md +3 -3
- data/lib/kleister/api/auth_api.rb +137 -73
- data/lib/kleister/api/fabric_api.rb +37 -42
- data/lib/kleister/api/forge_api.rb +37 -42
- data/lib/kleister/api/{team_api.rb → group_api.rb} +359 -379
- data/lib/kleister/api/minecraft_api.rb +37 -42
- data/lib/kleister/api/mod_api.rb +471 -232
- data/lib/kleister/api/neoforge_api.rb +37 -42
- data/lib/kleister/api/pack_api.rb +215 -240
- data/lib/kleister/api/profile_api.rb +16 -16
- data/lib/kleister/api/quilt_api.rb +37 -42
- data/lib/kleister/api/user_api.rb +259 -279
- data/lib/kleister/api_client.rb +1 -1
- data/lib/kleister/api_error.rb +1 -1
- data/lib/kleister/configuration.rb +1 -8
- data/lib/kleister/models/{build_version_params.rb → attach_build_to_version_request.rb} +8 -20
- data/lib/kleister/models/{quilt_build_params.rb → attach_minecraft_to_build_request.rb} +8 -20
- data/lib/kleister/models/auth_token.rb +1 -1
- data/lib/kleister/models/auth_verify.rb +1 -1
- data/lib/kleister/models/build.rb +3 -13
- data/lib/kleister/models/build_version.rb +2 -3
- data/lib/kleister/models/{pack_back.rb → create_build_request.rb} +76 -58
- data/lib/kleister/models/{mods.rb → create_group_request.rb} +19 -18
- data/lib/kleister/models/{pack_icon.rb → create_mod_request.rb} +48 -54
- data/lib/kleister/models/{forge_builds.rb → create_pack_request.rb} +33 -23
- data/lib/kleister/models/create_user_request.rb +257 -0
- data/lib/kleister/models/{builds.rb → create_version_request.rb} +25 -23
- data/lib/kleister/models/{packs.rb → delete_group_from_mod_request.rb} +20 -21
- data/lib/kleister/models/delete_group_from_pack_request.rb +219 -0
- data/lib/kleister/models/delete_pack_from_group_request.rb +219 -0
- data/lib/kleister/models/{users.rb → delete_pack_from_user_request.rb} +20 -21
- data/lib/kleister/models/fabric.rb +1 -1
- data/lib/kleister/models/forge.rb +1 -1
- data/lib/kleister/models/{team.rb → group.rb} +5 -5
- data/lib/kleister/models/{team_mod.rb → group_mod.rb} +21 -21
- data/lib/kleister/models/{team_pack.rb → group_pack.rb} +21 -21
- data/lib/kleister/models/{build_versions.rb → list_build_versions200_response.rb} +56 -18
- data/lib/kleister/models/{pack_teams.rb → list_builds200_response.rb} +59 -20
- data/lib/kleister/models/{fabric_builds.rb → list_fabric_builds200_response.rb} +56 -18
- data/lib/kleister/models/{fabrics.rb → list_fabrics200_response.rb} +52 -13
- data/lib/kleister/models/list_forge_builds200_response.rb +266 -0
- data/lib/kleister/models/{forges.rb → list_forges200_response.rb} +52 -13
- data/lib/kleister/models/list_group_mods200_response.rb +266 -0
- data/lib/kleister/models/list_group_packs200_response.rb +266 -0
- data/lib/kleister/models/list_group_users200_response.rb +266 -0
- data/lib/kleister/models/list_groups200_response.rb +259 -0
- data/lib/kleister/models/{minecraft_builds.rb → list_minecraft_builds200_response.rb} +56 -18
- data/lib/kleister/models/list_minecrafts200_response.rb +259 -0
- data/lib/kleister/models/list_mod_groups200_response.rb +266 -0
- data/lib/kleister/models/list_mod_users200_response.rb +266 -0
- data/lib/kleister/models/{team_mods.rb → list_mods200_response.rb} +52 -20
- data/lib/kleister/models/{neoforge_builds.rb → list_neoforge_builds200_response.rb} +56 -18
- data/lib/kleister/models/{neoforges.rb → list_neoforges200_response.rb} +52 -13
- data/lib/kleister/models/list_pack_groups200_response.rb +266 -0
- data/lib/kleister/models/{pack_users.rb → list_pack_users200_response.rb} +56 -17
- data/lib/kleister/models/list_packs200_response.rb +259 -0
- data/lib/kleister/models/{mod_teams.rb → list_providers200_response.rb} +31 -23
- data/lib/kleister/models/{quilt_builds.rb → list_quilt_builds200_response.rb} +56 -17
- data/lib/kleister/models/{quilts.rb → list_quilts200_response.rb} +52 -13
- data/lib/kleister/models/list_user_groups200_response.rb +266 -0
- data/lib/kleister/models/{user_teams.rb → list_user_mods200_response.rb} +59 -20
- data/lib/kleister/models/{user_packs.rb → list_user_packs200_response.rb} +56 -17
- data/lib/kleister/models/{team_users.rb → list_users200_response.rb} +52 -20
- data/lib/kleister/models/{version_builds.rb → list_version_builds200_response.rb} +56 -18
- data/lib/kleister/models/{versions.rb → list_versions200_response.rb} +52 -13
- data/lib/kleister/models/{auth_login.rb → login_auth_request.rb} +4 -4
- data/lib/kleister/models/minecraft.rb +1 -1
- data/lib/kleister/models/mod.rb +10 -3
- data/lib/kleister/models/{team_packs.rb → mod_avatar.rb} +32 -23
- data/lib/kleister/models/neoforge.rb +1 -1
- data/lib/kleister/models/notification.rb +2 -3
- data/lib/kleister/models/pack.rb +8 -22
- data/lib/kleister/models/{minecrafts.rb → pack_avatar.rb} +34 -18
- data/lib/kleister/models/{mod_users.rb → permit_group_mod_request.rb} +29 -25
- data/lib/kleister/models/{forge_build_params.rb → permit_group_pack_request.rb} +15 -17
- data/lib/kleister/models/{fabric_build_params.rb → permit_pack_group_request.rb} +24 -26
- data/lib/kleister/models/{user_mods.rb → permit_pack_user_request.rb} +29 -25
- data/lib/kleister/models/profile.rb +20 -20
- data/lib/kleister/models/provider.rb +1 -1
- data/lib/kleister/models/quilt.rb +1 -1
- data/lib/kleister/models/{teams.rb → redirect_auth_request.rb} +20 -21
- data/lib/kleister/models/update_profile_request.rb +237 -0
- data/lib/kleister/models/update_user_request.rb +253 -0
- data/lib/kleister/models/user.rb +1 -1
- data/lib/kleister/models/user_auth.rb +1 -1
- data/lib/kleister/models/{user_team.rb → user_group.rb} +23 -23
- data/lib/kleister/models/user_mod.rb +1 -1
- data/lib/kleister/models/user_pack.rb +1 -1
- data/lib/kleister/models/validation.rb +1 -1
- data/lib/kleister/models/version.rb +3 -11
- data/lib/kleister/models/version_file.rb +3 -18
- data/lib/kleister/version.rb +2 -2
- data/lib/kleister.rb +57 -56
- metadata +58 -57
- data/lib/kleister/models/minecraft_build_params.rb +0 -233
- data/lib/kleister/models/mod_team_params.rb +0 -265
- data/lib/kleister/models/mod_user_params.rb +0 -265
- data/lib/kleister/models/neoforge_build_params.rb +0 -233
- data/lib/kleister/models/pack_logo.rb +0 -275
- data/lib/kleister/models/pack_team_params.rb +0 -265
- data/lib/kleister/models/pack_user_params.rb +0 -265
- data/lib/kleister/models/providers.rb +0 -220
- data/lib/kleister/models/team_mod_params.rb +0 -265
- data/lib/kleister/models/team_pack_params.rb +0 -265
- data/lib/kleister/models/team_user_params.rb +0 -265
- data/lib/kleister/models/user_mod_params.rb +0 -265
- data/lib/kleister/models/user_pack_params.rb +0 -265
- data/lib/kleister/models/user_team_params.rb +0 -265
- data/lib/kleister/models/version_build_params.rb +0 -233
data/lib/kleister/api_client.rb
CHANGED
data/lib/kleister/api_error.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# The version of the OpenAPI document: 1.0.0-alpha1
|
6
6
|
# Contact: kleister@webhippie.de
|
7
7
|
# Generated by: https://openapi-generator.tech
|
8
|
-
# Generator version: 7.
|
8
|
+
# Generator version: 7.12.0
|
9
9
|
#
|
10
10
|
|
11
11
|
module Kleister
|
@@ -254,13 +254,6 @@ module Kleister
|
|
254
254
|
in: 'header',
|
255
255
|
key: 'Authorization',
|
256
256
|
value: basic_auth_token
|
257
|
-
},
|
258
|
-
'Cookie' =>
|
259
|
-
{
|
260
|
-
type: 'api_key',
|
261
|
-
in: 'header',
|
262
|
-
key: 'Cookie',
|
263
|
-
value: api_key_with_prefix('Cookie')
|
264
257
|
}
|
265
258
|
}
|
266
259
|
end
|
@@ -5,15 +5,14 @@
|
|
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 'date'
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Kleister
|
15
|
-
|
16
|
-
class BuildVersionParams
|
15
|
+
class AttachBuildToVersionRequest
|
17
16
|
attr_accessor :mod, :version
|
18
17
|
|
19
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -39,7 +38,9 @@ module Kleister
|
|
39
38
|
|
40
39
|
# List of attributes with nullable: true
|
41
40
|
def self.openapi_nullable
|
42
|
-
Set.new([
|
41
|
+
Set.new(%i[
|
42
|
+
mod
|
43
|
+
version
|
43
44
|
])
|
44
45
|
end
|
45
46
|
|
@@ -47,14 +48,13 @@ module Kleister
|
|
47
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
49
|
def initialize(attributes = {})
|
49
50
|
unless attributes.is_a?(Hash)
|
50
|
-
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::
|
51
|
+
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::AttachBuildToVersionRequest` initialize method'
|
51
52
|
end
|
52
53
|
|
53
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
55
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
55
56
|
unless self.class.attribute_map.key?(k.to_sym)
|
56
|
-
raise ArgumentError,
|
57
|
-
"`#{k}` is not a valid attribute in `Kleister::BuildVersionParams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::AttachBuildToVersionRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
58
|
end
|
59
59
|
|
60
60
|
h[k.to_sym] = v
|
@@ -73,25 +73,13 @@ module Kleister
|
|
73
73
|
# @return Array for valid properties with the reasons
|
74
74
|
def list_invalid_properties
|
75
75
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
76
|
-
|
77
|
-
if @mod.nil?
|
78
|
-
invalid_properties.push('invalid value for "mod", mod cannot be nil.')
|
79
|
-
end
|
80
|
-
|
81
|
-
if @version.nil?
|
82
|
-
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
83
|
-
end
|
84
|
-
|
85
|
-
invalid_properties
|
76
|
+
[]
|
86
77
|
end
|
87
78
|
|
88
79
|
# Check to see if the all the properties in the model are valid
|
89
80
|
# @return true if the model is valid
|
90
81
|
def valid?
|
91
82
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
92
|
-
return false if @mod.nil?
|
93
|
-
return false if @version.nil?
|
94
|
-
|
95
83
|
true
|
96
84
|
end
|
97
85
|
|
@@ -5,15 +5,14 @@
|
|
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 'date'
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Kleister
|
15
|
-
|
16
|
-
class QuiltBuildParams
|
15
|
+
class AttachMinecraftToBuildRequest
|
17
16
|
attr_accessor :pack, :build
|
18
17
|
|
19
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -39,7 +38,9 @@ module Kleister
|
|
39
38
|
|
40
39
|
# List of attributes with nullable: true
|
41
40
|
def self.openapi_nullable
|
42
|
-
Set.new([
|
41
|
+
Set.new(%i[
|
42
|
+
pack
|
43
|
+
build
|
43
44
|
])
|
44
45
|
end
|
45
46
|
|
@@ -47,14 +48,13 @@ module Kleister
|
|
47
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
49
|
def initialize(attributes = {})
|
49
50
|
unless attributes.is_a?(Hash)
|
50
|
-
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::
|
51
|
+
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::AttachMinecraftToBuildRequest` initialize method'
|
51
52
|
end
|
52
53
|
|
53
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
55
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
55
56
|
unless self.class.attribute_map.key?(k.to_sym)
|
56
|
-
raise ArgumentError,
|
57
|
-
"`#{k}` is not a valid attribute in `Kleister::QuiltBuildParams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::AttachMinecraftToBuildRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
58
58
|
end
|
59
59
|
|
60
60
|
h[k.to_sym] = v
|
@@ -73,25 +73,13 @@ module Kleister
|
|
73
73
|
# @return Array for valid properties with the reasons
|
74
74
|
def list_invalid_properties
|
75
75
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
76
|
-
|
77
|
-
if @pack.nil?
|
78
|
-
invalid_properties.push('invalid value for "pack", pack cannot be nil.')
|
79
|
-
end
|
80
|
-
|
81
|
-
if @build.nil?
|
82
|
-
invalid_properties.push('invalid value for "build", build cannot be nil.')
|
83
|
-
end
|
84
|
-
|
85
|
-
invalid_properties
|
76
|
+
[]
|
86
77
|
end
|
87
78
|
|
88
79
|
# Check to see if the all the properties in the model are valid
|
89
80
|
# @return true if the model is valid
|
90
81
|
def valid?
|
91
82
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
92
|
-
return false if @pack.nil?
|
93
|
-
return false if @build.nil?
|
94
|
-
|
95
83
|
true
|
96
84
|
end
|
97
85
|
|
@@ -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 'date'
|
@@ -14,8 +14,7 @@ require 'time'
|
|
14
14
|
module Kleister
|
15
15
|
# Model to represent build
|
16
16
|
class Build
|
17
|
-
attr_accessor :id, :pack, :minecraft_id, :minecraft, :forge_id, :forge, :neoforge_id, :neoforge, :quilt_id, :quilt, :fabric_id, :fabric, :
|
18
|
-
:public, :created_at, :updated_at
|
17
|
+
attr_accessor :id, :pack, :minecraft_id, :minecraft, :forge_id, :forge, :neoforge_id, :neoforge, :quilt_id, :quilt, :fabric_id, :fabric, :name, :java, :memory, :latest, :recommended, :public, :created_at, :updated_at
|
19
18
|
|
20
19
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
20
|
def self.attribute_map
|
@@ -32,7 +31,6 @@ module Kleister
|
|
32
31
|
quilt: :quilt,
|
33
32
|
fabric_id: :fabric_id,
|
34
33
|
fabric: :fabric,
|
35
|
-
slug: :slug,
|
36
34
|
name: :name,
|
37
35
|
java: :java,
|
38
36
|
memory: :memory,
|
@@ -64,7 +62,6 @@ module Kleister
|
|
64
62
|
quilt: :Quilt,
|
65
63
|
fabric_id: :String,
|
66
64
|
fabric: :Fabric,
|
67
|
-
slug: :String,
|
68
65
|
name: :String,
|
69
66
|
java: :String,
|
70
67
|
memory: :String,
|
@@ -84,7 +81,6 @@ module Kleister
|
|
84
81
|
neoforge_id
|
85
82
|
quilt_id
|
86
83
|
fabric_id
|
87
|
-
slug
|
88
84
|
name
|
89
85
|
java
|
90
86
|
memory
|
@@ -158,10 +154,6 @@ module Kleister
|
|
158
154
|
self.fabric = attributes[:fabric]
|
159
155
|
end
|
160
156
|
|
161
|
-
if attributes.key?(:slug)
|
162
|
-
self.slug = attributes[:slug]
|
163
|
-
end
|
164
|
-
|
165
157
|
if attributes.key?(:name)
|
166
158
|
self.name = attributes[:name]
|
167
159
|
end
|
@@ -227,7 +219,6 @@ module Kleister
|
|
227
219
|
quilt == other.quilt &&
|
228
220
|
fabric_id == other.fabric_id &&
|
229
221
|
fabric == other.fabric &&
|
230
|
-
slug == other.slug &&
|
231
222
|
name == other.name &&
|
232
223
|
java == other.java &&
|
233
224
|
memory == other.memory &&
|
@@ -247,8 +238,7 @@ module Kleister
|
|
247
238
|
# Calculates hash code according to all attributes.
|
248
239
|
# @return [Integer] Hash code
|
249
240
|
def hash
|
250
|
-
[id, pack, minecraft_id, minecraft, forge_id, forge, neoforge_id, neoforge, quilt_id, quilt, fabric_id, fabric,
|
251
|
-
updated_at].hash
|
241
|
+
[id, pack, minecraft_id, minecraft, forge_id, forge, neoforge_id, neoforge, quilt_id, quilt, fabric_id, fabric, name, java, memory, latest, recommended, public, created_at, updated_at].hash
|
252
242
|
end
|
253
243
|
|
254
244
|
# Builds the object from hash
|
@@ -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 'date'
|
@@ -61,8 +61,7 @@ module Kleister
|
|
61
61
|
# check to see if the attribute exists and convert string to symbol for hash key
|
62
62
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
63
63
|
unless self.class.attribute_map.key?(k.to_sym)
|
64
|
-
raise ArgumentError,
|
65
|
-
"`#{k}` is not a valid attribute in `Kleister::BuildVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::BuildVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
66
65
|
end
|
67
66
|
|
68
67
|
h[k.to_sym] = v
|
@@ -5,29 +5,30 @@
|
|
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 'date'
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Kleister
|
15
|
-
|
16
|
-
|
17
|
-
attr_accessor :id, :slug, :content_type, :md5, :path, :url, :upload, :created_at, :updated_at
|
15
|
+
class CreateBuildRequest
|
16
|
+
attr_accessor :minecraft_id, :forge_id, :neoforge_id, :quilt_id, :fabric_id, :name, :java, :memory, :latest, :recommended, :public
|
18
17
|
|
19
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
19
|
def self.attribute_map
|
21
20
|
{
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
21
|
+
minecraft_id: :minecraft_id,
|
22
|
+
forge_id: :forge_id,
|
23
|
+
neoforge_id: :neoforge_id,
|
24
|
+
quilt_id: :quilt_id,
|
25
|
+
fabric_id: :fabric_id,
|
26
|
+
name: :name,
|
27
|
+
java: :java,
|
28
|
+
memory: :memory,
|
29
|
+
latest: :latest,
|
30
|
+
recommended: :recommended,
|
31
|
+
public: :public
|
31
32
|
}
|
32
33
|
end
|
33
34
|
|
@@ -39,27 +40,34 @@ module Kleister
|
|
39
40
|
# Attribute type mapping.
|
40
41
|
def self.openapi_types
|
41
42
|
{
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
43
|
+
minecraft_id: :String,
|
44
|
+
forge_id: :String,
|
45
|
+
neoforge_id: :String,
|
46
|
+
quilt_id: :String,
|
47
|
+
fabric_id: :String,
|
48
|
+
name: :String,
|
49
|
+
java: :String,
|
50
|
+
memory: :String,
|
51
|
+
latest: :Boolean,
|
52
|
+
recommended: :Boolean,
|
53
|
+
public: :Boolean
|
51
54
|
}
|
52
55
|
end
|
53
56
|
|
54
57
|
# List of attributes with nullable: true
|
55
58
|
def self.openapi_nullable
|
56
59
|
Set.new(%i[
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
minecraft_id
|
61
|
+
forge_id
|
62
|
+
neoforge_id
|
63
|
+
quilt_id
|
64
|
+
fabric_id
|
65
|
+
name
|
66
|
+
java
|
67
|
+
memory
|
68
|
+
latest
|
69
|
+
recommended
|
70
|
+
public
|
63
71
|
])
|
64
72
|
end
|
65
73
|
|
@@ -67,52 +75,60 @@ module Kleister
|
|
67
75
|
# @param [Hash] attributes Model attributes in the form of hash
|
68
76
|
def initialize(attributes = {})
|
69
77
|
unless attributes.is_a?(Hash)
|
70
|
-
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::
|
78
|
+
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::CreateBuildRequest` initialize method'
|
71
79
|
end
|
72
80
|
|
73
81
|
# check to see if the attribute exists and convert string to symbol for hash key
|
74
82
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
75
83
|
unless self.class.attribute_map.key?(k.to_sym)
|
76
|
-
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::
|
84
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::CreateBuildRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
77
85
|
end
|
78
86
|
|
79
87
|
h[k.to_sym] = v
|
80
88
|
end
|
81
89
|
|
82
|
-
if attributes.key?(:
|
83
|
-
self.
|
90
|
+
if attributes.key?(:minecraft_id)
|
91
|
+
self.minecraft_id = attributes[:minecraft_id]
|
84
92
|
end
|
85
93
|
|
86
|
-
if attributes.key?(:
|
87
|
-
self.
|
94
|
+
if attributes.key?(:forge_id)
|
95
|
+
self.forge_id = attributes[:forge_id]
|
88
96
|
end
|
89
97
|
|
90
|
-
if attributes.key?(:
|
91
|
-
self.
|
98
|
+
if attributes.key?(:neoforge_id)
|
99
|
+
self.neoforge_id = attributes[:neoforge_id]
|
92
100
|
end
|
93
101
|
|
94
|
-
if attributes.key?(:
|
95
|
-
self.
|
102
|
+
if attributes.key?(:quilt_id)
|
103
|
+
self.quilt_id = attributes[:quilt_id]
|
96
104
|
end
|
97
105
|
|
98
|
-
if attributes.key?(:
|
99
|
-
self.
|
106
|
+
if attributes.key?(:fabric_id)
|
107
|
+
self.fabric_id = attributes[:fabric_id]
|
100
108
|
end
|
101
109
|
|
102
|
-
if attributes.key?(:
|
103
|
-
self.
|
110
|
+
if attributes.key?(:name)
|
111
|
+
self.name = attributes[:name]
|
104
112
|
end
|
105
113
|
|
106
|
-
if attributes.key?(:
|
107
|
-
self.
|
114
|
+
if attributes.key?(:java)
|
115
|
+
self.java = attributes[:java]
|
108
116
|
end
|
109
117
|
|
110
|
-
if attributes.key?(:
|
111
|
-
self.
|
118
|
+
if attributes.key?(:memory)
|
119
|
+
self.memory = attributes[:memory]
|
112
120
|
end
|
113
121
|
|
114
|
-
if attributes.key?(:
|
115
|
-
self.
|
122
|
+
if attributes.key?(:latest)
|
123
|
+
self.latest = attributes[:latest]
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:recommended)
|
127
|
+
self.recommended = attributes[:recommended]
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:public)
|
131
|
+
self.public = attributes[:public]
|
116
132
|
end
|
117
133
|
end
|
118
134
|
|
@@ -136,15 +152,17 @@ module Kleister
|
|
136
152
|
return true if equal?(other)
|
137
153
|
|
138
154
|
self.class == other.class &&
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
155
|
+
minecraft_id == other.minecraft_id &&
|
156
|
+
forge_id == other.forge_id &&
|
157
|
+
neoforge_id == other.neoforge_id &&
|
158
|
+
quilt_id == other.quilt_id &&
|
159
|
+
fabric_id == other.fabric_id &&
|
160
|
+
name == other.name &&
|
161
|
+
java == other.java &&
|
162
|
+
memory == other.memory &&
|
163
|
+
latest == other.latest &&
|
164
|
+
recommended == other.recommended &&
|
165
|
+
public == other.public
|
148
166
|
end
|
149
167
|
|
150
168
|
# @see the `==` method
|
@@ -156,7 +174,7 @@ module Kleister
|
|
156
174
|
# Calculates hash code according to all attributes.
|
157
175
|
# @return [Integer] Hash code
|
158
176
|
def hash
|
159
|
-
[
|
177
|
+
[minecraft_id, forge_id, neoforge_id, quilt_id, fabric_id, name, java, memory, latest, recommended, public].hash
|
160
178
|
end
|
161
179
|
|
162
180
|
# Builds the object from hash
|
@@ -5,22 +5,21 @@
|
|
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 'date'
|
12
12
|
require 'time'
|
13
13
|
|
14
14
|
module Kleister
|
15
|
-
|
16
|
-
|
17
|
-
attr_accessor :total, :mods
|
15
|
+
class CreateGroupRequest
|
16
|
+
attr_accessor :slug, :name
|
18
17
|
|
19
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
19
|
def self.attribute_map
|
21
20
|
{
|
22
|
-
|
23
|
-
|
21
|
+
slug: :slug,
|
22
|
+
name: :name
|
24
23
|
}
|
25
24
|
end
|
26
25
|
|
@@ -32,14 +31,16 @@ module Kleister
|
|
32
31
|
# Attribute type mapping.
|
33
32
|
def self.openapi_types
|
34
33
|
{
|
35
|
-
|
36
|
-
|
34
|
+
slug: :String,
|
35
|
+
name: :String
|
37
36
|
}
|
38
37
|
end
|
39
38
|
|
40
39
|
# List of attributes with nullable: true
|
41
40
|
def self.openapi_nullable
|
42
|
-
Set.new([
|
41
|
+
Set.new(%i[
|
42
|
+
slug
|
43
|
+
name
|
43
44
|
])
|
44
45
|
end
|
45
46
|
|
@@ -47,24 +48,24 @@ module Kleister
|
|
47
48
|
# @param [Hash] attributes Model attributes in the form of hash
|
48
49
|
def initialize(attributes = {})
|
49
50
|
unless attributes.is_a?(Hash)
|
50
|
-
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::
|
51
|
+
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::CreateGroupRequest` initialize method'
|
51
52
|
end
|
52
53
|
|
53
54
|
# check to see if the attribute exists and convert string to symbol for hash key
|
54
55
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
55
56
|
unless self.class.attribute_map.key?(k.to_sym)
|
56
|
-
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::
|
57
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::CreateGroupRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
58
|
end
|
58
59
|
|
59
60
|
h[k.to_sym] = v
|
60
61
|
end
|
61
62
|
|
62
|
-
if attributes.key?(:
|
63
|
-
self.
|
63
|
+
if attributes.key?(:slug)
|
64
|
+
self.slug = attributes[:slug]
|
64
65
|
end
|
65
66
|
|
66
|
-
if attributes.key?(:
|
67
|
-
self.
|
67
|
+
if attributes.key?(:name)
|
68
|
+
self.name = attributes[:name]
|
68
69
|
end
|
69
70
|
end
|
70
71
|
|
@@ -88,8 +89,8 @@ module Kleister
|
|
88
89
|
return true if equal?(other)
|
89
90
|
|
90
91
|
self.class == other.class &&
|
91
|
-
|
92
|
-
|
92
|
+
slug == other.slug &&
|
93
|
+
name == other.name
|
93
94
|
end
|
94
95
|
|
95
96
|
# @see the `==` method
|
@@ -101,7 +102,7 @@ module Kleister
|
|
101
102
|
# Calculates hash code according to all attributes.
|
102
103
|
# @return [Integer] Hash code
|
103
104
|
def hash
|
104
|
-
[
|
105
|
+
[slug, name].hash
|
105
106
|
end
|
106
107
|
|
107
108
|
# Builds the object from hash
|