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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -6
  3. data/docs/Addon.md +27 -0
  4. data/docs/Artifact.md +35 -0
  5. data/docs/Checksum.md +19 -0
  6. data/docs/ContentAdvisoriesApi.md +12 -6
  7. data/docs/ContentPackagesApi.md +12 -6
  8. data/docs/DistributionTree.md +53 -0
  9. data/docs/DistributionTreesDistributionTreesApi.md +179 -0
  10. data/docs/DistributionsRpmApi.md +14 -8
  11. data/docs/Image.md +23 -0
  12. data/docs/InlineResponse200.md +3 -3
  13. data/docs/InlineResponse2001.md +3 -3
  14. data/docs/InlineResponse2002.md +4 -4
  15. data/docs/InlineResponse2003.md +4 -4
  16. data/docs/InlineResponse2004.md +4 -4
  17. data/docs/InlineResponse2005.md +23 -0
  18. data/docs/InlineResponse2006.md +23 -0
  19. data/docs/Package.md +10 -8
  20. data/docs/PublicationsRpmApi.md +14 -8
  21. data/docs/RemotesRpmApi.md +14 -8
  22. data/docs/RepoMetadataFile.md +31 -0
  23. data/docs/RepoMetadataFilesRepoMetadataFilesApi.md +179 -0
  24. data/docs/Variant.md +37 -0
  25. data/git_push.sh +10 -7
  26. data/lib/pulp_rpm_client/api/content_advisories_api.rb +15 -9
  27. data/lib/pulp_rpm_client/api/content_packages_api.rb +15 -9
  28. data/lib/pulp_rpm_client/api/distribution_trees_distribution_trees_api.rb +212 -0
  29. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +21 -15
  30. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +19 -13
  31. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +22 -16
  32. data/lib/pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api.rb +212 -0
  33. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +2 -2
  34. data/lib/pulp_rpm_client/api/rpm_upload_api.rb +2 -2
  35. data/lib/pulp_rpm_client/api_client.rb +77 -62
  36. data/lib/pulp_rpm_client/api_error.rb +1 -1
  37. data/lib/pulp_rpm_client/configuration.rb +13 -21
  38. data/lib/pulp_rpm_client/models/addon.rb +372 -0
  39. data/lib/pulp_rpm_client/models/artifact.rb +376 -0
  40. data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
  41. data/lib/pulp_rpm_client/models/checksum.rb +255 -0
  42. data/lib/pulp_rpm_client/models/distribution_tree.rb +660 -0
  43. data/lib/pulp_rpm_client/models/image.rb +303 -0
  44. data/lib/pulp_rpm_client/models/inline_response200.rb +11 -11
  45. data/lib/pulp_rpm_client/models/inline_response2001.rb +11 -11
  46. data/lib/pulp_rpm_client/models/inline_response2002.rb +12 -12
  47. data/lib/pulp_rpm_client/models/inline_response2003.rb +12 -12
  48. data/lib/pulp_rpm_client/models/inline_response2004.rb +12 -12
  49. data/lib/pulp_rpm_client/models/inline_response2005.rb +235 -0
  50. data/lib/pulp_rpm_client/models/inline_response2006.rb +235 -0
  51. data/lib/pulp_rpm_client/models/package.rb +69 -40
  52. data/lib/pulp_rpm_client/models/repo_metadata_file.rb +381 -0
  53. data/lib/pulp_rpm_client/models/repository_sync_url.rb +1 -1
  54. data/lib/pulp_rpm_client/models/rpm_distribution.rb +1 -1
  55. data/lib/pulp_rpm_client/models/rpm_publication.rb +1 -1
  56. data/lib/pulp_rpm_client/models/rpm_remote.rb +1 -1
  57. data/lib/pulp_rpm_client/models/update_record.rb +1 -1
  58. data/lib/pulp_rpm_client/models/variant.rb +542 -0
  59. data/lib/pulp_rpm_client/version.rb +2 -2
  60. data/lib/pulp_rpm_client.rb +12 -1
  61. data/pulp_rpm_client.gemspec +3 -9
  62. data/spec/api/content_advisories_api_spec.rb +5 -3
  63. data/spec/api/content_packages_api_spec.rb +5 -3
  64. data/spec/api/distribution_trees_distribution_trees_api_spec.rb +74 -0
  65. data/spec/api/distributions_rpm_api_spec.rb +6 -4
  66. data/spec/api/publications_rpm_api_spec.rb +6 -4
  67. data/spec/api/remotes_rpm_api_spec.rb +6 -4
  68. data/spec/api/repo_metadata_files_repo_metadata_files_api_spec.rb +74 -0
  69. data/spec/api/rpm_copy_api_spec.rb +1 -1
  70. data/spec/api/rpm_upload_api_spec.rb +1 -1
  71. data/spec/api_client_spec.rb +1 -39
  72. data/spec/configuration_spec.rb +1 -1
  73. data/spec/models/addon_spec.rb +71 -0
  74. data/spec/models/artifact_spec.rb +95 -0
  75. data/spec/models/async_operation_response_spec.rb +1 -1
  76. data/spec/models/checksum_spec.rb +47 -0
  77. data/spec/models/distribution_tree_spec.rb +149 -0
  78. data/spec/models/image_spec.rb +59 -0
  79. data/spec/models/inline_response2001_spec.rb +4 -4
  80. data/spec/models/inline_response2002_spec.rb +4 -4
  81. data/spec/models/inline_response2003_spec.rb +4 -4
  82. data/spec/models/inline_response2004_spec.rb +4 -4
  83. data/spec/models/inline_response2005_spec.rb +59 -0
  84. data/spec/models/inline_response2006_spec.rb +59 -0
  85. data/spec/models/inline_response200_spec.rb +4 -4
  86. data/spec/models/package_spec.rb +16 -10
  87. data/spec/models/repo_metadata_file_spec.rb +83 -0
  88. data/spec/models/repository_sync_url_spec.rb +1 -1
  89. data/spec/models/rpm_distribution_spec.rb +1 -1
  90. data/spec/models/rpm_publication_spec.rb +1 -1
  91. data/spec/models/rpm_remote_spec.rb +1 -1
  92. data/spec/models/update_record_spec.rb +1 -1
  93. data/spec/models/variant_spec.rb +101 -0
  94. data/spec/spec_helper.rb +1 -1
  95. metadata +50 -133
  96. data/Gemfile.lock +0 -79
