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.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +3 -3
  4. data/lib/kleister/api/auth_api.rb +137 -73
  5. data/lib/kleister/api/fabric_api.rb +37 -42
  6. data/lib/kleister/api/forge_api.rb +37 -42
  7. data/lib/kleister/api/{team_api.rb → group_api.rb} +359 -379
  8. data/lib/kleister/api/minecraft_api.rb +37 -42
  9. data/lib/kleister/api/mod_api.rb +471 -232
  10. data/lib/kleister/api/neoforge_api.rb +37 -42
  11. data/lib/kleister/api/pack_api.rb +215 -240
  12. data/lib/kleister/api/profile_api.rb +16 -16
  13. data/lib/kleister/api/quilt_api.rb +37 -42
  14. data/lib/kleister/api/user_api.rb +259 -279
  15. data/lib/kleister/api_client.rb +1 -1
  16. data/lib/kleister/api_error.rb +1 -1
  17. data/lib/kleister/configuration.rb +1 -8
  18. data/lib/kleister/models/{build_version_params.rb → attach_build_to_version_request.rb} +8 -20
  19. data/lib/kleister/models/{quilt_build_params.rb → attach_minecraft_to_build_request.rb} +8 -20
  20. data/lib/kleister/models/auth_token.rb +1 -1
  21. data/lib/kleister/models/auth_verify.rb +1 -1
  22. data/lib/kleister/models/build.rb +3 -13
  23. data/lib/kleister/models/build_version.rb +2 -3
  24. data/lib/kleister/models/{pack_back.rb → create_build_request.rb} +76 -58
  25. data/lib/kleister/models/{mods.rb → create_group_request.rb} +19 -18
  26. data/lib/kleister/models/{pack_icon.rb → create_mod_request.rb} +48 -54
  27. data/lib/kleister/models/{forge_builds.rb → create_pack_request.rb} +33 -23
  28. data/lib/kleister/models/create_user_request.rb +257 -0
  29. data/lib/kleister/models/{builds.rb → create_version_request.rb} +25 -23
  30. data/lib/kleister/models/{packs.rb → delete_group_from_mod_request.rb} +20 -21
  31. data/lib/kleister/models/delete_group_from_pack_request.rb +219 -0
  32. data/lib/kleister/models/delete_pack_from_group_request.rb +219 -0
  33. data/lib/kleister/models/{users.rb → delete_pack_from_user_request.rb} +20 -21
  34. data/lib/kleister/models/fabric.rb +1 -1
  35. data/lib/kleister/models/forge.rb +1 -1
  36. data/lib/kleister/models/{team.rb → group.rb} +5 -5
  37. data/lib/kleister/models/{team_mod.rb → group_mod.rb} +21 -21
  38. data/lib/kleister/models/{team_pack.rb → group_pack.rb} +21 -21
  39. data/lib/kleister/models/{build_versions.rb → list_build_versions200_response.rb} +56 -18
  40. data/lib/kleister/models/{pack_teams.rb → list_builds200_response.rb} +59 -20
  41. data/lib/kleister/models/{fabric_builds.rb → list_fabric_builds200_response.rb} +56 -18
  42. data/lib/kleister/models/{fabrics.rb → list_fabrics200_response.rb} +52 -13
  43. data/lib/kleister/models/list_forge_builds200_response.rb +266 -0
  44. data/lib/kleister/models/{forges.rb → list_forges200_response.rb} +52 -13
  45. data/lib/kleister/models/list_group_mods200_response.rb +266 -0
  46. data/lib/kleister/models/list_group_packs200_response.rb +266 -0
  47. data/lib/kleister/models/list_group_users200_response.rb +266 -0
  48. data/lib/kleister/models/list_groups200_response.rb +259 -0
  49. data/lib/kleister/models/{minecraft_builds.rb → list_minecraft_builds200_response.rb} +56 -18
  50. data/lib/kleister/models/list_minecrafts200_response.rb +259 -0
  51. data/lib/kleister/models/list_mod_groups200_response.rb +266 -0
  52. data/lib/kleister/models/list_mod_users200_response.rb +266 -0
  53. data/lib/kleister/models/{team_mods.rb → list_mods200_response.rb} +52 -20
  54. data/lib/kleister/models/{neoforge_builds.rb → list_neoforge_builds200_response.rb} +56 -18
  55. data/lib/kleister/models/{neoforges.rb → list_neoforges200_response.rb} +52 -13
  56. data/lib/kleister/models/list_pack_groups200_response.rb +266 -0
  57. data/lib/kleister/models/{pack_users.rb → list_pack_users200_response.rb} +56 -17
  58. data/lib/kleister/models/list_packs200_response.rb +259 -0
  59. data/lib/kleister/models/{mod_teams.rb → list_providers200_response.rb} +31 -23
  60. data/lib/kleister/models/{quilt_builds.rb → list_quilt_builds200_response.rb} +56 -17
  61. data/lib/kleister/models/{quilts.rb → list_quilts200_response.rb} +52 -13
  62. data/lib/kleister/models/list_user_groups200_response.rb +266 -0
  63. data/lib/kleister/models/{user_teams.rb → list_user_mods200_response.rb} +59 -20
  64. data/lib/kleister/models/{user_packs.rb → list_user_packs200_response.rb} +56 -17
  65. data/lib/kleister/models/{team_users.rb → list_users200_response.rb} +52 -20
  66. data/lib/kleister/models/{version_builds.rb → list_version_builds200_response.rb} +56 -18
  67. data/lib/kleister/models/{versions.rb → list_versions200_response.rb} +52 -13
  68. data/lib/kleister/models/{auth_login.rb → login_auth_request.rb} +4 -4
  69. data/lib/kleister/models/minecraft.rb +1 -1
  70. data/lib/kleister/models/mod.rb +10 -3
  71. data/lib/kleister/models/{team_packs.rb → mod_avatar.rb} +32 -23
  72. data/lib/kleister/models/neoforge.rb +1 -1
  73. data/lib/kleister/models/notification.rb +2 -3
  74. data/lib/kleister/models/pack.rb +8 -22
  75. data/lib/kleister/models/{minecrafts.rb → pack_avatar.rb} +34 -18
  76. data/lib/kleister/models/{mod_users.rb → permit_group_mod_request.rb} +29 -25
  77. data/lib/kleister/models/{forge_build_params.rb → permit_group_pack_request.rb} +15 -17
  78. data/lib/kleister/models/{fabric_build_params.rb → permit_pack_group_request.rb} +24 -26
  79. data/lib/kleister/models/{user_mods.rb → permit_pack_user_request.rb} +29 -25
  80. data/lib/kleister/models/profile.rb +20 -20
  81. data/lib/kleister/models/provider.rb +1 -1
  82. data/lib/kleister/models/quilt.rb +1 -1
  83. data/lib/kleister/models/{teams.rb → redirect_auth_request.rb} +20 -21
  84. data/lib/kleister/models/update_profile_request.rb +237 -0
  85. data/lib/kleister/models/update_user_request.rb +253 -0
  86. data/lib/kleister/models/user.rb +1 -1
  87. data/lib/kleister/models/user_auth.rb +1 -1
  88. data/lib/kleister/models/{user_team.rb → user_group.rb} +23 -23
  89. data/lib/kleister/models/user_mod.rb +1 -1
  90. data/lib/kleister/models/user_pack.rb +1 -1
  91. data/lib/kleister/models/validation.rb +1 -1
  92. data/lib/kleister/models/version.rb +3 -11
  93. data/lib/kleister/models/version_file.rb +3 -18
  94. data/lib/kleister/version.rb +2 -2
  95. data/lib/kleister.rb +57 -56
  96. metadata +58 -57
  97. data/lib/kleister/models/minecraft_build_params.rb +0 -233
  98. data/lib/kleister/models/mod_team_params.rb +0 -265
  99. data/lib/kleister/models/mod_user_params.rb +0 -265
  100. data/lib/kleister/models/neoforge_build_params.rb +0 -233
  101. data/lib/kleister/models/pack_logo.rb +0 -275
  102. data/lib/kleister/models/pack_team_params.rb +0 -265
  103. data/lib/kleister/models/pack_user_params.rb +0 -265
  104. data/lib/kleister/models/providers.rb +0 -220
  105. data/lib/kleister/models/team_mod_params.rb +0 -265
  106. data/lib/kleister/models/team_pack_params.rb +0 -265
  107. data/lib/kleister/models/team_user_params.rb +0 -265
  108. data/lib/kleister/models/user_mod_params.rb +0 -265
  109. data/lib/kleister/models/user_pack_params.rb +0 -265
  110. data/lib/kleister/models/user_team_params.rb +0 -265
  111. data/lib/kleister/models/version_build_params.rb +0 -233
