pulp_rpm_client 3.0.0b5 → 3.0.0b6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -6
  3. data/docs/ContentAdvisoriesApi.md +3 -3
  4. data/docs/ContentModulemdApi.md +210 -0
  5. data/docs/ContentModulemdDefaultsApi.md +200 -0
  6. data/docs/ContentPackagesApi.md +17 -9
  7. data/docs/DistributionTreesDistributionTreesApi.md +2 -2
  8. data/docs/DistributionsRpmApi.md +2 -2
  9. data/docs/InlineResponse2001.md +1 -1
  10. data/docs/InlineResponse2002.md +1 -1
  11. data/docs/InlineResponse2003.md +1 -1
  12. data/docs/InlineResponse2004.md +1 -1
  13. data/docs/InlineResponse2005.md +1 -1
  14. data/docs/InlineResponse2006.md +1 -1
  15. data/docs/InlineResponse2007.md +23 -0
  16. data/docs/InlineResponse2008.md +23 -0
  17. data/docs/Modulemd.md +45 -0
  18. data/docs/ModulemdDefaults.md +35 -0
  19. data/docs/Package.md +23 -19
  20. data/docs/PublicationsRpmApi.md +2 -2
  21. data/docs/RemotesRpmApi.md +2 -2
  22. data/docs/RepoMetadataFile.md +5 -1
  23. data/docs/RepoMetadataFilesRepoMetadataFilesApi.md +2 -2
  24. data/docs/RpmCopyApi.md +1 -1
  25. data/lib/pulp_rpm_client/api/content_advisories_api.rb +5 -5
  26. data/lib/pulp_rpm_client/api/content_modulemd_api.rb +319 -0
  27. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +272 -0
  28. data/lib/pulp_rpm_client/api/content_packages_api.rb +32 -18
  29. data/lib/pulp_rpm_client/api/distribution_trees_distribution_trees_api.rb +3 -3
  30. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +3 -3
  31. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +3 -3
  32. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +3 -3
  33. data/lib/pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api.rb +3 -3
  34. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +1 -1
  35. data/lib/pulp_rpm_client/models/inline_response2001.rb +1 -1
  36. data/lib/pulp_rpm_client/models/inline_response2002.rb +1 -1
  37. data/lib/pulp_rpm_client/models/inline_response2003.rb +1 -1
  38. data/lib/pulp_rpm_client/models/inline_response2004.rb +1 -1
  39. data/lib/pulp_rpm_client/models/inline_response2005.rb +1 -1
  40. data/lib/pulp_rpm_client/models/inline_response2006.rb +1 -1
  41. data/lib/pulp_rpm_client/models/inline_response2007.rb +235 -0
  42. data/lib/pulp_rpm_client/models/inline_response2008.rb +235 -0
  43. data/lib/pulp_rpm_client/models/modulemd.rb +544 -0
  44. data/lib/pulp_rpm_client/models/modulemd_defaults.rb +396 -0
  45. data/lib/pulp_rpm_client/models/package.rb +73 -156
  46. data/lib/pulp_rpm_client/models/repo_metadata_file.rb +21 -6
  47. data/lib/pulp_rpm_client/version.rb +1 -1
  48. data/lib/pulp_rpm_client.rb +6 -1
  49. data/spec/api/content_advisories_api_spec.rb +2 -2
  50. data/spec/api/content_modulemd_api_spec.rb +88 -0
  51. data/spec/api/content_modulemd_defaults_api_spec.rb +83 -0
  52. data/spec/api/content_packages_api_spec.rb +7 -4
  53. data/spec/api/distribution_trees_distribution_trees_api_spec.rb +1 -1
  54. data/spec/api/distributions_rpm_api_spec.rb +1 -1
  55. data/spec/api/publications_rpm_api_spec.rb +1 -1
  56. data/spec/api/remotes_rpm_api_spec.rb +1 -1
  57. data/spec/api/repo_metadata_files_repo_metadata_files_api_spec.rb +1 -1
  58. data/spec/models/inline_response2007_spec.rb +59 -0
  59. data/spec/models/inline_response2008_spec.rb +59 -0
  60. data/spec/models/modulemd_defaults_spec.rb +95 -0
  61. data/spec/models/modulemd_spec.rb +125 -0
  62. data/spec/models/package_spec.rb +16 -4
  63. data/spec/models/repo_metadata_file_spec.rb +12 -0
  64. metadata +26 -6
  65. data/docs/RpmUploadApi.md +0 -66
  66. data/lib/pulp_rpm_client/api/rpm_upload_api.rb +0 -90
  67. data/spec/api/rpm_upload_api_spec.rb +0 -48