@@ -0,0 +1,542 @@
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 Variant
17
+ # Variant id.
18
+ attr_accessor :variant_id
19
+
20
+ # Variant uid.
21
+ attr_accessor :uid
22
+
23
+ # Variant name.
24
+ attr_accessor :name
25
+
26
+ # Variant type.
27
+ attr_accessor :type
28
+
29
+ # Relative path to directory with binary RPMs.
30
+ attr_accessor :packages
31
+
32
+ # A URI of the repository containing the content for this Variant.
33
+ attr_accessor :repository
34
+
35
+ # Relative path to directory with source RPMs.
36
+ attr_accessor :source_packages
37
+
38
+ # Relative path to YUM repository with source RPMs.
39
+ attr_accessor :source_repository
40
+
41
+ # Relative path to directory with debug RPMs.
42
+ attr_accessor :debug_packages
43
+
44
+ # Relative path to YUM repository with debug RPMs.
45
+ attr_accessor :debug_repository
46
+
47
+ # Relative path to a pem file that identifies a product.
48
+ attr_accessor :identity
49
+
50
+ # Attribute mapping from ruby-style variable name to JSON key.
51
+ def self.attribute_map
52
+ {
53
+ :'variant_id' => :'variant_id',
54
+ :'uid' => :'uid',
55
+ :'name' => :'name',
56
+ :'type' => :'type',
57
+ :'packages' => :'packages',
58
+ :'repository' => :'repository',
59
+ :'source_packages' => :'source_packages',
60
+ :'source_repository' => :'source_repository',
61
+ :'debug_packages' => :'debug_packages',
62
+ :'debug_repository' => :'debug_repository',
63
+ :'identity' => :'identity'
64
+ }
65
+ end
66
+
67
+ # Attribute type mapping.
68
+ def self.openapi_types
69
+ {
70
+ :'variant_id' => :'String',
71
+ :'uid' => :'String',
72
+ :'name' => :'String',
73
+ :'type' => :'String',
74
+ :'packages' => :'String',
75
+ :'repository' => :'String',
76
+ :'source_packages' => :'String',
77
+ :'source_repository' => :'String',
78
+ :'debug_packages' => :'String',
79
+ :'debug_repository' => :'String',
80
+ :'identity' => :'String'
81
+ }
82
+ end
83
+
84
+ # Initializes the object
85
+ # @param [Hash] attributes Model attributes in the form of hash
86
+ def initialize(attributes = {})
87
+ if (!attributes.is_a?(Hash))
88
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::Variant` initialize method"
89
+ end
90
+
91
+ # check to see if the attribute exists and convert string to symbol for hash key
92
+ attributes = attributes.each_with_object({}) { |(k, v), h|
93
+ if (!self.class.attribute_map.key?(k.to_sym))
94
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::Variant`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
95
+ end
96
+ h[k.to_sym] = v
97
+ }
98
+
99
+ if attributes.key?(:'variant_id')
100
+ self.variant_id = attributes[:'variant_id']
101
+ end
102
+
103
+ if attributes.key?(:'uid')
104
+ self.uid = attributes[:'uid']
105
+ end
106
+
107
+ if attributes.key?(:'name')
108
+ self.name = attributes[:'name']
109
+ end
110
+
111
+ if attributes.key?(:'type')
112
+ self.type = attributes[:'type']
113
+ end
114
+
115
+ if attributes.key?(:'packages')
116
+ self.packages = attributes[:'packages']
117
+ end
118
+
119
+ if attributes.key?(:'repository')
120
+ self.repository = attributes[:'repository']
121
+ end
122
+
123
+ if attributes.key?(:'source_packages')
124
+ self.source_packages = attributes[:'source_packages']
125
+ end
126
+
127
+ if attributes.key?(:'source_repository')
128
+ self.source_repository = attributes[:'source_repository']
129
+ end
130
+
131
+ if attributes.key?(:'debug_packages')
132
+ self.debug_packages = attributes[:'debug_packages']
133
+ end
134
+
135
+ if attributes.key?(:'debug_repository')
136
+ self.debug_repository = attributes[:'debug_repository']
137
+ end
138
+
139
+ if attributes.key?(:'identity')
140
+ self.identity = attributes[:'identity']
141
+ end
142
+ end
143
+
144
+ # Show invalid properties with the reasons. Usually used together with valid?
145
+ # @return Array for valid properties with the reasons
146
+ def list_invalid_properties
147
+ invalid_properties = Array.new
148
+ if @variant_id.nil?
149
+ invalid_properties.push('invalid value for "variant_id", variant_id cannot be nil.')
150
+ end
151
+
152
+ if @variant_id.to_s.length < 1
153
+ invalid_properties.push('invalid value for "variant_id", the character length must be great than or equal to 1.')
154
+ end
155
+
156
+ if @uid.nil?
157
+ invalid_properties.push('invalid value for "uid", uid cannot be nil.')
158
+ end
159
+
160
+ if @uid.to_s.length < 1
161
+ invalid_properties.push('invalid value for "uid", the character length must be great than or equal to 1.')
162
+ end
163
+
164
+ if @name.nil?
165
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
166
+ end
167
+
168
+ if @name.to_s.length < 1
169
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
170
+ end
171
+
172
+ if @type.nil?
173
+ invalid_properties.push('invalid value for "type", type cannot be nil.')
174
+ end
175
+
176
+ if @type.to_s.length < 1
177
+ invalid_properties.push('invalid value for "type", the character length must be great than or equal to 1.')
178
+ end
179
+
180
+ if @packages.nil?
181
+ invalid_properties.push('invalid value for "packages", packages cannot be nil.')
182
+ end
183
+
184
+ if @packages.to_s.length < 1
185
+ invalid_properties.push('invalid value for "packages", the character length must be great than or equal to 1.')
186
+ end
187
+
188
+ if @repository.nil?
189
+ invalid_properties.push('invalid value for "repository", repository cannot be nil.')
190
+ end
191
+
192
+ if @source_packages.nil?
193
+ invalid_properties.push('invalid value for "source_packages", source_packages cannot be nil.')
194
+ end
195
+
196
+ if @source_packages.to_s.length < 1
197
+ invalid_properties.push('invalid value for "source_packages", the character length must be great than or equal to 1.')
198
+ end
199
+
200
+ if @source_repository.nil?
201
+ invalid_properties.push('invalid value for "source_repository", source_repository cannot be nil.')
202
+ end
203
+
204
+ if @source_repository.to_s.length < 1
205
+ invalid_properties.push('invalid value for "source_repository", the character length must be great than or equal to 1.')
206
+ end
207
+
208
+ if @debug_packages.nil?
209
+ invalid_properties.push('invalid value for "debug_packages", debug_packages cannot be nil.')
210
+ end
211
+
212
+ if @debug_packages.to_s.length < 1
213
+ invalid_properties.push('invalid value for "debug_packages", the character length must be great than or equal to 1.')
214
+ end
215
+
216
+ if @debug_repository.nil?
217
+ invalid_properties.push('invalid value for "debug_repository", debug_repository cannot be nil.')
218
+ end
219
+
220
+ if @debug_repository.to_s.length < 1
221
+ invalid_properties.push('invalid value for "debug_repository", the character length must be great than or equal to 1.')
222
+ end
223
+
224
+ if @identity.nil?
225
+ invalid_properties.push('invalid value for "identity", identity cannot be nil.')
226
+ end
227
+
228
+ if @identity.to_s.length < 1
229
+ invalid_properties.push('invalid value for "identity", the character length must be great than or equal to 1.')
230
+ end
231
+
232
+ invalid_properties
233
+ end
234
+
235
+ # Check to see if the all the properties in the model are valid
236
+ # @return true if the model is valid
237
+ def valid?
238
+ return false if @variant_id.nil?
239
+ return false if @variant_id.to_s.length < 1
240
+ return false if @uid.nil?
241
+ return false if @uid.to_s.length < 1
242
+ return false if @name.nil?
243
+ return false if @name.to_s.length < 1
244
+ return false if @type.nil?
245
+ return false if @type.to_s.length < 1
246
+ return false if @packages.nil?
247
+ return false if @packages.to_s.length < 1
248
+ return false if @repository.nil?
249
+ return false if @source_packages.nil?
250
+ return false if @source_packages.to_s.length < 1
251
+ return false if @source_repository.nil?
252
+ return false if @source_repository.to_s.length < 1
253
+ return false if @debug_packages.nil?
254
+ return false if @debug_packages.to_s.length < 1
255
+ return false if @debug_repository.nil?
256
+ return false if @debug_repository.to_s.length < 1
257
+ return false if @identity.nil?
258
+ return false if @identity.to_s.length < 1
259
+ true
260
+ end
261
+
262
+ # Custom attribute writer method with validation
263
+ # @param [Object] variant_id Value to be assigned
264
+ def variant_id=(variant_id)
265
+ if variant_id.nil?
266
+ fail ArgumentError, 'variant_id cannot be nil'
267
+ end
268
+
269
+ if variant_id.to_s.length < 1
270
+ fail ArgumentError, 'invalid value for "variant_id", the character length must be great than or equal to 1.'
271
+ end
272
+
273
+ @variant_id = variant_id
274
+ end
275
+
276
+ # Custom attribute writer method with validation
277
+ # @param [Object] uid Value to be assigned
278
+ def uid=(uid)
279
+ if uid.nil?
280
+ fail ArgumentError, 'uid cannot be nil'
281
+ end
282
+
283
+ if uid.to_s.length < 1
284
+ fail ArgumentError, 'invalid value for "uid", the character length must be great than or equal to 1.'
285
+ end
286
+
287
+ @uid = uid
288
+ end
289
+
290
+ # Custom attribute writer method with validation
291
+ # @param [Object] name Value to be assigned
292
+ def name=(name)
293
+ if name.nil?
294
+ fail ArgumentError, 'name cannot be nil'
295
+ end
296
+
297
+ if name.to_s.length < 1
298
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
299
+ end
300
+
301
+ @name = name
302
+ end
303
+
304
+ # Custom attribute writer method with validation
305
+ # @param [Object] type Value to be assigned
306
+ def type=(type)
307
+ if type.nil?
308
+ fail ArgumentError, 'type cannot be nil'
309
+ end
310
+
311
+ if type.to_s.length < 1
312
+ fail ArgumentError, 'invalid value for "type", the character length must be great than or equal to 1.'
313
+ end
314
+
315
+ @type = type
316
+ end
317
+
318
+ # Custom attribute writer method with validation
319
+ # @param [Object] packages Value to be assigned
320
+ def packages=(packages)
321
+ if packages.nil?
322
+ fail ArgumentError, 'packages cannot be nil'
323
+ end
324
+
325
+ if packages.to_s.length < 1
326
+ fail ArgumentError, 'invalid value for "packages", the character length must be great than or equal to 1.'
327
+ end
328
+
329
+ @packages = packages
330
+ end
331
+
332
+ # Custom attribute writer method with validation
333
+ # @param [Object] source_packages Value to be assigned
334
+ def source_packages=(source_packages)
335
+ if source_packages.nil?
336
+ fail ArgumentError, 'source_packages cannot be nil'
337
+ end
338
+
339
+ if source_packages.to_s.length < 1
340
+ fail ArgumentError, 'invalid value for "source_packages", the character length must be great than or equal to 1.'
341
+ end
342
+
343
+ @source_packages = source_packages
344
+ end
345
+
346
+ # Custom attribute writer method with validation
347
+ # @param [Object] source_repository Value to be assigned
348
+ def source_repository=(source_repository)
349
+ if source_repository.nil?
350
+ fail ArgumentError, 'source_repository cannot be nil'
351
+ end
352
+
353
+ if source_repository.to_s.length < 1
354
+ fail ArgumentError, 'invalid value for "source_repository", the character length must be great than or equal to 1.'
355
+ end
356
+
357
+ @source_repository = source_repository
358
+ end
359
+
360
+ # Custom attribute writer method with validation
361
+ # @param [Object] debug_packages Value to be assigned
362
+ def debug_packages=(debug_packages)
363
+ if debug_packages.nil?
364
+ fail ArgumentError, 'debug_packages cannot be nil'
365
+ end
366
+
367
+ if debug_packages.to_s.length < 1
368
+ fail ArgumentError, 'invalid value for "debug_packages", the character length must be great than or equal to 1.'
369
+ end
370
+
371
+ @debug_packages = debug_packages
372
+ end
373
+
374
+ # Custom attribute writer method with validation
375
+ # @param [Object] debug_repository Value to be assigned
376
+ def debug_repository=(debug_repository)
377
+ if debug_repository.nil?
378
+ fail ArgumentError, 'debug_repository cannot be nil'
379
+ end
380
+
381
+ if debug_repository.to_s.length < 1
382
+ fail ArgumentError, 'invalid value for "debug_repository", the character length must be great than or equal to 1.'
383
+ end
384
+
385
+ @debug_repository = debug_repository
386
+ end
387
+
388
+ # Custom attribute writer method with validation
389
+ # @param [Object] identity Value to be assigned
390
+ def identity=(identity)
391
+ if identity.nil?
392
+ fail ArgumentError, 'identity cannot be nil'
393
+ end
394
+
395
+ if identity.to_s.length < 1
396
+ fail ArgumentError, 'invalid value for "identity", the character length must be great than or equal to 1.'
397
+ end
398
+
399
+ @identity = identity
400
+ end
401
+
402
+ # Checks equality by comparing each attribute.
403
+ # @param [Object] Object to be compared
404
+ def ==(o)
405
+ return true if self.equal?(o)
406
+ self.class == o.class &&
407
+ variant_id == o.variant_id &&
408
+ uid == o.uid &&
409
+ name == o.name &&
410
+ type == o.type &&
411
+ packages == o.packages &&
412
+ repository == o.repository &&
413
+ source_packages == o.source_packages &&
414
+ source_repository == o.source_repository &&
415
+ debug_packages == o.debug_packages &&
416
+ debug_repository == o.debug_repository &&
417
+ identity == o.identity
418
+ end
419
+
420
+ # @see the `==` method
421
+ # @param [Object] Object to be compared
422
+ def eql?(o)
423
+ self == o
424
+ end
425
+
426
+ # Calculates hash code according to all attributes.
427
+ # @return [Integer] Hash code
428
+ def hash
429
+ [variant_id, uid, name, type, packages, repository, source_packages, source_repository, debug_packages, debug_repository, identity].hash
430
+ end
431
+
432
+ # Builds the object from hash
433
+ # @param [Hash] attributes Model attributes in the form of hash
434
+ # @return [Object] Returns the model itself
435
+ def self.build_from_hash(attributes)
436
+ new.build_from_hash(attributes)
437
+ end
438
+
439
+ # Builds the object from hash
440
+ # @param [Hash] attributes Model attributes in the form of hash
441
+ # @return [Object] Returns the model itself
442
+ def build_from_hash(attributes)
443
+ return nil unless attributes.is_a?(Hash)
444
+ self.class.openapi_types.each_pair do |key, type|
445
+ if type =~ /\AArray<(.*)>/i
446
+ # check to ensure the input is an array given that the attribute
447
+ # is documented as an array but the input is not
448
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
449
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
450
+ end
451
+ elsif !attributes[self.class.attribute_map[key]].nil?
452
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
453
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
454
+ end
455
+
456
+ self
457
+ end
458
+
459
+ # Deserializes the data based on type
460
+ # @param string type Data type
461
+ # @param string value Value to be deserialized
462
+ # @return [Object] Deserialized data
463
+ def _deserialize(type, value)
464
+ case type.to_sym
465
+ when :DateTime
466
+ DateTime.parse(value)
467
+ when :Date
468
+ Date.parse(value)
469
+ when :String
470
+ value.to_s
471
+ when :Integer
472
+ value.to_i
473
+ when :Float
474
+ value.to_f
475
+ when :Boolean
476
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
477
+ true
478
+ else
479
+ false
480
+ end
481
+ when :Object
482
+ # generic object (usually a Hash), return directly
483
+ value
484
+ when /\AArray<(?<inner_type>.+)>\z/
485
+ inner_type = Regexp.last_match[:inner_type]
486
+ value.map { |v| _deserialize(inner_type, v) }
487
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
488
+ k_type = Regexp.last_match[:k_type]
489
+ v_type = Regexp.last_match[:v_type]
490
+ {}.tap do |hash|
491
+ value.each do |k, v|
492
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
493
+ end
494
+ end
495
+ else # model
496
+ PulpRpmClient.const_get(type).build_from_hash(value)
497
+ end
498
+ end
499
+
500
+ # Returns the string representation of the object
501
+ # @return [String] String presentation of the object
502
+ def to_s
503
+ to_hash.to_s
504
+ end
505
+
506
+ # to_body is an alias to to_hash (backward compatibility)
507
+ # @return [Hash] Returns the object in the form of hash
508
+ def to_body
509
+ to_hash
510
+ end
511
+
512
+ # Returns the object in the form of hash
513
+ # @return [Hash] Returns the object in the form of hash
514
+ def to_hash
515
+ hash = {}
516
+ self.class.attribute_map.each_pair do |attr, param|
517
+ value = self.send(attr)
518
+ next if value.nil?
519
+ hash[param] = _to_hash(value)
520
+ end
521
+ hash
522
+ end
523
+
524
+ # Outputs non-array value in the form of hash
525
+ # For object, use to_hash. Otherwise, just return the value
526
+ # @param [Object] value Any valid value
527
+ # @return [Hash] Returns the value in the form of hash
528
+ def _to_hash(value)
529
+ if value.is_a?(Array)
530
+ value.compact.map { |v| _to_hash(v) }
531
+ elsif value.is_a?(Hash)
532
+ {}.tap do |hash|
533
+ value.each { |k, v| hash[k] = _to_hash(v) }
534
+ end
535
+ elsif value.respond_to? :to_hash
536
+ value.to_hash
537
+ else
538
+ value
539
+ end
540
+ end
541
+ end
542
+ end
@@ -6,10 +6,10 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.3-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.0.0b4'
14
+ VERSION = '3.0.0b5'
15
15
  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.0.0