@@ -5,23 +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.6.0
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
- # Model to represent mod users
16
- class ModUsers
17
- attr_accessor :mod, :total, :users
15
+ class PermitGroupModRequest
16
+ attr_accessor :mod, :perm
18
17
 
19
18
  # Attribute mapping from ruby-style variable name to JSON key.
20
19
  def self.attribute_map
21
20
  {
22
21
  mod: :mod,
23
- total: :total,
24
- users: :users
22
+ perm: :perm
25
23
  }
26
24
  end
27
25
 
@@ -33,9 +31,8 @@ module Kleister
33
31
  # Attribute type mapping.
34
32
  def self.openapi_types
35
33
  {
36
- mod: :Mod,
37
- total: :Integer,
38
- users: :'Array<UserMod>'
34
+ mod: :String,
35
+ perm: :String
39
36
  }
40
37
  end
41
38
 
@@ -49,42 +46,50 @@ module Kleister
49
46
  # @param [Hash] attributes Model attributes in the form of hash
50
47
  def initialize(attributes = {})
51
48
  unless attributes.is_a?(Hash)
52
- raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::ModUsers` initialize method'
49
+ raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::PermitGroupModRequest` initialize method'
53
50
  end
54
51
 
55
52
  # check to see if the attribute exists and convert string to symbol for hash key
