pulp_rpm_client 3.0.0b4 → 3.0.0b5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +21 -6
- data/docs/Addon.md +27 -0
- data/docs/Artifact.md +35 -0
- data/docs/Checksum.md +19 -0
- data/docs/ContentAdvisoriesApi.md +12 -6
- data/docs/ContentPackagesApi.md +12 -6
- data/docs/DistributionTree.md +53 -0
- data/docs/DistributionTreesDistributionTreesApi.md +179 -0
- data/docs/DistributionsRpmApi.md +14 -8
- data/docs/Image.md +23 -0
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +4 -4
- data/docs/InlineResponse2003.md +4 -4
- data/docs/InlineResponse2004.md +4 -4
- data/docs/InlineResponse2005.md +23 -0
- data/docs/InlineResponse2006.md +23 -0
- data/docs/Package.md +10 -8
- data/docs/PublicationsRpmApi.md +14 -8
- data/docs/RemotesRpmApi.md +14 -8
- data/docs/RepoMetadataFile.md +31 -0
- data/docs/RepoMetadataFilesRepoMetadataFilesApi.md +179 -0
- data/docs/Variant.md +37 -0
- data/git_push.sh +10 -7
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +15 -9
- data/lib/pulp_rpm_client/api/content_packages_api.rb +15 -9
- data/lib/pulp_rpm_client/api/distribution_trees_distribution_trees_api.rb +212 -0
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +21 -15
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +19 -13
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +22 -16
- data/lib/pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api.rb +212 -0
- data/lib/pulp_rpm_client/api/rpm_copy_api.rb +2 -2
- data/lib/pulp_rpm_client/api/rpm_upload_api.rb +2 -2
- data/lib/pulp_rpm_client/api_client.rb +77 -62
- data/lib/pulp_rpm_client/api_error.rb +1 -1
- data/lib/pulp_rpm_client/configuration.rb +13 -21
- data/lib/pulp_rpm_client/models/addon.rb +372 -0
- data/lib/pulp_rpm_client/models/artifact.rb +376 -0
- data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_rpm_client/models/checksum.rb +255 -0
- data/lib/pulp_rpm_client/models/distribution_tree.rb +660 -0
- data/lib/pulp_rpm_client/models/image.rb +303 -0
- data/lib/pulp_rpm_client/models/inline_response200.rb +11 -11
- data/lib/pulp_rpm_client/models/inline_response2001.rb +11 -11
- data/lib/pulp_rpm_client/models/inline_response2002.rb +12 -12
- data/lib/pulp_rpm_client/models/inline_response2003.rb +12 -12
- data/lib/pulp_rpm_client/models/inline_response2004.rb +12 -12
- data/lib/pulp_rpm_client/models/inline_response2005.rb +235 -0
- data/lib/pulp_rpm_client/models/inline_response2006.rb +235 -0
- data/lib/pulp_rpm_client/models/package.rb +69 -40
- data/lib/pulp_rpm_client/models/repo_metadata_file.rb +381 -0
- data/lib/pulp_rpm_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_distribution.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_publication.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_remote.rb +1 -1
- data/lib/pulp_rpm_client/models/update_record.rb +1 -1
- data/lib/pulp_rpm_client/models/variant.rb +542 -0
- data/lib/pulp_rpm_client/version.rb +2 -2
- data/lib/pulp_rpm_client.rb +12 -1
- data/pulp_rpm_client.gemspec +3 -9
- data/spec/api/content_advisories_api_spec.rb +5 -3
- data/spec/api/content_packages_api_spec.rb +5 -3
- data/spec/api/distribution_trees_distribution_trees_api_spec.rb +74 -0
- data/spec/api/distributions_rpm_api_spec.rb +6 -4
- data/spec/api/publications_rpm_api_spec.rb +6 -4
- data/spec/api/remotes_rpm_api_spec.rb +6 -4
- data/spec/api/repo_metadata_files_repo_metadata_files_api_spec.rb +74 -0
- data/spec/api/rpm_copy_api_spec.rb +1 -1
- data/spec/api/rpm_upload_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -39
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/addon_spec.rb +71 -0
- data/spec/models/artifact_spec.rb +95 -0
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/checksum_spec.rb +47 -0
- data/spec/models/distribution_tree_spec.rb +149 -0
- data/spec/models/image_spec.rb +59 -0
- data/spec/models/inline_response2001_spec.rb +4 -4
- data/spec/models/inline_response2002_spec.rb +4 -4
- data/spec/models/inline_response2003_spec.rb +4 -4
- data/spec/models/inline_response2004_spec.rb +4 -4
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +4 -4
- data/spec/models/package_spec.rb +16 -10
- data/spec/models/repo_metadata_file_spec.rb +83 -0
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/rpm_distribution_spec.rb +1 -1
- data/spec/models/rpm_publication_spec.rb +1 -1
- data/spec/models/rpm_remote_spec.rb +1 -1
- data/spec/models/update_record_spec.rb +1 -1
- data/spec/models/variant_spec.rb +101 -0
- data/spec/spec_helper.rb +1 -1
- metadata +50 -133
- data/Gemfile.lock +0 -79
@@ -0,0 +1,303 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
class Image
|
17
|
+
# File name.
|
18
|
+
attr_accessor :name
|
19
|
+
|
20
|
+
# File path.
|
21
|
+
attr_accessor :path
|
22
|
+
|
23
|
+
# Compatible platforms.
|
24
|
+
attr_accessor :platforms
|
25
|
+
|
26
|
+
attr_accessor :artifact
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'name' => :'name',
|
32
|
+
:'path' => :'path',
|
33
|
+
:'platforms' => :'platforms',
|
34
|
+
:'artifact' => :'artifact'
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'name' => :'String',
|
42
|
+
:'path' => :'String',
|
43
|
+
:'platforms' => :'String',
|
44
|
+
:'artifact' => :'Artifact'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Initializes the object
|
49
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
50
|
+
def initialize(attributes = {})
|
51
|
+
if (!attributes.is_a?(Hash))
|
52
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::Image` initialize method"
|
53
|
+
end
|
54
|
+
|
55
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
56
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
57
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
58
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::Image`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
59
|
+
end
|
60
|
+
h[k.to_sym] = v
|
61
|
+
}
|
62
|
+
|
63
|
+
if attributes.key?(:'name')
|
64
|
+
self.name = attributes[:'name']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.key?(:'path')
|
68
|
+
self.path = attributes[:'path']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.key?(:'platforms')
|
72
|
+
self.platforms = attributes[:'platforms']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.key?(:'artifact')
|
76
|
+
self.artifact = attributes[:'artifact']
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
81
|
+
# @return Array for valid properties with the reasons
|
82
|
+
def list_invalid_properties
|
83
|
+
invalid_properties = Array.new
|
84
|
+
if @name.nil?
|
85
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
86
|
+
end
|
87
|
+
|
88
|
+
if @name.to_s.length < 1
|
89
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
90
|
+
end
|
91
|
+
|
92
|
+
if @path.nil?
|
93
|
+
invalid_properties.push('invalid value for "path", path cannot be nil.')
|
94
|
+
end
|
95
|
+
|
96
|
+
if @path.to_s.length < 1
|
97
|
+
invalid_properties.push('invalid value for "path", the character length must be great than or equal to 1.')
|
98
|
+
end
|
99
|
+
|
100
|
+
if @platforms.nil?
|
101
|
+
invalid_properties.push('invalid value for "platforms", platforms cannot be nil.')
|
102
|
+
end
|
103
|
+
|
104
|
+
if @platforms.to_s.length < 1
|
105
|
+
invalid_properties.push('invalid value for "platforms", the character length must be great than or equal to 1.')
|
106
|
+
end
|
107
|
+
|
108
|
+
if @artifact.nil?
|
109
|
+
invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
|
110
|
+
end
|
111
|
+
|
112
|
+
invalid_properties
|
113
|
+
end
|
114
|
+
|
115
|
+
# Check to see if the all the properties in the model are valid
|
116
|
+
# @return true if the model is valid
|
117
|
+
def valid?
|
118
|
+
return false if @name.nil?
|
119
|
+
return false if @name.to_s.length < 1
|
120
|
+
return false if @path.nil?
|
121
|
+
return false if @path.to_s.length < 1
|
122
|
+
return false if @platforms.nil?
|
123
|
+
return false if @platforms.to_s.length < 1
|
124
|
+
return false if @artifact.nil?
|
125
|
+
true
|
126
|
+
end
|
127
|
+
|
128
|
+
# Custom attribute writer method with validation
|
129
|
+
# @param [Object] name Value to be assigned
|
130
|
+
def name=(name)
|
131
|
+
if name.nil?
|
132
|
+
fail ArgumentError, 'name cannot be nil'
|
133
|
+
end
|
134
|
+
|
135
|
+
if name.to_s.length < 1
|
136
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
137
|
+
end
|
138
|
+
|
139
|
+
@name = name
|
140
|
+
end
|
141
|
+
|
142
|
+
# Custom attribute writer method with validation
|
143
|
+
# @param [Object] path Value to be assigned
|
144
|
+
def path=(path)
|
145
|
+
if path.nil?
|
146
|
+
fail ArgumentError, 'path cannot be nil'
|
147
|
+
end
|
148
|
+
|
149
|
+
if path.to_s.length < 1
|
150
|
+
fail ArgumentError, 'invalid value for "path", the character length must be great than or equal to 1.'
|
151
|
+
end
|
152
|
+
|
153
|
+
@path = path
|
154
|
+
end
|
155
|
+
|
156
|
+
# Custom attribute writer method with validation
|
157
|
+
# @param [Object] platforms Value to be assigned
|
158
|
+
def platforms=(platforms)
|
159
|
+
if platforms.nil?
|
160
|
+
fail ArgumentError, 'platforms cannot be nil'
|
161
|
+
end
|
162
|
+
|
163
|
+
if platforms.to_s.length < 1
|
164
|
+
fail ArgumentError, 'invalid value for "platforms", the character length must be great than or equal to 1.'
|
165
|
+
end
|
166
|
+
|
167
|
+
@platforms = platforms
|
168
|
+
end
|
169
|
+
|
170
|
+
# Checks equality by comparing each attribute.
|
171
|
+
# @param [Object] Object to be compared
|
172
|
+
def ==(o)
|
173
|
+
return true if self.equal?(o)
|
174
|
+
self.class == o.class &&
|
175
|
+
name == o.name &&
|
176
|
+
path == o.path &&
|
177
|
+
platforms == o.platforms &&
|
178
|
+
artifact == o.artifact
|
179
|
+
end
|
180
|
+
|
181
|
+
# @see the `==` method
|
182
|
+
# @param [Object] Object to be compared
|
183
|
+
def eql?(o)
|
184
|
+
self == o
|
185
|
+
end
|
186
|
+
|
187
|
+
# Calculates hash code according to all attributes.
|
188
|
+
# @return [Integer] Hash code
|
189
|
+
def hash
|
190
|
+
[name, path, platforms, artifact].hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Builds the object from hash
|
194
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
195
|
+
# @return [Object] Returns the model itself
|
196
|
+
def self.build_from_hash(attributes)
|
197
|
+
new.build_from_hash(attributes)
|
198
|
+
end
|
199
|
+
|
200
|
+
# Builds the object from hash
|
201
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
202
|
+
# @return [Object] Returns the model itself
|
203
|
+
def build_from_hash(attributes)
|
204
|
+
return nil unless attributes.is_a?(Hash)
|
205
|
+
self.class.openapi_types.each_pair do |key, type|
|
206
|
+
if type =~ /\AArray<(.*)>/i
|
207
|
+
# check to ensure the input is an array given that the attribute
|
208
|
+
# is documented as an array but the input is not
|
209
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
210
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
211
|
+
end
|
212
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
213
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
214
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
215
|
+
end
|
216
|
+
|
217
|
+
self
|
218
|
+
end
|
219
|
+
|
220
|
+
# Deserializes the data based on type
|
221
|
+
# @param string type Data type
|
222
|
+
# @param string value Value to be deserialized
|
223
|
+
# @return [Object] Deserialized data
|
224
|
+
def _deserialize(type, value)
|
225
|
+
case type.to_sym
|
226
|
+
when :DateTime
|
227
|
+
DateTime.parse(value)
|
228
|
+
when :Date
|
229
|
+
Date.parse(value)
|
230
|
+
when :String
|
231
|
+
value.to_s
|
232
|
+
when :Integer
|
233
|
+
value.to_i
|
234
|
+
when :Float
|
235
|
+
value.to_f
|
236
|
+
when :Boolean
|
237
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
238
|
+
true
|
239
|
+
else
|
240
|
+
false
|
241
|
+
end
|
242
|
+
when :Object
|
243
|
+
# generic object (usually a Hash), return directly
|
244
|
+
value
|
245
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
246
|
+
inner_type = Regexp.last_match[:inner_type]
|
247
|
+
value.map { |v| _deserialize(inner_type, v) }
|
248
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
249
|
+
k_type = Regexp.last_match[:k_type]
|
250
|
+
v_type = Regexp.last_match[:v_type]
|
251
|
+
{}.tap do |hash|
|
252
|
+
value.each do |k, v|
|
253
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
else # model
|
257
|
+
PulpRpmClient.const_get(type).build_from_hash(value)
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# Returns the string representation of the object
|
262
|
+
# @return [String] String presentation of the object
|
263
|
+
def to_s
|
264
|
+
to_hash.to_s
|
265
|
+
end
|
266
|
+
|
267
|
+
# to_body is an alias to to_hash (backward compatibility)
|
268
|
+
# @return [Hash] Returns the object in the form of hash
|
269
|
+
def to_body
|
270
|
+
to_hash
|
271
|
+
end
|
272
|
+
|
273
|
+
# Returns the object in the form of hash
|
274
|
+
# @return [Hash] Returns the object in the form of hash
|
275
|
+
def to_hash
|
276
|
+
hash = {}
|
277
|
+
self.class.attribute_map.each_pair do |attr, param|
|
278
|
+
value = self.send(attr)
|
279
|
+
next if value.nil?
|
280
|
+
hash[param] = _to_hash(value)
|
281
|
+
end
|
282
|
+
hash
|
283
|
+
end
|
284
|
+
|
285
|
+
# Outputs non-array value in the form of hash
|
286
|
+
# For object, use to_hash. Otherwise, just return the value
|
287
|
+
# @param [Object] value Any valid value
|
288
|
+
# @return [Hash] Returns the value in the form of hash
|
289
|
+
def _to_hash(value)
|
290
|
+
if value.is_a?(Array)
|
291
|
+
value.compact.map { |v| _to_hash(v) }
|
292
|
+
elsif value.is_a?(Hash)
|
293
|
+
{}.tap do |hash|
|
294
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
295
|
+
end
|
296
|
+
elsif value.respond_to? :to_hash
|
297
|
+
value.to_hash
|
298
|
+
else
|
299
|
+
value
|
300
|
+
end
|
301
|
+
end
|
302
|
+
end
|
303
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,20 +14,20 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
16
|
class InlineResponse200
|
17
|
+
attr_accessor :count
|
18
|
+
|
17
19
|
attr_accessor :_next
|
18
20
|
|
19
21
|
attr_accessor :previous
|
20
22
|
|
21
|
-
attr_accessor :count
|
22
|
-
|
23
23
|
attr_accessor :results
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
+
:'count' => :'count',
|
28
29
|
:'_next' => :'next',
|
29
30
|
:'previous' => :'previous',
|
30
|
-
:'count' => :'count',
|
31
31
|
:'results' => :'results'
|
32
32
|
}
|
33
33
|
end
|
@@ -35,9 +35,9 @@ module PulpRpmClient
|
|
35
35
|
# Attribute type mapping.
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
|
+
:'count' => :'Integer',
|
38
39
|
:'_next' => :'String',
|
39
40
|
:'previous' => :'String',
|
40
|
-
:'count' => :'Integer',
|
41
41
|
:'results' => :'Array<UpdateRecord>'
|
42
42
|
}
|
43
43
|
end
|
@@ -57,6 +57,10 @@ module PulpRpmClient
|
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
59
59
|
|
60
|
+
if attributes.key?(:'count')
|
61
|
+
self.count = attributes[:'count']
|
62
|
+
end
|
63
|
+
|
60
64
|
if attributes.key?(:'_next')
|
61
65
|
self._next = attributes[:'_next']
|
62
66
|
end
|
@@ -65,10 +69,6 @@ module PulpRpmClient
|
|
65
69
|
self.previous = attributes[:'previous']
|
66
70
|
end
|
67
71
|
|
68
|
-
if attributes.key?(:'count')
|
69
|
-
self.count = attributes[:'count']
|
70
|
-
end
|
71
|
-
|
72
72
|
if attributes.key?(:'results')
|
73
73
|
if (value = attributes[:'results']).is_a?(Array)
|
74
74
|
self.results = value
|
@@ -104,9 +104,9 @@ module PulpRpmClient
|
|
104
104
|
def ==(o)
|
105
105
|
return true if self.equal?(o)
|
106
106
|
self.class == o.class &&
|
107
|
+
count == o.count &&
|
107
108
|
_next == o._next &&
|
108
109
|
previous == o.previous &&
|
109
|
-
count == o.count &&
|
110
110
|
results == o.results
|
111
111
|
end
|
112
112
|
|
@@ -119,7 +119,7 @@ module PulpRpmClient
|
|
119
119
|
# Calculates hash code according to all attributes.
|
120
120
|
# @return [Integer] Hash code
|
121
121
|
def hash
|
122
|
-
[_next, previous,
|
122
|
+
[count, _next, previous, results].hash
|
123
123
|
end
|
124
124
|
|
125
125
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,20 +14,20 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
16
|
class InlineResponse2001
|
17
|
+
attr_accessor :count
|
18
|
+
|
17
19
|
attr_accessor :_next
|
18
20
|
|
19
21
|
attr_accessor :previous
|
20
22
|
|
21
|
-
attr_accessor :count
|
22
|
-
|
23
23
|
attr_accessor :results
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
+
:'count' => :'count',
|
28
29
|
:'_next' => :'next',
|
29
30
|
:'previous' => :'previous',
|
30
|
-
:'count' => :'count',
|
31
31
|
:'results' => :'results'
|
32
32
|
}
|
33
33
|
end
|
@@ -35,9 +35,9 @@ module PulpRpmClient
|
|
35
35
|
# Attribute type mapping.
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
|
+
:'count' => :'Integer',
|
38
39
|
:'_next' => :'String',
|
39
40
|
:'previous' => :'String',
|
40
|
-
:'count' => :'Integer',
|
41
41
|
:'results' => :'Array<Package>'
|
42
42
|
}
|
43
43
|
end
|
@@ -57,6 +57,10 @@ module PulpRpmClient
|
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
59
59
|
|
60
|
+
if attributes.key?(:'count')
|
61
|
+
self.count = attributes[:'count']
|
62
|
+
end
|
63
|
+
|
60
64
|
if attributes.key?(:'_next')
|
61
65
|
self._next = attributes[:'_next']
|
62
66
|
end
|
@@ -65,10 +69,6 @@ module PulpRpmClient
|
|
65
69
|
self.previous = attributes[:'previous']
|
66
70
|
end
|
67
71
|
|
68
|
-
if attributes.key?(:'count')
|
69
|
-
self.count = attributes[:'count']
|
70
|
-
end
|
71
|
-
|
72
72
|
if attributes.key?(:'results')
|
73
73
|
if (value = attributes[:'results']).is_a?(Array)
|
74
74
|
self.results = value
|
@@ -104,9 +104,9 @@ module PulpRpmClient
|
|
104
104
|
def ==(o)
|
105
105
|
return true if self.equal?(o)
|
106
106
|
self.class == o.class &&
|
107
|
+
count == o.count &&
|
107
108
|
_next == o._next &&
|
108
109
|
previous == o.previous &&
|
109
|
-
count == o.count &&
|
110
110
|
results == o.results
|
111
111
|
end
|
112
112
|
|
@@ -119,7 +119,7 @@ module PulpRpmClient
|
|
119
119
|
# Calculates hash code according to all attributes.
|
120
120
|
# @return [Integer] Hash code
|
121
121
|
def hash
|
122
|
-
[_next, previous,
|
122
|
+
[count, _next, previous, results].hash
|
123
123
|
end
|
124
124
|
|
125
125
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,20 +14,20 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
16
|
class InlineResponse2002
|
17
|
+
attr_accessor :count
|
18
|
+
|
17
19
|
attr_accessor :_next
|
18
20
|
|
19
21
|
attr_accessor :previous
|
20
22
|
|
21
|
-
attr_accessor :count
|
22
|
-
|
23
23
|
attr_accessor :results
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
+
:'count' => :'count',
|
28
29
|
:'_next' => :'next',
|
29
30
|
:'previous' => :'previous',
|
30
|
-
:'count' => :'count',
|
31
31
|
:'results' => :'results'
|
32
32
|
}
|
33
33
|
end
|
@@ -35,10 +35,10 @@ module PulpRpmClient
|
|
35
35
|
# Attribute type mapping.
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
|
+
:'count' => :'Integer',
|
38
39
|
:'_next' => :'String',
|
39
40
|
:'previous' => :'String',
|
40
|
-
:'
|
41
|
-
:'results' => :'Array<RpmDistribution>'
|
41
|
+
:'results' => :'Array<DistributionTree>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -57,6 +57,10 @@ module PulpRpmClient
|
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
59
59
|
|
60
|
+
if attributes.key?(:'count')
|
61
|
+
self.count = attributes[:'count']
|
62
|
+
end
|
63
|
+
|
60
64
|
if attributes.key?(:'_next')
|
61
65
|
self._next = attributes[:'_next']
|
62
66
|
end
|
@@ -65,10 +69,6 @@ module PulpRpmClient
|
|
65
69
|
self.previous = attributes[:'previous']
|
66
70
|
end
|
67
71
|
|
68
|
-
if attributes.key?(:'count')
|
69
|
-
self.count = attributes[:'count']
|
70
|
-
end
|
71
|
-
|
72
72
|
if attributes.key?(:'results')
|
73
73
|
if (value = attributes[:'results']).is_a?(Array)
|
74
74
|
self.results = value
|
@@ -104,9 +104,9 @@ module PulpRpmClient
|
|
104
104
|
def ==(o)
|
105
105
|
return true if self.equal?(o)
|
106
106
|
self.class == o.class &&
|
107
|
+
count == o.count &&
|
107
108
|
_next == o._next &&
|
108
109
|
previous == o.previous &&
|
109
|
-
count == o.count &&
|
110
110
|
results == o.results
|
111
111
|
end
|
112
112
|
|
@@ -119,7 +119,7 @@ module PulpRpmClient
|
|
119
119
|
# Calculates hash code according to all attributes.
|
120
120
|
# @return [Integer] Hash code
|
121
121
|
def hash
|
122
|
-
[_next, previous,
|
122
|
+
[count, _next, previous, results].hash
|
123
123
|
end
|
124
124
|
|
125
125
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.1.3-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,20 +14,20 @@ require 'date'
|
|
14
14
|
|
15
15
|
module PulpRpmClient
|
16
16
|
class InlineResponse2003
|
17
|
+
attr_accessor :count
|
18
|
+
|
17
19
|
attr_accessor :_next
|
18
20
|
|
19
21
|
attr_accessor :previous
|
20
22
|
|
21
|
-
attr_accessor :count
|
22
|
-
|
23
23
|
attr_accessor :results
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
+
:'count' => :'count',
|
28
29
|
:'_next' => :'next',
|
29
30
|
:'previous' => :'previous',
|
30
|
-
:'count' => :'count',
|
31
31
|
:'results' => :'results'
|
32
32
|
}
|
33
33
|
end
|
@@ -35,10 +35,10 @@ module PulpRpmClient
|
|
35
35
|
# Attribute type mapping.
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
|
+
:'count' => :'Integer',
|
38
39
|
:'_next' => :'String',
|
39
40
|
:'previous' => :'String',
|
40
|
-
:'
|
41
|
-
:'results' => :'Array<RpmPublication>'
|
41
|
+
:'results' => :'Array<RpmDistribution>'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -57,6 +57,10 @@ module PulpRpmClient
|
|
57
57
|
h[k.to_sym] = v
|
58
58
|
}
|
59
59
|
|
60
|
+
if attributes.key?(:'count')
|
61
|
+
self.count = attributes[:'count']
|
62
|
+
end
|
63
|
+
|
60
64
|
if attributes.key?(:'_next')
|
61
65
|
self._next = attributes[:'_next']
|
62
66
|
end
|
@@ -65,10 +69,6 @@ module PulpRpmClient
|
|
65
69
|
self.previous = attributes[:'previous']
|
66
70
|
end
|
67
71
|
|
68
|
-
if attributes.key?(:'count')
|
69
|
-
self.count = attributes[:'count']
|
70
|
-
end
|
71
|
-
|
72
72
|
if attributes.key?(:'results')
|
73
73
|
if (value = attributes[:'results']).is_a?(Array)
|
74
74
|
self.results = value
|
@@ -104,9 +104,9 @@ module PulpRpmClient
|
|
104
104
|
def ==(o)
|
105
105
|
return true if self.equal?(o)
|
106
106
|
self.class == o.class &&
|
107
|
+
count == o.count &&
|
107
108
|
_next == o._next &&
|
108
109
|
previous == o.previous &&
|
109
|
-
count == o.count &&
|
110
110
|
results == o.results
|
111
111
|
end
|
112
112
|
|
@@ -119,7 +119,7 @@ module PulpRpmClient
|
|
119
119
|
# Calculates hash code according to all attributes.
|
120
120
|
# @return [Integer] Hash code
|
121
121
|
def hash
|
122
|
-
[_next, previous,
|
122
|
+
[count, _next, previous, results].hash
|
123
123
|
end
|
124
124
|
|
125
125
|
# Builds the object from hash
|