9
+ OpenAPI Generator version: 4.1.3-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -17,25 +17,36 @@ require 'pulp_rpm_client/version'
17
17
  require 'pulp_rpm_client/configuration'
18
18
 
19
19
  # Models
20
+ require 'pulp_rpm_client/models/addon'
21
+ require 'pulp_rpm_client/models/artifact'
20
22
  require 'pulp_rpm_client/models/async_operation_response'
23
+ require 'pulp_rpm_client/models/checksum'
24
+ require 'pulp_rpm_client/models/distribution_tree'
25
+ require 'pulp_rpm_client/models/image'
21
26
  require 'pulp_rpm_client/models/inline_response200'
22
27
  require 'pulp_rpm_client/models/inline_response2001'
23
28
  require 'pulp_rpm_client/models/inline_response2002'
24
29
  require 'pulp_rpm_client/models/inline_response2003'
25
30
  require 'pulp_rpm_client/models/inline_response2004'
31
+ require 'pulp_rpm_client/models/inline_response2005'
32
+ require 'pulp_rpm_client/models/inline_response2006'
26
33
  require 'pulp_rpm_client/models/package'
34
+ require 'pulp_rpm_client/models/repo_metadata_file'
27
35
  require 'pulp_rpm_client/models/repository_sync_url'