56
53
  attributes = attributes.each_with_object({}) do |(k, v), h|
57
54
  unless self.class.attribute_map.key?(k.to_sym)
58
- raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::ModUsers`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::PermitGroupModRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
56
  end
60
57
 
61
58
  h[k.to_sym] = v
62
59
  end
63
60
 
64
- if attributes.key?(:mod)
65
- self.mod = attributes[:mod]
66
- end
67
-
68
- if attributes.key?(:total)
69
- self.total = attributes[:total]
70
- end
61
+ self.mod = if attributes.key?(:mod)
62
+ attributes[:mod]
63
+ end
71
64
 
72
- if attributes.key?(:users) && (value = attributes[:users]).is_a?(Array)
73
- self.users = value
74
- end
65
+ self.perm = if attributes.key?(:perm)
66
+ attributes[:perm]
67
+ end
75
68
  end
76
69
 
77
70
  # Show invalid properties with the reasons. Usually used together with valid?
78
71
  # @return Array for valid properties with the reasons
79
72
  def list_invalid_properties
80
73
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
81
- []
74
+ invalid_properties = []
75
+ if @mod.nil?
76
+ invalid_properties.push('invalid value for "mod", mod cannot be nil.')
77
+ end
78
+
79
+ if @perm.nil?
80
+ invalid_properties.push('invalid value for "perm", perm cannot be nil.')
81
+ end
82
+
83
+ invalid_properties
82
84
  end
83
85
 
84
86
  # Check to see if the all the properties in the model are valid
85
87
  # @return true if the model is valid
86
88
  def valid?
87
89
  warn '[DEPRECATED] the `valid?` method is obsolete'
90
+ return false if @mod.nil?
91
+ return false if @perm.nil?
92
+
88
93
  true
89
94
  end
90
95
 
@@ -95,8 +100,7 @@ module Kleister
95
100
 
96
101
  self.class == other.class &&
97
102
  mod == other.mod &&
98
- total == other.total &&
99
- users == other.users
103
+ perm == other.perm
100
104
  end
101
105
 
102
106
  # @see the `==` method
@@ -108,7 +112,7 @@ module Kleister
108
112
  # Calculates hash code according to all attributes.
109
113
  # @return [Integer] Hash code
110
114
  def hash
111
- [mod, total, users].hash
115
+ [mod, perm].hash
112
116
  end
113
117
 
114
118
  # 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.6.0
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
- # Model to represent params for forge builds
16
- class ForgeBuildParams
17
- attr_accessor :pack, :build
15
+ class PermitGroupPackRequest
16
+ attr_accessor :pack, :perm
18
17
 
19
18
  # Attribute mapping from ruby-style variable name to JSON key.
20
19
  def self.attribute_map
21
20
  {
22
21
  pack: :pack,
23
- build: :build
22
+ perm: :perm
24
23
  }
25
24
  end
26
25
 
@@ -33,7 +32,7 @@ module Kleister
33
32
  def self.openapi_types
34
33
  {
35
34
  pack: :String,
36
- build: :String
35
+ perm: :String
37
36
  }
38
37
  end
39
38
 
@@ -47,14 +46,13 @@ module Kleister
47
46
  # @param [Hash] attributes Model attributes in the form of hash
48
47
  def initialize(attributes = {})
49
48
  unless attributes.is_a?(Hash)
50
- raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::ForgeBuildParams` initialize method'
49
+ raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::PermitGroupPackRequest` initialize method'
51
50
  end
52
51
 
53
52
  # check to see if the attribute exists and convert string to symbol for hash key
54
53
  attributes = attributes.each_with_object({}) do |(k, v), h|
55
54
  unless self.class.attribute_map.key?(k.to_sym)
56
- raise ArgumentError,
57
- "`#{k}` is not a valid attribute in `Kleister::ForgeBuildParams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::PermitGroupPackRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
56
  end
