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
@@ -5,23 +5,24 @@
|
|
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 :user, :total, :teams
|
15
|
+
class ListUserMods200Response
|
16
|
+
attr_accessor :total, :limit, :offset, :user, :mods
|
18
17
|
|
19
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
19
|
def self.attribute_map
|
21
20
|
{
|
22
|
-
user: :user,
|
23
21
|
total: :total,
|
24
|
-
|
22
|
+
limit: :limit,
|
23
|
+
offset: :offset,
|
24
|
+
user: :user,
|
25
|
+
mods: :mods
|
25
26
|
}
|
26
27
|
end
|
27
28
|
|
@@ -33,9 +34,11 @@ module Kleister
|
|
33
34
|
# Attribute type mapping.
|
34
35
|
def self.openapi_types
|
35
36
|
{
|
36
|
-
user: :User,
|
37
37
|
total: :Integer,
|
38
|
-
|
38
|
+
limit: :Integer,
|
39
|
+
offset: :Integer,
|
40
|
+
user: :User,
|
41
|
+
mods: :'Array<UserMod>'
|
39
42
|
}
|
40
43
|
end
|
41
44
|
|
@@ -49,28 +52,40 @@ module Kleister
|
|
49
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
50
53
|
def initialize(attributes = {})
|
51
54
|
unless attributes.is_a?(Hash)
|
52
|
-
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::
|
55
|
+
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::ListUserMods200Response` initialize method'
|
53
56
|
end
|
54
57
|
|
55
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
56
59
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
57
60
|
unless self.class.attribute_map.key?(k.to_sym)
|
58
|
-
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::
|
61
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::ListUserMods200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
62
|
end
|
60
63
|
|
61
64
|
h[k.to_sym] = v
|
62
65
|
end
|
63
66
|
|
67
|
+
self.total = if attributes.key?(:total)
|
68
|
+
attributes[:total]
|
69
|
+
end
|
70
|
+
|
71
|
+
self.limit = if attributes.key?(:limit)
|
72
|
+
attributes[:limit]
|
73
|
+
end
|
74
|
+
|
75
|
+
self.offset = if attributes.key?(:offset)
|
76
|
+
attributes[:offset]
|
77
|
+
end
|
78
|
+
|
64
79
|
if attributes.key?(:user)
|
65
80
|
self.user = attributes[:user]
|
66
81
|
end
|
67
82
|
|
68
|
-
if attributes.key?(:
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
self.
|
83
|
+
if attributes.key?(:mods)
|
84
|
+
if (value = attributes[:mods]).is_a?(Array)
|
85
|
+
self.mods = value
|
86
|
+
end
|
87
|
+
else
|
88
|
+
self.mods = nil
|
74
89
|
end
|
75
90
|
end
|
76
91
|
|
@@ -78,13 +93,35 @@ module Kleister
|
|
78
93
|
# @return Array for valid properties with the reasons
|
79
94
|
def list_invalid_properties
|
80
95
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
81
|
-
[]
|
96
|
+
invalid_properties = []
|
97
|
+
if @total.nil?
|
98
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
if @limit.nil?
|
102
|
+
invalid_properties.push('invalid value for "limit", limit cannot be nil.')
|
103
|
+
end
|
104
|
+
|
105
|
+
if @offset.nil?
|
106
|
+
invalid_properties.push('invalid value for "offset", offset cannot be nil.')
|
107
|
+
end
|
108
|
+
|
109
|
+
if @mods.nil?
|
110
|
+
invalid_properties.push('invalid value for "mods", mods cannot be nil.')
|
111
|
+
end
|
112
|
+
|
113
|
+
invalid_properties
|
82
114
|
end
|
83
115
|
|
84
116
|
# Check to see if the all the properties in the model are valid
|
85
117
|
# @return true if the model is valid
|
86
118
|
def valid?
|
87
119
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
120
|
+
return false if @total.nil?
|
121
|
+
return false if @limit.nil?
|
122
|
+
return false if @offset.nil?
|
123
|
+
return false if @mods.nil?
|
124
|
+
|
88
125
|
true
|
89
126
|
end
|
90
127
|
|
@@ -94,9 +131,11 @@ module Kleister
|
|
94
131
|
return true if equal?(other)
|
95
132
|
|
96
133
|
self.class == other.class &&
|
97
|
-
user == other.user &&
|
98
134
|
total == other.total &&
|
99
|
-
|
135
|
+
limit == other.limit &&
|
136
|
+
offset == other.offset &&
|
137
|
+
user == other.user &&
|
138
|
+
mods == other.mods
|
100
139
|
end
|
101
140
|
|
102
141
|
# @see the `==` method
|
@@ -108,7 +147,7 @@ module Kleister
|
|
108
147
|
# Calculates hash code according to all attributes.
|
109
148
|
# @return [Integer] Hash code
|
110
149
|
def hash
|
111
|
-
[
|
150
|
+
[total, limit, offset, user, mods].hash
|
112
151
|
end
|
113
152
|
|
114
153
|
# Builds the object from hash
|
@@ -5,22 +5,23 @@
|
|
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 :user, :total, :packs
|
15
|
+
class ListUserPacks200Response
|
16
|
+
attr_accessor :total, :limit, :offset, :user, :packs
|
18
17
|
|
19
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
19
|
def self.attribute_map
|
21
20
|
{
|
22
|
-
user: :user,
|
23
21
|
total: :total,
|
22
|
+
limit: :limit,
|
23
|
+
offset: :offset,
|
24
|
+
user: :user,
|
24
25
|
packs: :packs
|
25
26
|
}
|
26
27
|
end
|
@@ -33,8 +34,10 @@ module Kleister
|
|
33
34
|
# Attribute type mapping.
|
34
35
|
def self.openapi_types
|
35
36
|
{
|
36
|
-
user: :User,
|
37
37
|
total: :Integer,
|
38
|
+
limit: :Integer,
|
39
|
+
offset: :Integer,
|
40
|
+
user: :User,
|
38
41
|
packs: :'Array<UserPack>'
|
39
42
|
}
|
40
43
|
end
|
@@ -49,28 +52,40 @@ module Kleister
|
|
49
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
50
53
|
def initialize(attributes = {})
|
51
54
|
unless attributes.is_a?(Hash)
|
52
|
-
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::
|
55
|
+
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::ListUserPacks200Response` initialize method'
|
53
56
|
end
|
54
57
|
|
55
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
56
59
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
57
60
|
unless self.class.attribute_map.key?(k.to_sym)
|
58
|
-
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::
|
61
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::ListUserPacks200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
62
|
end
|
60
63
|
|
61
64
|
h[k.to_sym] = v
|
62
65
|
end
|
63
66
|
|
67
|
+
self.total = if attributes.key?(:total)
|
68
|
+
attributes[:total]
|
69
|
+
end
|
70
|
+
|
71
|
+
self.limit = if attributes.key?(:limit)
|
72
|
+
attributes[:limit]
|
73
|
+
end
|
74
|
+
|
75
|
+
self.offset = if attributes.key?(:offset)
|
76
|
+
attributes[:offset]
|
77
|
+
end
|
78
|
+
|
64
79
|
if attributes.key?(:user)
|
65
80
|
self.user = attributes[:user]
|
66
81
|
end
|
67
82
|
|
68
|
-
if attributes.key?(:
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
self.packs =
|
83
|
+
if attributes.key?(:packs)
|
84
|
+
if (value = attributes[:packs]).is_a?(Array)
|
85
|
+
self.packs = value
|
86
|
+
end
|
87
|
+
else
|
88
|
+
self.packs = nil
|
74
89
|
end
|
75
90
|
end
|
76
91
|
|
@@ -78,13 +93,35 @@ module Kleister
|
|
78
93
|
# @return Array for valid properties with the reasons
|
79
94
|
def list_invalid_properties
|
80
95
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
81
|
-
[]
|
96
|
+
invalid_properties = []
|
97
|
+
if @total.nil?
|
98
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
99
|
+
end
|
100
|
+
|
101
|
+
if @limit.nil?
|
102
|
+
invalid_properties.push('invalid value for "limit", limit cannot be nil.')
|
103
|
+
end
|
104
|
+
|
105
|
+
if @offset.nil?
|
106
|
+
invalid_properties.push('invalid value for "offset", offset cannot be nil.')
|
107
|
+
end
|
108
|
+
|
109
|
+
if @packs.nil?
|
110
|
+
invalid_properties.push('invalid value for "packs", packs cannot be nil.')
|
111
|
+
end
|
112
|
+
|
113
|
+
invalid_properties
|
82
114
|
end
|
83
115
|
|
84
116
|
# Check to see if the all the properties in the model are valid
|
85
117
|
# @return true if the model is valid
|
86
118
|
def valid?
|
87
119
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
120
|
+
return false if @total.nil?
|
121
|
+
return false if @limit.nil?
|
122
|
+
return false if @offset.nil?
|
123
|
+
return false if @packs.nil?
|
124
|
+
|
88
125
|
true
|
89
126
|
end
|
90
127
|
|
@@ -94,8 +131,10 @@ module Kleister
|
|
94
131
|
return true if equal?(other)
|
95
132
|
|
96
133
|
self.class == other.class &&
|
97
|
-
user == other.user &&
|
98
134
|
total == other.total &&
|
135
|
+
limit == other.limit &&
|
136
|
+
offset == other.offset &&
|
137
|
+
user == other.user &&
|
99
138
|
packs == other.packs
|
100
139
|
end
|
101
140
|
|
@@ -108,7 +147,7 @@ module Kleister
|
|
108
147
|
# Calculates hash code according to all attributes.
|
109
148
|
# @return [Integer] Hash code
|
110
149
|
def hash
|
111
|
-
[
|
150
|
+
[total, limit, offset, user, packs].hash
|
112
151
|
end
|
113
152
|
|
114
153
|
# Builds the object from hash
|
@@ -5,22 +5,22 @@
|
|
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 :team, :total, :users
|
15
|
+
class ListUsers200Response
|
16
|
+
attr_accessor :total, :limit, :offset, :users
|
18
17
|
|
19
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
19
|
def self.attribute_map
|
21
20
|
{
|
22
|
-
team: :team,
|
23
21
|
total: :total,
|
22
|
+
limit: :limit,
|
23
|
+
offset: :offset,
|
24
24
|
users: :users
|
25
25
|
}
|
26
26
|
end
|
@@ -33,9 +33,10 @@ module Kleister
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.openapi_types
|
35
35
|
{
|
36
|
-
team: :Team,
|
37
36
|
total: :Integer,
|
38
|
-
|
37
|
+
limit: :Integer,
|
38
|
+
offset: :Integer,
|
39
|
+
users: :'Array<User>'
|
39
40
|
}
|
40
41
|
end
|
41
42
|
|
@@ -49,28 +50,36 @@ module Kleister
|
|
49
50
|
# @param [Hash] attributes Model attributes in the form of hash
|
50
51
|
def initialize(attributes = {})
|
51
52
|
unless attributes.is_a?(Hash)
|
52
|
-
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::
|
53
|
+
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::ListUsers200Response` initialize method'
|
53
54
|
end
|
54
55
|
|
55
56
|
# check to see if the attribute exists and convert string to symbol for hash key
|
56
57
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
57
58
|
unless self.class.attribute_map.key?(k.to_sym)
|
58
|
-
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::
|
59
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::ListUsers200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
60
|
end
|
60
61
|
|
61
62
|
h[k.to_sym] = v
|
62
63
|
end
|
63
64
|
|
64
|
-
if attributes.key?(:
|
65
|
-
|
66
|
-
|
65
|
+
self.total = if attributes.key?(:total)
|
66
|
+
attributes[:total]
|
67
|
+
end
|
67
68
|
|
68
|
-
if attributes.key?(:
|
69
|
-
|
70
|
-
|
69
|
+
self.limit = if attributes.key?(:limit)
|
70
|
+
attributes[:limit]
|
71
|
+
end
|
71
72
|
|
72
|
-
if attributes.key?(:
|
73
|
-
|
73
|
+
self.offset = if attributes.key?(:offset)
|
74
|
+
attributes[:offset]
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:users)
|
78
|
+
if (value = attributes[:users]).is_a?(Array)
|
79
|
+
self.users = value
|
80
|
+
end
|
81
|
+
else
|
82
|
+
self.users = nil
|
74
83
|
end
|
75
84
|
end
|
76
85
|
|
@@ -78,13 +87,35 @@ module Kleister
|
|
78
87
|
# @return Array for valid properties with the reasons
|
79
88
|
def list_invalid_properties
|
80
89
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
81
|
-
[]
|
90
|
+
invalid_properties = []
|
91
|
+
if @total.nil?
|
92
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
if @limit.nil?
|
96
|
+
invalid_properties.push('invalid value for "limit", limit cannot be nil.')
|
97
|
+
end
|
98
|
+
|
99
|
+
if @offset.nil?
|
100
|
+
invalid_properties.push('invalid value for "offset", offset cannot be nil.')
|
101
|
+
end
|
102
|
+
|
103
|
+
if @users.nil?
|
104
|
+
invalid_properties.push('invalid value for "users", users cannot be nil.')
|
105
|
+
end
|
106
|
+
|
107
|
+
invalid_properties
|
82
108
|
end
|
83
109
|
|
84
110
|
# Check to see if the all the properties in the model are valid
|
85
111
|
# @return true if the model is valid
|
86
112
|
def valid?
|
87
113
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
114
|
+
return false if @total.nil?
|
115
|
+
return false if @limit.nil?
|
116
|
+
return false if @offset.nil?
|
117
|
+
return false if @users.nil?
|
118
|
+
|
88
119
|
true
|
89
120
|
end
|
90
121
|
|
@@ -94,8 +125,9 @@ module Kleister
|
|
94
125
|
return true if equal?(other)
|
95
126
|
|
96
127
|
self.class == other.class &&
|
97
|
-
team == other.team &&
|
98
128
|
total == other.total &&
|
129
|
+
limit == other.limit &&
|
130
|
+
offset == other.offset &&
|
99
131
|
users == other.users
|
100
132
|
end
|
101
133
|
|
@@ -108,7 +140,7 @@ module Kleister
|
|
108
140
|
# Calculates hash code according to all attributes.
|
109
141
|
# @return [Integer] Hash code
|
110
142
|
def hash
|
111
|
-
[
|
143
|
+
[total, limit, offset, users].hash
|
112
144
|
end
|
113
145
|
|
114
146
|
# Builds the object from hash
|
@@ -5,23 +5,24 @@
|
|
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 :mod, :version, :total, :builds
|
15
|
+
class ListVersionBuilds200Response
|
16
|
+
attr_accessor :total, :limit, :offset, :mod, :version, :builds
|
18
17
|
|
19
18
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
19
|
def self.attribute_map
|
21
20
|
{
|
21
|
+
total: :total,
|
22
|
+
limit: :limit,
|
23
|
+
offset: :offset,
|
22
24
|
mod: :mod,
|
23
25
|
version: :version,
|
24
|
-
total: :total,
|
25
26
|
builds: :builds
|
26
27
|
}
|
27
28
|
end
|
@@ -34,9 +35,11 @@ module Kleister
|
|
34
35
|
# Attribute type mapping.
|
35
36
|
def self.openapi_types
|
36
37
|
{
|
38
|
+
total: :Integer,
|
39
|
+
limit: :Integer,
|
40
|
+
offset: :Integer,
|
37
41
|
mod: :Mod,
|
38
42
|
version: :Version,
|
39
|
-
total: :Integer,
|
40
43
|
builds: :'Array<BuildVersion>'
|
41
44
|
}
|
42
45
|
end
|
@@ -51,19 +54,30 @@ module Kleister
|
|
51
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
55
|
def initialize(attributes = {})
|
53
56
|
unless attributes.is_a?(Hash)
|
54
|
-
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::
|
57
|
+
raise ArgumentError, 'The input argument (attributes) must be a hash in `Kleister::ListVersionBuilds200Response` initialize method'
|
55
58
|
end
|
56
59
|
|
57
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
61
|
attributes = attributes.each_with_object({}) do |(k, v), h|
|
59
62
|
unless self.class.attribute_map.key?(k.to_sym)
|
60
|
-
raise ArgumentError,
|
61
|
-
"`#{k}` is not a valid attribute in `Kleister::VersionBuilds`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
+
raise ArgumentError, "`#{k}` is not a valid attribute in `Kleister::ListVersionBuilds200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
64
|
end
|
63
65
|
|
64
66
|
h[k.to_sym] = v
|
65
67
|
end
|
66
68
|
|
69
|
+
self.total = if attributes.key?(:total)
|
70
|
+
attributes[:total]
|
71
|
+
end
|
72
|
+
|
73
|
+
self.limit = if attributes.key?(:limit)
|
74
|
+
attributes[:limit]
|
75
|
+
end
|
76
|
+
|
77
|
+
self.offset = if attributes.key?(:offset)
|
78
|
+
attributes[:offset]
|
79
|
+
end
|
80
|
+
|
67
81
|
if attributes.key?(:mod)
|
68
82
|
self.mod = attributes[:mod]
|
69
83
|
end
|
@@ -72,12 +86,12 @@ module Kleister
|
|
72
86
|
self.version = attributes[:version]
|
73
87
|
end
|
74
88
|
|
75
|
-
if attributes.key?(:
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
self.builds =
|
89
|
+
if attributes.key?(:builds)
|
90
|
+
if (value = attributes[:builds]).is_a?(Array)
|
91
|
+
self.builds = value
|
92
|
+
end
|
93
|
+
else
|
94
|
+
self.builds = nil
|
81
95
|
end
|
82
96
|
end
|
83
97
|
|
@@ -85,13 +99,35 @@ module Kleister
|
|
85
99
|
# @return Array for valid properties with the reasons
|
86
100
|
def list_invalid_properties
|
87
101
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
88
|
-
[]
|
102
|
+
invalid_properties = []
|
103
|
+
if @total.nil?
|
104
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
105
|
+
end
|
106
|
+
|
107
|
+
if @limit.nil?
|
108
|
+
invalid_properties.push('invalid value for "limit", limit cannot be nil.')
|
109
|
+
end
|
110
|
+
|
111
|
+
if @offset.nil?
|
112
|
+
invalid_properties.push('invalid value for "offset", offset cannot be nil.')
|
113
|
+
end
|
114
|
+
|
115
|
+
if @builds.nil?
|
116
|
+
invalid_properties.push('invalid value for "builds", builds cannot be nil.')
|
117
|
+
end
|
118
|
+
|
119
|
+
invalid_properties
|
89
120
|
end
|
90
121
|
|
91
122
|
# Check to see if the all the properties in the model are valid
|
92
123
|
# @return true if the model is valid
|
93
124
|
def valid?
|
94
125
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
126
|
+
return false if @total.nil?
|
127
|
+
return false if @limit.nil?
|
128
|
+
return false if @offset.nil?
|
129
|
+
return false if @builds.nil?
|
130
|
+
|
95
131
|
true
|
96
132
|
end
|
97
133
|
|
@@ -101,9 +137,11 @@ module Kleister
|
|
101
137
|
return true if equal?(other)
|
102
138
|
|
103
139
|
self.class == other.class &&
|
140
|
+
total == other.total &&
|
141
|
+
limit == other.limit &&
|
142
|
+
offset == other.offset &&
|
104
143
|
mod == other.mod &&
|
105
144
|
version == other.version &&
|
106
|
-
total == other.total &&
|
107
145
|
builds == other.builds
|
108
146
|
end
|
109
147
|
|
@@ -116,7 +154,7 @@ module Kleister
|
|
116
154
|
# Calculates hash code according to all attributes.
|
117
155
|
# @return [Integer] Hash code
|
118
156
|
def hash
|
119
|
-
[mod, version,
|
157
|
+
[total, limit, offset, mod, version, builds].hash
|
120
158
|
end
|
121
159
|
|
122
160
|
# Builds the object from hash
|