28
36
  require 'pulp_rpm_client/models/rpm_distribution'
29
37
  require 'pulp_rpm_client/models/rpm_publication'
30
38
  require 'pulp_rpm_client/models/rpm_remote'
31
39
  require 'pulp_rpm_client/models/update_record'
40
+ require 'pulp_rpm_client/models/variant'
32
41
 
33
42
  # APIs
34
43
  require 'pulp_rpm_client/api/content_advisories_api'
35
44
  require 'pulp_rpm_client/api/content_packages_api'
45
+ require 'pulp_rpm_client/api/distribution_trees_distribution_trees_api'
36
46
  require 'pulp_rpm_client/api/distributions_rpm_api'
37
47
  require 'pulp_rpm_client/api/publications_rpm_api'
38
48
  require 'pulp_rpm_client/api/remotes_rpm_api'
49
+ require 'pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api'
39
50
  require 'pulp_rpm_client/api/rpm_copy_api'
40
51
  require 'pulp_rpm_client/api/rpm_upload_api'
41
52
 
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: v3
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.0.0
11
+ OpenAPI Generator version: 4.1.3-SNAPSHOT
12
12
 
13
13
  =end
14
14
 
@@ -24,19 +24,13 @@ Gem::Specification.new do |s|
24
24
  s.homepage = "https://openapi-generator.tech"