59
57
 
60
58
  h[k.to_sym] = v
@@ -64,9 +62,9 @@ module Kleister
64
62
  attributes[:pack]
65
63
  end
66
64
 
67
- self.build = if attributes.key?(:build)
68
- attributes[:build]
69
- end
65
+ self.perm = if attributes.key?(:perm)
66
+ attributes[:perm]
67
+ end
70
68
  end
71
69
 
72
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -78,8 +76,8 @@ module Kleister
78
76
  invalid_properties.push('invalid value for "pack", pack cannot be nil.')
79
77
  end
80
78
 
81
- if @build.nil?
82
- invalid_properties.push('invalid value for "build", build cannot be nil.')
79
+ if @perm.nil?
80
+ invalid_properties.push('invalid value for "perm", perm cannot be nil.')
83
81
  end
84
82
 
85
83
  invalid_properties
@@ -90,7 +88,7 @@ module Kleister
90
88
  def valid?
91
89
  warn '[DEPRECATED] the `valid?` method is obsolete'
92
90
  return false if @pack.nil?
93
- return false if @build.nil?
91
+ return false if @perm.nil?
94
92
 
95
93
  true
96
94
  end
@@ -102,7 +100,7 @@ module Kleister
102
100
 
103
101
  self.class == other.class &&
104
102
  pack == other.pack &&
105
- build == other.build
103
+ perm == other.perm
106
104
  end
107
105
 
108
106
  # @see the `==` method
