pulp_rpm_client 3.17.22 → 3.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/docs/AcsRpmApi.md +11 -13
- data/docs/ContentAdvisoriesApi.md +8 -8
- data/docs/ContentDistributionTreesApi.md +8 -8
- data/docs/ContentModulemdDefaultsApi.md +13 -29
- data/docs/ContentModulemdObsoletesApi.md +192 -0
- data/docs/ContentModulemdsApi.md +13 -41
- data/docs/ContentPackagecategoriesApi.md +8 -8
- data/docs/ContentPackageenvironmentsApi.md +8 -8
- data/docs/ContentPackagegroupsApi.md +8 -8
- data/docs/ContentPackagelangpacksApi.md +8 -8
- data/docs/ContentPackagesApi.md +12 -12
- data/docs/ContentRepoMetadataFilesApi.md +8 -8
- data/docs/DistributionsRpmApi.md +8 -8
- data/docs/PaginatedrpmModulemdObsoleteResponseList.md +23 -0
- data/docs/PatchedrpmRpmRepository.md +1 -1
- data/docs/PublicationsRpmApi.md +8 -8
- data/docs/RemotesRpmApi.md +8 -8
- data/docs/RemotesUlnApi.md +8 -8
- data/docs/RepositoriesRpmApi.md +8 -8
- data/docs/RepositoriesRpmVersionsApi.md +8 -8
- data/docs/RpmModulemd.md +8 -12
- data/docs/RpmModulemdDefaults.md +4 -12
- data/docs/RpmModulemdDefaultsResponse.md +0 -14
- data/docs/RpmModulemdObsolete.md +35 -0
- data/docs/RpmModulemdObsoleteResponse.md +37 -0
- data/docs/RpmModulemdResponse.md +5 -15
- data/docs/RpmPackage.md +1 -1
- data/docs/RpmRpmPublication.md +1 -1
- data/docs/RpmRpmPublicationResponse.md +1 -1
- data/docs/RpmRpmRepository.md +1 -1
- data/docs/RpmRpmRepositoryResponse.md +1 -1
- data/lib/pulp_rpm_client/api/acs_rpm_api.rb +16 -24
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +23 -69
- data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +238 -0
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +23 -107
- data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +12 -12
- data/lib/pulp_rpm_client/api/content_packages_api.rb +20 -24
- data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +12 -12
- data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +12 -12
- data/lib/pulp_rpm_client/api/publications_rpm_api.rb +12 -12
- data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +12 -12
- data/lib/pulp_rpm_client/api/remotes_uln_api.rb +12 -12
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +12 -12
- data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +12 -12
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_obsolete_response_list.rb +237 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +83 -78
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +38 -78
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +1 -71
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +464 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete_response.rb +332 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +30 -74
- data/lib/pulp_rpm_client/models/rpm_package.rb +3 -12
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +4 -0
- data/spec/api/acs_rpm_api_spec.rb +4 -5
- data/spec/api/content_advisories_api_spec.rb +4 -4
- data/spec/api/content_distribution_trees_api_spec.rb +4 -4
- data/spec/api/content_modulemd_defaults_api_spec.rb +5 -12
- data/spec/api/content_modulemd_obsoletes_api_spec.rb +80 -0
- data/spec/api/content_modulemds_api_spec.rb +5 -18
- data/spec/api/content_packagecategories_api_spec.rb +4 -4
- data/spec/api/content_packageenvironments_api_spec.rb +4 -4
- data/spec/api/content_packagegroups_api_spec.rb +4 -4
- data/spec/api/content_packagelangpacks_api_spec.rb +4 -4
- data/spec/api/content_packages_api_spec.rb +5 -5
- data/spec/api/content_repo_metadata_files_api_spec.rb +4 -4
- data/spec/api/distributions_rpm_api_spec.rb +4 -4
- data/spec/api/publications_rpm_api_spec.rb +4 -4
- data/spec/api/remotes_rpm_api_spec.rb +4 -4
- data/spec/api/remotes_uln_api_spec.rb +4 -4
- data/spec/api/repositories_rpm_api_spec.rb +4 -4
- data/spec/api/repositories_rpm_versions_api_spec.rb +4 -4
- data/spec/models/paginatedrpm_modulemd_obsolete_response_list_spec.rb +59 -0
- data/spec/models/rpm_modulemd_defaults_response_spec.rb +0 -42
- data/spec/models/rpm_modulemd_defaults_spec.rb +4 -28
- data/spec/models/rpm_modulemd_obsolete_response_spec.rb +101 -0
- data/spec/models/rpm_modulemd_obsolete_spec.rb +95 -0
- data/spec/models/rpm_modulemd_response_spec.rb +11 -41
- data/spec/models/rpm_modulemd_spec.rb +12 -24
- metadata +85 -69
@@ -0,0 +1,332 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
# ModulemdObsolete serializer.
|
17
|
+
class RpmModulemdObsoleteResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
20
|
+
# Timestamp of creation.
|
21
|
+
attr_accessor :pulp_created
|
22
|
+
|
23
|
+
# Obsolete modified time.
|
24
|
+
attr_accessor :modified
|
25
|
+
|
26
|
+
# Modulemd name.
|
27
|
+
attr_accessor :module_name
|
28
|
+
|
29
|
+
# Modulemd's stream.
|
30
|
+
attr_accessor :module_stream
|
31
|
+
|
32
|
+
# Obsolete description.
|
33
|
+
attr_accessor :message
|
34
|
+
|
35
|
+
# Reset previous obsoletes.
|
36
|
+
attr_accessor :override_previous
|
37
|
+
|
38
|
+
# Modulemd's context.
|
39
|
+
attr_accessor :module_context
|
40
|
+
|
41
|
+
# End of Life date.
|
42
|
+
attr_accessor :eol_date
|
43
|
+
|
44
|
+
# Obsolete by module name.
|
45
|
+
attr_accessor :obsoleted_by_module_name
|
46
|
+
|
47
|
+
# Obsolete by module stream.
|
48
|
+
attr_accessor :obsoleted_by_module_stream
|
49
|
+
|
50
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
51
|
+
def self.attribute_map
|
52
|
+
{
|
53
|
+
:'pulp_href' => :'pulp_href',
|
54
|
+
:'pulp_created' => :'pulp_created',
|
55
|
+
:'modified' => :'modified',
|
56
|
+
:'module_name' => :'module_name',
|
57
|
+
:'module_stream' => :'module_stream',
|
58
|
+
:'message' => :'message',
|
59
|
+
:'override_previous' => :'override_previous',
|
60
|
+
:'module_context' => :'module_context',
|
61
|
+
:'eol_date' => :'eol_date',
|
62
|
+
:'obsoleted_by_module_name' => :'obsoleted_by_module_name',
|
63
|
+
:'obsoleted_by_module_stream' => :'obsoleted_by_module_stream'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# Attribute type mapping.
|
68
|
+
def self.openapi_types
|
69
|
+
{
|
70
|
+
:'pulp_href' => :'String',
|
71
|
+
:'pulp_created' => :'DateTime',
|
72
|
+
:'modified' => :'DateTime',
|
73
|
+
:'module_name' => :'String',
|
74
|
+
:'module_stream' => :'String',
|
75
|
+
:'message' => :'String',
|
76
|
+
:'override_previous' => :'String',
|
77
|
+
:'module_context' => :'String',
|
78
|
+
:'eol_date' => :'DateTime',
|
79
|
+
:'obsoleted_by_module_name' => :'String',
|
80
|
+
:'obsoleted_by_module_stream' => :'String'
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
84
|
+
# List of attributes with nullable: true
|
85
|
+
def self.openapi_nullable
|
86
|
+
Set.new([
|
87
|
+
:'override_previous',
|
88
|
+
:'module_context',
|
89
|
+
:'eol_date',
|
90
|
+
:'obsoleted_by_module_name',
|
91
|
+
:'obsoleted_by_module_stream'
|
92
|
+
])
|
93
|
+
end
|
94
|
+
|
95
|
+
# Initializes the object
|
96
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
97
|
+
def initialize(attributes = {})
|
98
|
+
if (!attributes.is_a?(Hash))
|
99
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmModulemdObsoleteResponse` initialize method"
|
100
|
+
end
|
101
|
+
|
102
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
103
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
104
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
105
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmModulemdObsoleteResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
106
|
+
end
|
107
|
+
h[k.to_sym] = v
|
108
|
+
}
|
109
|
+
|
110
|
+
if attributes.key?(:'pulp_href')
|
111
|
+
self.pulp_href = attributes[:'pulp_href']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.key?(:'pulp_created')
|
115
|
+
self.pulp_created = attributes[:'pulp_created']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.key?(:'modified')
|
119
|
+
self.modified = attributes[:'modified']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes.key?(:'module_name')
|
123
|
+
self.module_name = attributes[:'module_name']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes.key?(:'module_stream')
|
127
|
+
self.module_stream = attributes[:'module_stream']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:'message')
|
131
|
+
self.message = attributes[:'message']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.key?(:'override_previous')
|
135
|
+
self.override_previous = attributes[:'override_previous']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.key?(:'module_context')
|
139
|
+
self.module_context = attributes[:'module_context']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'eol_date')
|
143
|
+
self.eol_date = attributes[:'eol_date']
|
144
|
+
end
|
145
|
+
|
146
|
+
if attributes.key?(:'obsoleted_by_module_name')
|
147
|
+
self.obsoleted_by_module_name = attributes[:'obsoleted_by_module_name']
|
148
|
+
end
|
149
|
+
|
150
|
+
if attributes.key?(:'obsoleted_by_module_stream')
|
151
|
+
self.obsoleted_by_module_stream = attributes[:'obsoleted_by_module_stream']
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
156
|
+
# @return Array for valid properties with the reasons
|
157
|
+
def list_invalid_properties
|
158
|
+
invalid_properties = Array.new
|
159
|
+
if @modified.nil?
|
160
|
+
invalid_properties.push('invalid value for "modified", modified cannot be nil.')
|
161
|
+
end
|
162
|
+
|
163
|
+
if @module_name.nil?
|
164
|
+
invalid_properties.push('invalid value for "module_name", module_name cannot be nil.')
|
165
|
+
end
|
166
|
+
|
167
|
+
if @module_stream.nil?
|
168
|
+
invalid_properties.push('invalid value for "module_stream", module_stream cannot be nil.')
|
169
|
+
end
|
170
|
+
|
171
|
+
if @message.nil?
|
172
|
+
invalid_properties.push('invalid value for "message", message cannot be nil.')
|
173
|
+
end
|
174
|
+
|
175
|
+
invalid_properties
|
176
|
+
end
|
177
|
+
|
178
|
+
# Check to see if the all the properties in the model are valid
|
179
|
+
# @return true if the model is valid
|
180
|
+
def valid?
|
181
|
+
return false if @modified.nil?
|
182
|
+
return false if @module_name.nil?
|
183
|
+
return false if @module_stream.nil?
|
184
|
+
return false if @message.nil?
|
185
|
+
true
|
186
|
+
end
|
187
|
+
|
188
|
+
# Checks equality by comparing each attribute.
|
189
|
+
# @param [Object] Object to be compared
|
190
|
+
def ==(o)
|
191
|
+
return true if self.equal?(o)
|
192
|
+
self.class == o.class &&
|
193
|
+
pulp_href == o.pulp_href &&
|
194
|
+
pulp_created == o.pulp_created &&
|
195
|
+
modified == o.modified &&
|
196
|
+
module_name == o.module_name &&
|
197
|
+
module_stream == o.module_stream &&
|
198
|
+
message == o.message &&
|
199
|
+
override_previous == o.override_previous &&
|
200
|
+
module_context == o.module_context &&
|
201
|
+
eol_date == o.eol_date &&
|
202
|
+
obsoleted_by_module_name == o.obsoleted_by_module_name &&
|
203
|
+
obsoleted_by_module_stream == o.obsoleted_by_module_stream
|
204
|
+
end
|
205
|
+
|
206
|
+
# @see the `==` method
|
207
|
+
# @param [Object] Object to be compared
|
208
|
+
def eql?(o)
|
209
|
+
self == o
|
210
|
+
end
|
211
|
+
|
212
|
+
# Calculates hash code according to all attributes.
|
213
|
+
# @return [Integer] Hash code
|
214
|
+
def hash
|
215
|
+
[pulp_href, pulp_created, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream].hash
|
216
|
+
end
|
217
|
+
|
218
|
+
# Builds the object from hash
|
219
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
220
|
+
# @return [Object] Returns the model itself
|
221
|
+
def self.build_from_hash(attributes)
|
222
|
+
new.build_from_hash(attributes)
|
223
|
+
end
|
224
|
+
|
225
|
+
# Builds the object from hash
|
226
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
227
|
+
# @return [Object] Returns the model itself
|
228
|
+
def build_from_hash(attributes)
|
229
|
+
return nil unless attributes.is_a?(Hash)
|
230
|
+
self.class.openapi_types.each_pair do |key, type|
|
231
|
+
if type =~ /\AArray<(.*)>/i
|
232
|
+
# check to ensure the input is an array given that the attribute
|
233
|
+
# is documented as an array but the input is not
|
234
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
235
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
236
|
+
end
|
237
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
238
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
239
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
240
|
+
end
|
241
|
+
|
242
|
+
self
|
243
|
+
end
|
244
|
+
|
245
|
+
# Deserializes the data based on type
|
246
|
+
# @param string type Data type
|
247
|
+
# @param string value Value to be deserialized
|
248
|
+
# @return [Object] Deserialized data
|
249
|
+
def _deserialize(type, value)
|
250
|
+
case type.to_sym
|
251
|
+
when :DateTime
|
252
|
+
DateTime.parse(value)
|
253
|
+
when :Date
|
254
|
+
Date.parse(value)
|
255
|
+
when :String
|
256
|
+
value.to_s
|
257
|
+
when :Integer
|
258
|
+
value.to_i
|
259
|
+
when :Float
|
260
|
+
value.to_f
|
261
|
+
when :Boolean
|
262
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
263
|
+
true
|
264
|
+
else
|
265
|
+
false
|
266
|
+
end
|
267
|
+
when :Object
|
268
|
+
# generic object (usually a Hash), return directly
|
269
|
+
value
|
270
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
271
|
+
inner_type = Regexp.last_match[:inner_type]
|
272
|
+
value.map { |v| _deserialize(inner_type, v) }
|
273
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
274
|
+
k_type = Regexp.last_match[:k_type]
|
275
|
+
v_type = Regexp.last_match[:v_type]
|
276
|
+
{}.tap do |hash|
|
277
|
+
value.each do |k, v|
|
278
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
279
|
+
end
|
280
|
+
end
|
281
|
+
else # model
|
282
|
+
PulpRpmClient.const_get(type).build_from_hash(value)
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
# Returns the string representation of the object
|
287
|
+
# @return [String] String presentation of the object
|
288
|
+
def to_s
|
289
|
+
to_hash.to_s
|
290
|
+
end
|
291
|
+
|
292
|
+
# to_body is an alias to to_hash (backward compatibility)
|
293
|
+
# @return [Hash] Returns the object in the form of hash
|
294
|
+
def to_body
|
295
|
+
to_hash
|
296
|
+
end
|
297
|
+
|
298
|
+
# Returns the object in the form of hash
|
299
|
+
# @return [Hash] Returns the object in the form of hash
|
300
|
+
def to_hash
|
301
|
+
hash = {}
|
302
|
+
self.class.attribute_map.each_pair do |attr, param|
|
303
|
+
value = self.send(attr)
|
304
|
+
if value.nil?
|
305
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
306
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
307
|
+
end
|
308
|
+
|
309
|
+
hash[param] = _to_hash(value)
|
310
|
+
end
|
311
|
+
hash
|
312
|
+
end
|
313
|
+
|
314
|
+
# Outputs non-array value in the form of hash
|
315
|
+
# For object, use to_hash. Otherwise, just return the value
|
316
|
+
# @param [Object] value Any valid value
|
317
|
+
# @return [Hash] Returns the value in the form of hash
|
318
|
+
def _to_hash(value)
|
319
|
+
if value.is_a?(Array)
|
320
|
+
value.compact.map { |v| _to_hash(v) }
|
321
|
+
elsif value.is_a?(Hash)
|
322
|
+
{}.tap do |hash|
|
323
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
324
|
+
end
|
325
|
+
elsif value.respond_to? :to_hash
|
326
|
+
value.to_hash
|
327
|
+
else
|
328
|
+
value
|
329
|
+
end
|
330
|
+
end
|
331
|
+
end
|
332
|
+
end
|
@@ -20,27 +20,6 @@ module PulpRpmClient
|
|
20
20
|
# Timestamp of creation.
|
21
21
|
attr_accessor :pulp_created
|
22
22
|
|
23
|
-
# The MD5 checksum if available.
|
24
|
-
attr_accessor :md5
|
25
|
-
|
26
|
-
# The SHA-1 checksum if available.
|
27
|
-
attr_accessor :sha1
|
28
|
-
|
29
|
-
# The SHA-224 checksum if available.
|
30
|
-
attr_accessor :sha224
|
31
|
-
|
32
|
-
# The SHA-256 checksum if available.
|
33
|
-
attr_accessor :sha256
|
34
|
-
|
35
|
-
# The SHA-384 checksum if available.
|
36
|
-
attr_accessor :sha384
|
37
|
-
|
38
|
-
# The SHA-512 checksum if available.
|
39
|
-
attr_accessor :sha512
|
40
|
-
|
41
|
-
# Artifact file representing the physical content
|
42
|
-
attr_accessor :artifact
|
43
|
-
|
44
23
|
# Modulemd name.
|
45
24
|
attr_accessor :name
|
46
25
|
|
@@ -68,18 +47,17 @@ module PulpRpmClient
|
|
68
47
|
# Modulemd artifacts' packages.
|
69
48
|
attr_accessor :packages
|
70
49
|
|
50
|
+
# Modulemd profiles.
|
51
|
+
attr_accessor :profiles
|
52
|
+
|
53
|
+
# Description of module.
|
54
|
+
attr_accessor :description
|
55
|
+
|
71
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
72
57
|
def self.attribute_map
|
73
58
|
{
|
74
59
|
:'pulp_href' => :'pulp_href',
|
75
60
|
:'pulp_created' => :'pulp_created',
|
76
|
-
:'md5' => :'md5',
|
77
|
-
:'sha1' => :'sha1',
|
78
|
-
:'sha224' => :'sha224',
|
79
|
-
:'sha256' => :'sha256',
|
80
|
-
:'sha384' => :'sha384',
|
81
|
-
:'sha512' => :'sha512',
|
82
|
-
:'artifact' => :'artifact',
|
83
61
|
:'name' => :'name',
|
84
62
|
:'stream' => :'stream',
|
85
63
|
:'version' => :'version',
|
@@ -88,7 +66,9 @@ module PulpRpmClient
|
|
88
66
|
:'arch' => :'arch',
|
89
67
|
:'artifacts' => :'artifacts',
|
90
68
|
:'dependencies' => :'dependencies',
|
91
|
-
:'packages' => :'packages'
|
69
|
+
:'packages' => :'packages',
|
70
|
+
:'profiles' => :'profiles',
|
71
|
+
:'description' => :'description'
|
92
72
|
}
|
93
73
|
end
|
94
74
|
|
@@ -97,13 +77,6 @@ module PulpRpmClient
|
|
97
77
|
{
|
98
78
|
:'pulp_href' => :'String',
|
99
79
|
:'pulp_created' => :'DateTime',
|
100
|
-
:'md5' => :'String',
|
101
|
-
:'sha1' => :'String',
|
102
|
-
:'sha224' => :'String',
|
103
|
-
:'sha256' => :'String',
|
104
|
-
:'sha384' => :'String',
|
105
|
-
:'sha512' => :'String',
|
106
|
-
:'artifact' => :'String',
|
107
80
|
:'name' => :'String',
|
108
81
|
:'stream' => :'String',
|
109
82
|
:'version' => :'String',
|
@@ -112,7 +85,9 @@ module PulpRpmClient
|
|
112
85
|
:'arch' => :'String',
|
113
86
|
:'artifacts' => :'Object',
|
114
87
|
:'dependencies' => :'Object',
|
115
|
-
:'packages' => :'Array<String>'
|
88
|
+
:'packages' => :'Array<String>',
|
89
|
+
:'profiles' => :'Object',
|
90
|
+
:'description' => :'String'
|
116
91
|
}
|
117
92
|
end
|
118
93
|
|
@@ -121,6 +96,7 @@ module PulpRpmClient
|
|
121
96
|
Set.new([
|
122
97
|
:'artifacts',
|
123
98
|
:'dependencies',
|
99
|
+
:'profiles',
|
124
100
|
])
|
125
101
|
end
|
126
102
|
|
@@ -147,34 +123,6 @@ module PulpRpmClient
|
|
147
123
|
self.pulp_created = attributes[:'pulp_created']
|
148
124
|
end
|
149
125
|
|
150
|
-
if attributes.key?(:'md5')
|
151
|
-
self.md5 = attributes[:'md5']
|
152
|
-
end
|
153
|
-
|
154
|
-
if attributes.key?(:'sha1')
|
155
|
-
self.sha1 = attributes[:'sha1']
|
156
|
-
end
|
157
|
-
|
158
|
-
if attributes.key?(:'sha224')
|
159
|
-
self.sha224 = attributes[:'sha224']
|
160
|
-
end
|
161
|
-
|
162
|
-
if attributes.key?(:'sha256')
|
163
|
-
self.sha256 = attributes[:'sha256']
|
164
|
-
end
|
165
|
-
|
166
|
-
if attributes.key?(:'sha384')
|
167
|
-
self.sha384 = attributes[:'sha384']
|
168
|
-
end
|
169
|
-
|
170
|
-
if attributes.key?(:'sha512')
|
171
|
-
self.sha512 = attributes[:'sha512']
|
172
|
-
end
|
173
|
-
|
174
|
-
if attributes.key?(:'artifact')
|
175
|
-
self.artifact = attributes[:'artifact']
|
176
|
-
end
|
177
|
-
|
178
126
|
if attributes.key?(:'name')
|
179
127
|
self.name = attributes[:'name']
|
180
128
|
end
|
@@ -212,6 +160,14 @@ module PulpRpmClient
|
|
212
160
|
self.packages = value
|
213
161
|
end
|
214
162
|
end
|
163
|
+
|
164
|
+
if attributes.key?(:'profiles')
|
165
|
+
self.profiles = attributes[:'profiles']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'description')
|
169
|
+
self.description = attributes[:'description']
|
170
|
+
end
|
215
171
|
end
|
216
172
|
|
217
173
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -238,6 +194,10 @@ module PulpRpmClient
|
|
238
194
|
invalid_properties.push('invalid value for "arch", arch cannot be nil.')
|
239
195
|
end
|
240
196
|
|
197
|
+
if @description.nil?
|
198
|
+
invalid_properties.push('invalid value for "description", description cannot be nil.')
|
199
|
+
end
|
200
|
+
|
241
201
|
invalid_properties
|
242
202
|
end
|
243
203
|
|
@@ -249,6 +209,7 @@ module PulpRpmClient
|
|
249
209
|
return false if @version.nil?
|
250
210
|
return false if @context.nil?
|
251
211
|
return false if @arch.nil?
|
212
|
+
return false if @description.nil?
|
252
213
|
true
|
253
214
|
end
|
254
215
|
|
@@ -259,13 +220,6 @@ module PulpRpmClient
|
|
259
220
|
self.class == o.class &&
|
260
221
|
pulp_href == o.pulp_href &&
|
261
222
|
pulp_created == o.pulp_created &&
|
262
|
-
md5 == o.md5 &&
|
263
|
-
sha1 == o.sha1 &&
|
264
|
-
sha224 == o.sha224 &&
|
265
|
-
sha256 == o.sha256 &&
|
266
|
-
sha384 == o.sha384 &&
|
267
|
-
sha512 == o.sha512 &&
|
268
|
-
artifact == o.artifact &&
|
269
223
|
name == o.name &&
|
270
224
|
stream == o.stream &&
|
271
225
|
version == o.version &&
|
@@ -274,7 +228,9 @@ module PulpRpmClient
|
|
274
228
|
arch == o.arch &&
|
275
229
|
artifacts == o.artifacts &&
|
276
230
|
dependencies == o.dependencies &&
|
277
|
-
packages == o.packages
|
231
|
+
packages == o.packages &&
|
232
|
+
profiles == o.profiles &&
|
233
|
+
description == o.description
|
278
234
|
end
|
279
235
|
|
280
236
|
# @see the `==` method
|
@@ -286,7 +242,7 @@ module PulpRpmClient
|
|
286
242
|
# Calculates hash code according to all attributes.
|
287
243
|
# @return [Integer] Hash code
|
288
244
|
def hash
|
289
|
-
[pulp_href, pulp_created,
|
245
|
+
[pulp_href, pulp_created, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, profiles, description].hash
|
290
246
|
end
|
291
247
|
|
292
248
|
# Builds the object from hash
|
@@ -98,11 +98,7 @@ module PulpRpmClient
|
|
98
98
|
# @return Array for valid properties with the reasons
|
99
99
|
def list_invalid_properties
|
100
100
|
invalid_properties = Array.new
|
101
|
-
if
|
102
|
-
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
103
|
-
end
|
104
|
-
|
105
|
-
if @relative_path.to_s.length < 1
|
101
|
+
if !@relative_path.nil? && @relative_path.to_s.length < 1
|
106
102
|
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
107
103
|
end
|
108
104
|
|
@@ -112,19 +108,14 @@ module PulpRpmClient
|
|
112
108
|
# Check to see if the all the properties in the model are valid
|
113
109
|
# @return true if the model is valid
|
114
110
|
def valid?
|
115
|
-
return false if
|
116
|
-
return false if @relative_path.to_s.length < 1
|
111
|
+
return false if !@relative_path.nil? && @relative_path.to_s.length < 1
|
117
112
|
true
|
118
113
|
end
|
119
114
|
|
120
115
|
# Custom attribute writer method with validation
|
121
116
|
# @param [Object] relative_path Value to be assigned
|
122
117
|
def relative_path=(relative_path)
|
123
|
-
if relative_path.nil?
|
124
|
-
fail ArgumentError, 'relative_path cannot be nil'
|
125
|
-
end
|
126
|
-
|
127
|
-
if relative_path.to_s.length < 1
|
118
|
+
if !relative_path.nil? && relative_path.to_s.length < 1
|
128
119
|
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
129
120
|
end
|
130
121
|
|
@@ -32,7 +32,7 @@ module PulpRpmClient
|
|
32
32
|
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
33
33
|
attr_accessor :repo_gpgcheck
|
34
34
|
|
35
|
-
# An option specifying whether Pulp should generate SQLite metadata.
|
35
|
+
# DEPRECATED: An option specifying whether Pulp should generate SQLite metadata.
|
36
36
|
attr_accessor :sqlite_metadata
|
37
37
|
|
38
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -37,7 +37,7 @@ module PulpRpmClient
|
|
37
37
|
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
38
38
|
attr_accessor :repo_gpgcheck
|
39
39
|
|
40
|
-
# An option specifying whether Pulp should generate SQLite metadata.
|
40
|
+
# DEPRECATED: An option specifying whether Pulp should generate SQLite metadata.
|
41
41
|
attr_accessor :sqlite_metadata
|
42
42
|
|
43
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -50,7 +50,7 @@ module PulpRpmClient
|
|
50
50
|
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
51
51
|
attr_accessor :repo_gpgcheck
|
52
52
|
|
53
|
-
# An option specifying whether Pulp should generate SQLite metadata.
|
53
|
+
# DEPRECATED: An option specifying whether Pulp should generate SQLite metadata.
|
54
54
|
attr_accessor :sqlite_metadata
|
55
55
|
|
56
56
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -59,7 +59,7 @@ module PulpRpmClient
|
|
59
59
|
# An option specifying whether a client should perform a GPG signature check on the repodata.
|
60
60
|
attr_accessor :repo_gpgcheck
|
61
61
|
|
62
|
-
# An option specifying whether Pulp should generate SQLite metadata.
|
62
|
+
# DEPRECATED: An option specifying whether Pulp should generate SQLite metadata.
|
63
63
|
attr_accessor :sqlite_metadata
|
64
64
|
|
65
65
|
# Attribute mapping from ruby-style variable name to JSON key.
|
data/lib/pulp_rpm_client.rb
CHANGED
@@ -30,6 +30,7 @@ require 'pulp_rpm_client/models/package_checksum_type_enum'
|
|
30
30
|
require 'pulp_rpm_client/models/paginated_repository_version_response_list'
|
31
31
|
require 'pulp_rpm_client/models/paginatedrpm_distribution_tree_response_list'
|
32
32
|
require 'pulp_rpm_client/models/paginatedrpm_modulemd_defaults_response_list'
|
33
|
+
require 'pulp_rpm_client/models/paginatedrpm_modulemd_obsolete_response_list'
|
33
34
|
require 'pulp_rpm_client/models/paginatedrpm_modulemd_response_list'
|
34
35
|
require 'pulp_rpm_client/models/paginatedrpm_package_category_response_list'
|
35
36
|
require 'pulp_rpm_client/models/paginatedrpm_package_environment_response_list'
|
@@ -57,6 +58,8 @@ require 'pulp_rpm_client/models/rpm_distribution_tree_response'
|
|
57
58
|
require 'pulp_rpm_client/models/rpm_modulemd'
|
58
59
|
require 'pulp_rpm_client/models/rpm_modulemd_defaults'
|
59
60
|
require 'pulp_rpm_client/models/rpm_modulemd_defaults_response'
|
61
|
+
require 'pulp_rpm_client/models/rpm_modulemd_obsolete'
|
62
|
+
require 'pulp_rpm_client/models/rpm_modulemd_obsolete_response'
|
60
63
|
require 'pulp_rpm_client/models/rpm_modulemd_response'
|
61
64
|
require 'pulp_rpm_client/models/rpm_package'
|
62
65
|
require 'pulp_rpm_client/models/rpm_package_category_response'
|
@@ -92,6 +95,7 @@ require 'pulp_rpm_client/api/acs_rpm_api'
|
|
92
95
|
require 'pulp_rpm_client/api/content_advisories_api'
|
93
96
|
require 'pulp_rpm_client/api/content_distribution_trees_api'
|
94
97
|
require 'pulp_rpm_client/api/content_modulemd_defaults_api'
|
98
|
+
require 'pulp_rpm_client/api/content_modulemd_obsoletes_api'
|
95
99
|
require 'pulp_rpm_client/api/content_modulemds_api'
|
96
100
|
require 'pulp_rpm_client/api/content_packagecategories_api'
|
97
101
|
require 'pulp_rpm_client/api/content_packageenvironments_api'
|
@@ -68,8 +68,8 @@ describe 'AcsRpmApi' do
|
|
68
68
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
69
69
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
70
|
# @option opts [Array<String>] :ordering Ordering
|
71
|
-
# @option opts [
|
72
|
-
# @option opts [
|
71
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
72
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
73
73
|
# @return [PaginatedrpmRpmAlternateContentSourceResponseList]
|
74
74
|
describe 'list test' do
|
75
75
|
it 'should work' do
|
@@ -95,8 +95,8 @@ describe 'AcsRpmApi' do
|
|
95
95
|
# ViewSet for ACS.
|
96
96
|
# @param rpm_rpm_alternate_content_source_href
|
97
97
|
# @param [Hash] opts the optional parameters
|
98
|
-
# @option opts [
|
99
|
-
# @option opts [
|
98
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
99
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
100
100
|
# @return [RpmRpmAlternateContentSourceResponse]
|
101
101
|
describe 'read test' do
|
102
102
|
it 'should work' do
|
@@ -107,7 +107,6 @@ describe 'AcsRpmApi' do
|
|
107
107
|
# unit tests for refresh
|
108
108
|
# Trigger an asynchronous task to create Alternate Content Source content.
|
109
109
|
# @param rpm_rpm_alternate_content_source_href
|
110
|
-
# @param rpm_rpm_alternate_content_source
|
111
110
|
# @param [Hash] opts the optional parameters
|
112
111
|
# @return [TaskGroupOperationResponse]
|
113
112
|
describe 'refresh test' do
|
@@ -66,8 +66,8 @@ describe 'ContentAdvisoriesApi' do
|
|
66
66
|
# @option opts [String] :type Filter results where type matches value
|
67
67
|
# @option opts [Array<String>] :type__in Filter results where type is in a comma-separated list of values
|
68
68
|
# @option opts [String] :type__ne Filter results where type not equal to value
|
69
|
-
# @option opts [
|
70
|
-
# @option opts [
|
69
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
70
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
71
71
|
# @return [PaginatedrpmUpdateRecordResponseList]
|
72
72
|
describe 'list test' do
|
73
73
|
it 'should work' do
|
@@ -80,8 +80,8 @@ describe 'ContentAdvisoriesApi' do
|
|
80
80
|
# A ViewSet for UpdateRecord. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/advisories/ Also specify queryset and serializer for UpdateRecord.
|
81
81
|
# @param rpm_update_record_href
|
82
82
|
# @param [Hash] opts the optional parameters
|
83
|
-
# @option opts [
|
84
|
-
# @option opts [
|
83
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
84
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
85
85
|
# @return [RpmUpdateRecordResponse]
|
86
86
|
describe 'read test' do
|
87
87
|
it 'should work' do
|