25
25
  s.summary = "Pulp 3 API Ruby Gem"
26
26
  s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
27
- s.license = 'GPLv2'
27
+ s.license = 'GPL-2.0'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
30
+ s.add_runtime_dependency 'faraday', '>= 0.14.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
- s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
- s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
- s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
- s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
- s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
34
 
41
35
  s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
42
36
  s.test_files = `find spec/*`.split("\n")
@@ -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.0.0
9
+ OpenAPI Generator version: 4.1.3-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -59,8 +59,9 @@ describe 'ContentAdvisoriesApi' do
59
59
  # @option opts [String] :repository_version Repository Version referenced by HREF
60
60
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
61
61
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
62
- # @option opts [Integer] :page A page number within the paginated result set.
63
- # @option opts [Integer] :page_size Number of results to return per page.
62
+ # @option opts [Integer] :limit Number of results to return per page.
63
+ # @option opts [Integer] :offset The initial index from which to return the results.
64
+ # @option opts [String] :fields A list of fields to include in the response.
64
65
  # @return [InlineResponse200]
65
66
  describe 'list test' do
66
67
  it 'should work' do
@@ -73,6 +74,7 @@ describe 'ContentAdvisoriesApi' do
73
74
  # 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.
74
75
  # @param update_record_href URI of Update Record. e.g.: /pulp/api/v3/content/rpm/advisories/1/