@@ -114,7 +112,7 @@ module Kleister
114
112
  # Calculates hash code according to all attributes.
115
113
  # @return [Integer] Hash code
116
114
  def hash
117
- [pack, build].hash
115
+ [pack, perm].hash
118
116
  end
119
117
 
120
118
  # 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.6.0
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
- # Model to represent params for fabric builds
16
- class FabricBuildParams
17
- attr_accessor :pack, :build
15
+ class PermitPackGroupRequest
16
+ attr_accessor :group, :perm
18
17
 
19
18
  # Attribute mapping from ruby-style variable name to JSON key.
20
19
  def self.attribute_map
21
20
  {
22
- pack: :pack,
23
- build: :build
21
+ group: :group,
22
+ perm: :perm
24
23
  }
25
24
  end
26
25
 
@@ -32,8 +31,8 @@ module Kleister
32
31
  # Attribute type mapping.
33
32
  def self.openapi_types
34
33
  {
35
- pack: :String,
36
- build: :String
34
+ group: :String,
35
+ perm: :String
37
36
  }
38
37
  end
39
38
 
@@ -47,26 +46,25 @@ module Kleister
47
46
  # @param [Hash] attributes Model attributes in the form of hash
48
47
  def initialize(attributes = {})
49
48
  unless attributes.is_a?(Hash)
50
- raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::FabricBuildParams` initialize method'
49
+ raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::PermitPackGroupRequest` initialize method'
51
50
  end
52
51
 
53
52
  # check to see if the attribute exists and convert string to symbol for hash key
54
53
  attributes = attributes.each_with_object({}) do |(k, v), h|
55
54
  unless self.class.attribute_map.key?(k.to_sym)
56
- raise ArgumentError,
57
- "`#{k}` is not a valid attribute in `Kleister::FabricBuildParams`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::PermitPackGroupRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
56
  end
59
57
 
60
58
  h[k.to_sym] = v
61
59
  end
62
60
 
63
- self.pack = if attributes.key?(:pack)
64
- attributes[:pack]
65
- end
66
-
67
- self.build = if attributes.key?(:build)
68
- attributes[:build]
61
+ self.group = if attributes.key?(:group)
62
+ attributes[:group]
69
63
  end
64
+
65
+ self.perm = if attributes.key?(:perm)
66
+ attributes[:perm]
67
+ end
70
68
  end
71
69
 
72
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -74,12 +72,12 @@ module Kleister
74
72
  def list_invalid_properties
75
73
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
76
74
  invalid_properties = []
77
- if @pack.nil?
78
- invalid_properties.push('invalid value for "pack", pack cannot be nil.')
75
+ if @group.nil?
76
+ invalid_properties.push('invalid value for "group", group cannot be nil.')
79
77
  end
80
78
 
81
- if @build.nil?
82
- invalid_properties.push('invalid value for "build", build cannot be nil.')
79
+ if @perm.nil?
80
+ invalid_properties.push('invalid value for "perm", perm cannot be nil.')
83
81
  end
84
82
 
85
83
  invalid_properties
@@ -89,8 +87,8 @@ module Kleister
89
87
  # @return true if the model is valid
90
88
  def valid?
91
89
  warn '[DEPRECATED] the `valid?` method is obsolete'
92
- return false if @pack.nil?
93
- return false if @build.nil?
90
+ return false if @group.nil?
91
+ return false if @perm.nil?
94
92
 
95
93
  true
96
94
  end
@@ -101,8 +99,8 @@ module Kleister
101
99
  return true if equal?(other)
102
100
 
103
101
  self.class == other.class &&
104
- pack == other.pack &&
105
- build == other.build
102
+ group == other.group &&
103
+ perm == other.perm
106
104
  end
107
105
 
108
106
  # @see the `==` method
@@ -114,7 +112,7 @@ module Kleister
114
112
  # Calculates hash code according to all attributes.