@@ -14,18 +14,24 @@ require 'date'
14
14
 
15
15
  module PulpRpmClient
16
16
  class Package
17
- # File name of the package
18
- attr_accessor :relative_path
19
-
20
17
  attr_accessor :_href
21
18
 
22
19
  # Timestamp of creation.
23
20
  attr_accessor :_created
24
21
 
22
+ attr_accessor :_type
23
+
25
24
  # Artifact file representing the physical content
26
25
  attr_accessor :artifact
27
26
 
28
- attr_accessor :_type
27
+ # Path where the artifact is located relative to distributions base_path
28
+ attr_accessor :relative_path
29
+
30
+ # An uploaded file that should be turned into the artifact of the content unit.
31
+ attr_accessor :file
32
+
33
+ # A URI of a repository the new content unit should be associated with.
34
+ attr_accessor :repository
29
35
 
30
36
  # Name of the package
31
37
  attr_accessor :name
@@ -138,11 +144,13 @@ module PulpRpmClient
138
144
  # Attribute mapping from ruby-style variable name to JSON key.
139
145
  def self.attribute_map
140
146
  {
141
- :'relative_path' => :'relative_path',
142
147
  :'_href' => :'_href',
143
148
  :'_created' => :'_created',
144
- :'artifact' => :'artifact',
145
149
  :'_type' => :'_type',
150
+ :'artifact' => :'artifact',
151
+ :'relative_path' => :'relative_path',
152
+ :'file' => :'file',
153
+ :'repository' => :'repository',
146
154
  :'name' => :'name',
147
155
  :'epoch' => :'epoch',
148
156
  :'version' => :'version',
@@ -185,11 +193,13 @@ module PulpRpmClient
185
193
  # Attribute type mapping.
186
194
  def self.openapi_types
187
195
  {
188
- :'relative_path' => :'String',
189
196
  :'_href' => :'String',
190
197
  :'_created' => :'DateTime',
191
- :'artifact' => :'String',
192
198
  :'_type' => :'String',
199
+ :'artifact' => :'String',
200
+ :'relative_path' => :'String',
201
+ :'file' => :'String',
202
+ :'repository' => :'String',
193
203
  :'name' => :'String',
194
204
  :'epoch' => :'String',
195
205
  :'version' => :'String',
@@ -244,10 +254,6 @@ module PulpRpmClient
244
254
  h[k.to_sym] = v
245
255
  }
246
256
 
247
- if attributes.key?(:'relative_path')
248
- self.relative_path = attributes[:'relative_path']
249
- end
250
-
251
257
  if attributes.key?(:'_href')
252
258
  self._href = attributes[:'_href']
253
259
  end
@@ -256,12 +262,24 @@ module PulpRpmClient
256
262
  self._created = attributes[:'_created']
257
263
  end
258
264
 
265
+ if attributes.key?(:'_type')
266
+ self._type = attributes[:'_type']
267
+ end
268
+
259
269
  if attributes.key?(:'artifact')
260
270
  self.artifact = attributes[:'artifact']
261
271
  end
262
272
 
263
- if attributes.key?(:'_type')
264
- self._type = attributes[:'_type']
273
+ if attributes.key?(:'relative_path')
274
+ self.relative_path = attributes[:'relative_path']
275
+ end
276
+
277
+ if attributes.key?(:'file')
278
+ self.file = attributes[:'file']
279
+ end
280
+
281
+ if attributes.key?(:'repository')
282
+ self.repository = attributes[:'repository']
265
283
  end
266
284
 
267
285
  if attributes.key?(:'name')
@@ -433,6 +451,10 @@ module PulpRpmClient
433
451
  # @return Array for valid properties with the reasons
434
452
  def list_invalid_properties
435
453
  invalid_properties = Array.new
454
+ if !@_type.nil? && @_type.to_s.length < 1
455
+ invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
456
+ end
457
+
436
458
  if @relative_path.nil?
437
459
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
438
460
  end
@@ -441,59 +463,27 @@ module PulpRpmClient
441
463
  invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
442
464
  end
443
465
 
444
- if @artifact.nil?
445
- invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
446
- end
447
-
448
- if !@_type.nil? && @_type.to_s.length < 1
449
- invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
450
- end
451
-
452
- if @name.nil?
453
- invalid_properties.push('invalid value for "name", name cannot be nil.')
454
- end
455
-
456
- if @name.to_s.length < 1
466
+ if !@name.nil? && @name.to_s.length < 1
457
467
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
458
468
  end
459
469
 
460
- if @version.nil?
461
- invalid_properties.push('invalid value for "version", version cannot be nil.')
462
- end
463
-
464
- if @version.to_s.length < 1
470
+ if !@version.nil? && @version.to_s.length < 1
465
471
  invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
466
472
  end
467
473
 
468
- if @release.nil?
469
- invalid_properties.push('invalid value for "release", release cannot be nil.')
470
- end
471
-
472
- if @release.to_s.length < 1
474
+ if !@release.nil? && @release.to_s.length < 1
473
475
  invalid_properties.push('invalid value for "release", the character length must be great than or equal to 1.')
474
476
  end
475
477
 
476
- if @arch.nil?
477
- invalid_properties.push('invalid value for "arch", arch cannot be nil.')
478
- end
479
-
480
- if @arch.to_s.length < 1
478
+ if !@arch.nil? && @arch.to_s.length < 1
481
479
  invalid_properties.push('invalid value for "arch", the character length must be great than or equal to 1.')
482
480
  end
483
481
 
484
- if @pkg_id.nil?
485
- invalid_properties.push('invalid value for "pkg_id", pkg_id cannot be nil.')
486
- end
487
-
488
- if @pkg_id.to_s.length < 1
482
+ if !@pkg_id.nil? && @pkg_id.to_s.length < 1
489
483
  invalid_properties.push('invalid value for "pkg_id", the character length must be great than or equal to 1.')
490
484
  end
491
485
 
492
- if @checksum_type.nil?
493
- invalid_properties.push('invalid value for "checksum_type", checksum_type cannot be nil.')
494
- end
495
-
496
- if @checksum_type.to_s.length < 1
486
+ if !@checksum_type.nil? && @checksum_type.to_s.length < 1
497
487
  invalid_properties.push('invalid value for "checksum_type", the character length must be great than or equal to 1.')
498
488
  end
499
489
 
@@ -537,64 +527,25 @@ module PulpRpmClient
537
527
  invalid_properties.push('invalid value for "supplements", the character length must be great than or equal to 1.')
538
528
  end
539
529
 
540
- if @location_href.nil?
541
- invalid_properties.push('invalid value for "location_href", location_href cannot be nil.')
542
- end
543
-
544
- if @location_href.to_s.length < 1
530
+ if !@location_href.nil? && @location_href.to_s.length < 1
545
531
  invalid_properties.push('invalid value for "location_href", the character length must be great than or equal to 1.')
546
532
  end
547
533
 
548
- if @rpm_header_start.nil?
549
- invalid_properties.push('invalid value for "rpm_header_start", rpm_header_start cannot be nil.')
550
- end
551
-
552
- if @rpm_header_end.nil?
553
- invalid_properties.push('invalid value for "rpm_header_end", rpm_header_end cannot be nil.')
554
- end
555
-
556
- if @size_archive.nil?
557
- invalid_properties.push('invalid value for "size_archive", size_archive cannot be nil.')
558
- end
559
-
560
- if @size_installed.nil?
561
- invalid_properties.push('invalid value for "size_installed", size_installed cannot be nil.')
562
- end
563
-
564
- if @size_package.nil?
565
- invalid_properties.push('invalid value for "size_package", size_package cannot be nil.')
566
- end
567
-
568
- if @time_build.nil?
569
- invalid_properties.push('invalid value for "time_build", time_build cannot be nil.')
570
- end
571
-
572
- if @time_file.nil?
573
- invalid_properties.push('invalid value for "time_file", time_file cannot be nil.')
574
- end
575
-
576
534
  invalid_properties
577
535
  end
578
536
 
579
537
  # Check to see if the all the properties in the model are valid
580
538
  # @return true if the model is valid
581
539
  def valid?
540
+ return false if !@_type.nil? && @_type.to_s.length < 1
582
541
  return false if @relative_path.nil?
583
542
  return false if @relative_path.to_s.length < 1
584
- return false if @artifact.nil?
585
- return false if !@_type.nil? && @_type.to_s.length < 1
586
- return false if @name.nil?
587
- return false if @name.to_s.length < 1
588
- return false if @version.nil?
589
- return false if @version.to_s.length < 1
590
- return false if @release.nil?
591
- return false if @release.to_s.length < 1
592
- return false if @arch.nil?
593
- return false if @arch.to_s.length < 1
594
- return false if @pkg_id.nil?
595
- return false if @pkg_id.to_s.length < 1
596
- return false if @checksum_type.nil?
597
- return false if @checksum_type.to_s.length < 1
543
+ return false if !@name.nil? && @name.to_s.length < 1
544
+ return false if !@version.nil? && @version.to_s.length < 1
545
+ return false if !@release.nil? && @release.to_s.length < 1
546
+ return false if !@arch.nil? && @arch.to_s.length < 1
547
+ return false if !@pkg_id.nil? && @pkg_id.to_s.length < 1
548
+ return false if !@checksum_type.nil? && @checksum_type.to_s.length < 1
598
549
  return false if !@changelogs.nil? && @changelogs.to_s.length < 1
599
550
  return false if !@files.nil? && @files.to_s.length < 1
600
551
  return false if !@requires.nil? && @requires.to_s.length < 1
@@ -605,18 +556,20 @@ module PulpRpmClient
605
556
  return false if !@enhances.nil? && @enhances.to_s.length < 1
606
557
  return false if !@recommends.nil? && @recommends.to_s.length < 1
607
558
  return false if !@supplements.nil? && @supplements.to_s.length < 1
608
- return false if @location_href.nil?
609
- return false if @location_href.to_s.length < 1
610
- return false if @rpm_header_start.nil?
611
- return false if @rpm_header_end.nil?
612
- return false if @size_archive.nil?
613
- return false if @size_installed.nil?
614
- return false if @size_package.nil?
615
- return false if @time_build.nil?
616
- return false if @time_file.nil?
559
+ return false if !@location_href.nil? && @location_href.to_s.length < 1
617
560
  true
618
561
  end
619
562
 
563
+ # Custom attribute writer method with validation
564
+ # @param [Object] _type Value to be assigned
565
+ def _type=(_type)
566
+ if !_type.nil? && _type.to_s.length < 1
567
+ fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
568
+ end
569
+
570
+ @_type = _type
571
+ end
572
+
620
573
  # Custom attribute writer method with validation
621
574
  # @param [Object] relative_path Value to be assigned
622
575
  def relative_path=(relative_path)
@@ -631,24 +584,10 @@ module PulpRpmClient
631
584
  @relative_path = relative_path
632
585
  end
633
586
 
634
- # Custom attribute writer method with validation
635
- # @param [Object] _type Value to be assigned
636
- def _type=(_type)
637
- if !_type.nil? && _type.to_s.length < 1
638
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
639
- end
640
-
641
- @_type = _type
642
- end
643
-
644
587
  # Custom attribute writer method with validation
645
588
  # @param [Object] name Value to be assigned
646
589
  def name=(name)
647
- if name.nil?
648
- fail ArgumentError, 'name cannot be nil'
649
- end
650
-
651
- if name.to_s.length < 1
590
+ if !name.nil? && name.to_s.length < 1
652
591
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
653
592
  end
654
593
 
@@ -658,11 +597,7 @@ module PulpRpmClient
658
597
  # Custom attribute writer method with validation
659
598
  # @param [Object] version Value to be assigned
660
599
  def version=(version)
661
- if version.nil?
662
- fail ArgumentError, 'version cannot be nil'
663
- end
664
-
665
- if version.to_s.length < 1
600
+ if !version.nil? && version.to_s.length < 1
666
601
  fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
667
602
  end
668
603
 
@@ -672,11 +607,7 @@ module PulpRpmClient
672
607
  # Custom attribute writer method with validation
673
608
  # @param [Object] release Value to be assigned
674
609
  def release=(release)
675
- if release.nil?
676
- fail ArgumentError, 'release cannot be nil'
677
- end
678
-
679
- if release.to_s.length < 1
610
+ if !release.nil? && release.to_s.length < 1
680
611
  fail ArgumentError, 'invalid value for "release", the character length must be great than or equal to 1.'
681
612
  end
682
613
 
@@ -686,11 +617,7 @@ module PulpRpmClient
686
617
  # Custom attribute writer method with validation
687
618
  # @param [Object] arch Value to be assigned
688
619
  def arch=(arch)
689
- if arch.nil?
690
- fail ArgumentError, 'arch cannot be nil'
691
- end
692
-
693
- if arch.to_s.length < 1
620
+ if !arch.nil? && arch.to_s.length < 1
694
621
  fail ArgumentError, 'invalid value for "arch", the character length must be great than or equal to 1.'
695
622
  end
696
623
 
@@ -700,11 +627,7 @@ module PulpRpmClient
700
627
  # Custom attribute writer method with validation
701
628
  # @param [Object] pkg_id Value to be assigned
702
629
  def pkg_id=(pkg_id)
703
- if pkg_id.nil?
704
- fail ArgumentError, 'pkg_id cannot be nil'
705
- end
706
-
707
- if pkg_id.to_s.length < 1
630
+ if !pkg_id.nil? && pkg_id.to_s.length < 1
708
631
  fail ArgumentError, 'invalid value for "pkg_id", the character length must be great than or equal to 1.'
709
632
  end
710
633
 
@@ -714,11 +637,7 @@ module PulpRpmClient
714
637
  # Custom attribute writer method with validation
715
638
  # @param [Object] checksum_type Value to be assigned
716
639
  def checksum_type=(checksum_type)
717
- if checksum_type.nil?
718
- fail ArgumentError, 'checksum_type cannot be nil'
719
- end
720
-
721
- if checksum_type.to_s.length < 1
640
+ if !checksum_type.nil? && checksum_type.to_s.length < 1
722
641
  fail ArgumentError, 'invalid value for "checksum_type", the character length must be great than or equal to 1.'
723
642
  end
724
643
 
@@ -828,11 +747,7 @@ module PulpRpmClient
828
747
  # Custom attribute writer method with validation
829
748
  # @param [Object] location_href Value to be assigned
830
749
  def location_href=(location_href)
831
- if location_href.nil?
832
- fail ArgumentError, 'location_href cannot be nil'
833
- end
834
-
835
- if location_href.to_s.length < 1
750
+ if !location_href.nil? && location_href.to_s.length < 1
836
751
  fail ArgumentError, 'invalid value for "location_href", the character length must be great than or equal to 1.'
837
752
  end
838
753
 
@@ -844,11 +759,13 @@ module PulpRpmClient
844
759
  def ==(o)
845
760
  return true if self.equal?(o)
846
761
  self.class == o.class &&
847
- relative_path == o.relative_path &&
848
762
  _href == o._href &&
849
763
  _created == o._created &&
850
- artifact == o.artifact &&
851
764
  _type == o._type &&
765
+ artifact == o.artifact &&
766
+ relative_path == o.relative_path &&
767
+ file == o.file &&
768
+ repository == o.repository &&
852
769
  name == o.name &&
853
770
  epoch == o.epoch &&
854
771
  version == o.version &&
@@ -896,7 +813,7 @@ module PulpRpmClient
896
813
  # Calculates hash code according to all attributes.
897
814
  # @return [Integer] Hash code
898
815
  def hash
899
- [relative_path, _href, _created, artifact, _type, name, epoch, version, release, arch, pkg_id, checksum_type, summary, description, url, changelogs, files, requires, provides, conflicts, obsoletes, suggests, enhances, recommends, supplements, location_base, location_href, rpm_buildhost, rpm_group, rpm_license, rpm_packager, rpm_sourcerpm, rpm_vendor, rpm_header_start, rpm_header_end, is_modular, size_archive, size_installed, size_package, time_build, time_file].hash
816
+ [_href, _created, _type, artifact, relative_path, file, repository, name, epoch, version, release, arch, pkg_id, checksum_type, summary, description, url, changelogs, files, requires, provides, conflicts, obsoletes, suggests, enhances, recommends, supplements, location_base, location_href, rpm_buildhost, rpm_group, rpm_license, rpm_packager, rpm_sourcerpm, rpm_vendor, rpm_header_start, rpm_header_end, is_modular, size_archive, size_installed, size_package, time_build, time_file].hash
900
817
  end
901
818
 
902
819
  # Builds the object from hash
@@ -27,6 +27,12 @@ module PulpRpmClient
27
27
  # Path where the artifact is located relative to distributions base_path
28
28
  attr_accessor :relative_path
29
29
 
30
+ # An uploaded file that should be turned into the artifact of the content unit.
31
+ attr_accessor :file
32
+
33
+ # A URI of a repository the new content unit should be associated with.
34
+ attr_accessor :repository
35
+
30
36
  # Metadata type.
31
37
  attr_accessor :data_type
32
38
 
@@ -44,6 +50,8 @@ module PulpRpmClient
44
50
  :'_type' => :'_type',
45
51
  :'artifact' => :'artifact',
46
52
  :'relative_path' => :'relative_path',
53
+ :'file' => :'file',
54
+ :'repository' => :'repository',
47
55
  :'data_type' => :'data_type',
48
56
  :'checksum_type' => :'checksum_type',
49
57
  :'checksum' => :'checksum'
@@ -58,6 +66,8 @@ module PulpRpmClient
58
66
  :'_type' => :'String',
59
67
  :'artifact' => :'String',
60
68
  :'relative_path' => :'String',
69
+ :'file' => :'String',
70
+ :'repository' => :'String',
61
71
  :'data_type' => :'String',
62
72
  :'checksum_type' => :'String',
63
73
  :'checksum' => :'String'
@@ -99,6 +109,14 @@ module PulpRpmClient
99
109
  self.relative_path = attributes[:'relative_path']
100
110
  end
101
111
 
112
+ if attributes.key?(:'file')
113
+ self.file = attributes[:'file']
114
+ end
115
+
116
+ if attributes.key?(:'repository')
117
+ self.repository = attributes[:'repository']
118
+ end
119
+
102
120
  if attributes.key?(:'data_type')
103
121
  self.data_type = attributes[:'data_type']
104
122
  end
@@ -120,10 +138,6 @@ module PulpRpmClient
120
138
  invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
121
139
  end
122
140
 
123
- if @artifact.nil?
124
- invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
125
- end
126
-
127
141
  if @relative_path.nil?
128
142
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
129
143
  end
@@ -163,7 +177,6 @@ module PulpRpmClient
163
177
  # @return true if the model is valid
164
178
  def valid?
165
179
  return false if !@_type.nil? && @_type.to_s.length < 1
166
- return false if @artifact.nil?
167
180
  return false if @relative_path.nil?
168
181
  return false if @relative_path.to_s.length < 1
169
182
  return false if @data_type.nil?
@@ -251,6 +264,8 @@ module PulpRpmClient
251
264
  _type == o._type &&
252
265
  artifact == o.artifact &&
253
266
  relative_path == o.relative_path &&
267
+ file == o.file &&
268
+ repository == o.repository &&
254
269
  data_type == o.data_type &&
255
270
  checksum_type == o.checksum_type &&
256
271
  checksum == o.checksum
@@ -265,7 +280,7 @@ module PulpRpmClient
265
280
  # Calculates hash code according to all attributes.
266
281
  # @return [Integer] Hash code
267
282
  def hash
268
- [_href, _created, _type, artifact, relative_path, data_type, checksum_type, checksum].hash
283
+ [_href, _created, _type, artifact, relative_path, file, repository, data_type, checksum_type, checksum].hash
269
284
  end
270
285
 
271
286
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.1.3-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.0.0b5'
14
+ VERSION = '3.0.0b6'
15
15
  end
@@ -30,6 +30,10 @@ require 'pulp_rpm_client/models/inline_response2003'
30
30
  require 'pulp_rpm_client/models/inline_response2004'
31
31
  require 'pulp_rpm_client/models/inline_response2005'
32
32
  require 'pulp_rpm_client/models/inline_response2006'
33
+ require 'pulp_rpm_client/models/inline_response2007'
34
+ require 'pulp_rpm_client/models/inline_response2008'
35
+ require 'pulp_rpm_client/models/modulemd'
36
+ require 'pulp_rpm_client/models/modulemd_defaults'
33
37
  require 'pulp_rpm_client/models/package'
34
38
  require 'pulp_rpm_client/models/repo_metadata_file'
35
39
  require 'pulp_rpm_client/models/repository_sync_url'
@@ -41,6 +45,8 @@ require 'pulp_rpm_client/models/variant'
41
45
 
42
46
  # APIs
43
47
  require 'pulp_rpm_client/api/content_advisories_api'
48
+ require 'pulp_rpm_client/api/content_modulemd_api'
49
+ require 'pulp_rpm_client/api/content_modulemd_defaults_api'
44
50
  require 'pulp_rpm_client/api/content_packages_api'
45
51
  require 'pulp_rpm_client/api/distribution_trees_distribution_trees_api'
46
52
  require 'pulp_rpm_client/api/distributions_rpm_api'
@@ -48,7 +54,6 @@ require 'pulp_rpm_client/api/publications_rpm_api'
48
54
  require 'pulp_rpm_client/api/remotes_rpm_api'
49
55
  require 'pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api'
50
56
  require 'pulp_rpm_client/api/rpm_copy_api'
51
- require 'pulp_rpm_client/api/rpm_upload_api'
52
57
 
53
58
  module PulpRpmClient
54
59
  class << self
@@ -34,10 +34,10 @@ describe 'ContentAdvisoriesApi' do
34
34
 
35
35
  # unit tests for create
36
36
  # Create an update record
37
- # 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.
37
+ # Trigger an asynchronous task to create content,optionally create new repository version.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [UpdateRecord]
40
+ # @return [AsyncOperationResponse]
41
41
  describe 'create test' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,88 @@
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 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpRpmClient::ContentModulemdApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ContentModulemdApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpRpmClient::ContentModulemdApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ContentModulemdApi' do
30
+ it 'should create an instance of ContentModulemdApi' do
31
+ expect(@api_instance).to be_instance_of(PulpRpmClient::ContentModulemdApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create
36
+ # Create a modulemd
37
+ # Trigger an asynchronous task to create content,optionally create new repository version.
38
+ # @param relative_path Path where the artifact is located relative to distributions base_path
39
+ # @param name Modulemd name.
40
+ # @param stream Stream name.
41
+ # @param version Modulemd version.
42
+ # @param context Modulemd context.
43
+ # @param arch Modulemd architecture.
44
+ # @param artifacts Modulemd artifacts.
45
+ # @param dependencies Modulemd dependencies.
46
+ # @param [Hash] opts the optional parameters
47
+ # @option opts [String] :artifact Artifact file representing the physical content
48
+ # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
49
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
50
+ # @option opts [Array<String>] :packages Modulemd artifacts&#39; packages.
51
+ # @return [AsyncOperationResponse]
52
+ describe 'create test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for list
59
+ # List modulemds
60
+ # ViewSet for Modulemd.
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [String] :repository_version Repository Version referenced by HREF
63
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
64
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
65
+ # @option opts [Integer] :limit Number of results to return per page.
66
+ # @option opts [Integer] :offset The initial index from which to return the results.
67
+ # @option opts [String] :fields A list of fields to include in the response.
68
+ # @return [InlineResponse2002]
69
+ describe 'list test' do
70
+ it 'should work' do
71
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
72
+ end
73
+ end
74
+
75
+ # unit tests for read
76
+ # Inspect a modulemd
77
+ # ViewSet for Modulemd.
78
+ # @param modulemd_href URI of Modulemd. e.g.: /pulp/api/v3/content/rpm/modulemd/1/
79
+ # @param [Hash] opts the optional parameters
80
+ # @option opts [String] :fields A list of fields to include in the response.
81
+ # @return [Modulemd]
82
+ describe 'read test' do
83
+ it 'should work' do
84
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
+ end
86
+ end
87
+
88
+ end