75
76
  # @param [Hash] opts the optional parameters
77
+ # @option opts [String] :fields A list of fields to include in the response.
76
78
  # @return [UpdateRecord]
77
79
  describe 'read test' do
78
80
  it 'should work' do
@@ -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.0.0
9
+ OpenAPI Generator version: 4.1.3-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -65,8 +65,9 @@ describe 'ContentPackagesApi' do
65
65
  # @option opts [String] :repository_version Repository Version referenced by HREF
66
66
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
67
67
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
68
- # @option opts [Integer] :page A page number within the paginated result set.
69
- # @option opts [Integer] :page_size Number of results to return per page.
68
+ # @option opts [Integer] :limit Number of results to return per page.
69
+ # @option opts [Integer] :offset The initial index from which to return the results.
70
+ # @option opts [String] :fields A list of fields to include in the response.
70
71
  # @return [InlineResponse2001]
71
72
  describe 'list test' do
72
73
  it 'should work' do
@@ -79,6 +80,7 @@ describe 'ContentPackagesApi' do
79
80
  # 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/packages/ Also specify queryset and serializer for Package.
80
81
  # @param package_href URI of Package. e.g.: /pulp/api/v3/content/rpm/packages/1/
81
82
  # @param [Hash] opts the optional parameters
83
+ # @option opts [String] :fields A list of fields to include in the response.
82
84
  # @return [Package]
83
85
  describe 'read test' do
84
86
  it 'should work' do