115
113
  # @return [Integer] Hash code
116
114
  def hash
117
- [pack, build].hash
115
+ [group, perm].hash
118
116
  end
119
117
 
120
118
  # Builds the object from hash
@@ -5,23 +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.6.0
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
- # Model to represent user mods
16
- class UserMods
17
- attr_accessor :user, :total, :mods
15
+ class PermitPackUserRequest
16
+ attr_accessor :user, :perm
18
17
 
19
18
  # Attribute mapping from ruby-style variable name to JSON key.
20
19
  def self.attribute_map
21
20
  {
22
21
  user: :user,
23
- total: :total,
24
- mods: :mods
22
+ perm: :perm
25
23
  }
26
24
  end
27
25
 
@@ -33,9 +31,8 @@ module Kleister
33
31
  # Attribute type mapping.
34
32
  def self.openapi_types
35
33
  {
36
- user: :User,
37
- total: :Integer,
38
- mods: :'Array<UserMod>'
34
+ user: :String,
35
+ perm: :String
39
36
  }
40
37
  end
41
38
 
@@ -49,42 +46,50 @@ module Kleister
49
46
  # @param [Hash] attributes Model attributes in the form of hash
50
47
  def initialize(attributes = {})
51
48
  unless attributes.is_a?(Hash)
52
- raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::UserMods` initialize method'
49
+ raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::PermitPackUserRequest` initialize method'
53
50
  end
54
51
 
55
52
  # check to see if the attribute exists and convert string to symbol for hash key
56
53
  attributes = attributes.each_with_object({}) do |(k, v), h|
57
54
  unless self.class.attribute_map.key?(k.to_sym)
58
- raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::UserMods`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::PermitPackUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
56
  end
60
57
 
61
58
  h[k.to_sym] = v
62
59
  end
63
60
 
64
- if attributes.key?(:user)
65
- self.user = attributes[:user]
66
- end
67
-
68
- if attributes.key?(:total)
69
- self.total = attributes[:total]
70
- end
61
+ self.user = if attributes.key?(:user)
62
+ attributes[:user]
63
+ end
71
64
 
72
- if attributes.key?(:mods) && (value = attributes[:mods]).is_a?(Array)
73
- self.mods = value
74
- end
65
+ self.perm = if attributes.key?(:perm)
66
+ attributes[:perm]
67
+ end
75
68
  end
76
69
 
77
70
  # Show invalid properties with the reasons. Usually used together with valid?
78
71
  # @return Array for valid properties with the reasons
79
72
  def list_invalid_properties
80
73
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
81
- []
74
+ invalid_properties = []
75
+ if @user.nil?
76
+ invalid_properties.push('invalid value for "user", user cannot be nil.')
77
+ end
78
+
79
+ if @perm.nil?
80
+ invalid_properties.push('invalid value for "perm", perm cannot be nil.')
81
+ end
82
+
83
+ invalid_properties
82
84
  end
83
85
 
84
86
  # Check to see if the all the properties in the model are valid
85
87
  # @return true if the model is valid
86
88
  def valid?
87
89
  warn '[DEPRECATED] the `valid?` method is obsolete'
90
+ return false if @user.nil?
91
+ return false if @perm.nil?
92
+
88
93
  true
89
94
  end
90
95
 
@@ -95,8 +100,7 @@ module Kleister
95
100
 
96
101
  self.class == other.class &&
97
102
  user == other.user &&
98
- total == other.total &&
99
- mods == other.mods
103
+ perm == other.perm
100
104
  end
101
105
 
102
106
  # @see the `==` method
@@ -108,7 +112,7 @@ module Kleister
108
112
  # Calculates hash code according to all attributes.
109
113
  # @return [Integer] Hash code
110
114
  def hash
111
- [user, total, mods].hash
115
+ [user, perm].hash
112
116
  end
113
117
 
114
118
  # 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.6.0
8
+ # Generator version: 7.12.0
9
9
  #
10
10
 
11
11
  require 'date'
@@ -14,7 +14,7 @@ require 'time'
14
14
  module Kleister
15
15
  # Model to represent profile
16
16
  class Profile
17
- attr_accessor :id, :username, :password, :email, :fullname, :profile, :admin, :active, :created_at, :updated_at, :auths, :teams, :packs, :mods
17
+ attr_accessor :id, :username, :password, :email, :fullname, :profile, :admin, :active, :created_at, :updated_at, :auths, :groups, :mods, :packs
18
18
 
19
19
  # Attribute mapping from ruby-style variable name to JSON key.
20
20
  def self.attribute_map
@@ -30,9 +30,9 @@ module Kleister
30
30
  created_at: :created_at,
31
31
  updated_at: :updated_at,
32
32
  auths: :auths,
33
- teams: :teams,
34
- packs: :packs,
35
- mods: :mods
33
+ groups: :groups,
34
+ mods: :mods,
35
+ packs: :packs
36
36
  }
37
37
  end
38
38
 
@@ -55,9 +55,9 @@ module Kleister
55
55
  created_at: :Time,
56
56
  updated_at: :Time,
57
57
  auths: :'Array<UserAuth>',
58
- teams: :'Array<UserTeam>',
59
- packs: :'Array<UserPack>',
60
- mods: :'Array<UserMod>'
58
+ groups: :'Array<UserGroup>',
59
+ mods: :'Array<UserMod>',
60
+ packs: :'Array<UserPack>'
61
61
  }
62
62
  end
63
63
 
@@ -70,9 +70,9 @@ module Kleister
70
70
  fullname
71
71
  profile
72
72
  auths
73
- teams
74
- packs
73
+ groups
75
74
  mods
75
+ packs
76
76
  ])
77
77
  end
78
78
 
@@ -136,17 +136,17 @@ module Kleister
136
136
  self.auths = value
137
137
  end
138
138
 
139
- if attributes.key?(:teams) && (value = attributes[:teams]).is_a?(Array)
140
- self.teams = value
141
- end
142
-
143
- if attributes.key?(:packs) && (value = attributes[:packs]).is_a?(Array)
144
- self.packs = value
139
+ if attributes.key?(:groups) && (value = attributes[:groups]).is_a?(Array)
140
+ self.groups = value
145
141
  end
146
142
 
147
143
  if attributes.key?(:mods) && (value = attributes[:mods]).is_a?(Array)
148
144
  self.mods = value
149
145
  end
146
+
147
+ if attributes.key?(:packs) && (value = attributes[:packs]).is_a?(Array)
148
+ self.packs = value
149
+ end
150
150
  end
151
151
 
152
152
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -180,9 +180,9 @@ module Kleister
180
180
  created_at == other.created_at &&
181
181
  updated_at == other.updated_at &&
182
182
  auths == other.auths &&
183
- teams == other.teams &&
184
- packs == other.packs &&
185
- mods == other.mods
183
+ groups == other.groups &&
184
+ mods == other.mods &&
185
+ packs == other.packs
186
186
  end
187
187
 
188
188
  # @see the `==` method
@@ -194,7 +194,7 @@ module Kleister
194
194
  # Calculates hash code according to all attributes.
195
195
  # @return [Integer] Hash code
196
196
  def hash
197
- [id, username, password, email, fullname, profile, admin, active, created_at, updated_at, auths, teams, packs, mods].hash
197
+ [id, username, password, email, fullname, profile, admin, active, created_at, updated_at, auths, groups, mods, packs].hash
198
198
  end
199
199
 
200
200
  # 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.6.0
8
+ # Generator version: 7.12.0
9
9
  #
10
10
 
11
11
  require 'date'
@@ -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.6.0
8
+ # Generator version: 7.12.0
9
9
  #
10
10
 
11
11
  require 'date'