pulp_rpm_client 3.5.1 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +73 -55
  3. data/docs/{Addon.md → AddonResponse.md} +2 -2
  4. data/docs/{Artifact.md → ArtifactResponse.md} +3 -3
  5. data/docs/{Checksum.md → ChecksumResponse.md} +2 -2
  6. data/docs/ContentAdvisoriesApi.md +44 -44
  7. data/docs/ContentDistributionTreesApi.md +25 -25
  8. data/docs/ContentModulemdDefaultsApi.md +32 -32
  9. data/docs/ContentModulemdsApi.md +34 -34
  10. data/docs/ContentPackagecategoriesApi.md +25 -25
  11. data/docs/ContentPackageenvironmentsApi.md +25 -25
  12. data/docs/ContentPackagegroupsApi.md +25 -25
  13. data/docs/ContentPackagelangpacksApi.md +25 -25
  14. data/docs/ContentPackagesApi.md +64 -64
  15. data/docs/ContentRepoMetadataFilesApi.md +25 -25
  16. data/docs/ContentSummary.md +3 -3
  17. data/docs/ContentSummaryResponse.md +21 -0
  18. data/docs/DistributionsRpmApi.md +108 -60
  19. data/docs/{Image.md → ImageResponse.md} +3 -3
  20. data/docs/InlineResponse200.md +3 -3
  21. data/docs/InlineResponse2001.md +3 -3
  22. data/docs/InlineResponse20010.md +3 -3
  23. data/docs/InlineResponse20011.md +3 -3
  24. data/docs/InlineResponse20012.md +3 -3
  25. data/docs/InlineResponse20013.md +3 -3
  26. data/docs/InlineResponse20014.md +3 -3
  27. data/docs/InlineResponse2002.md +3 -3
  28. data/docs/InlineResponse2003.md +3 -3
  29. data/docs/InlineResponse2004.md +3 -3
  30. data/docs/InlineResponse2005.md +3 -3
  31. data/docs/InlineResponse2006.md +3 -3
  32. data/docs/InlineResponse2007.md +3 -3
  33. data/docs/InlineResponse2008.md +3 -3
  34. data/docs/InlineResponse2009.md +3 -3
  35. data/docs/MetadataChecksumTypeEnum.md +16 -0
  36. data/docs/PackageChecksumTypeEnum.md +16 -0
  37. data/docs/PatchedrpmRpmDistribution.md +23 -0
  38. data/docs/PatchedrpmRpmRemote.md +39 -0
  39. data/docs/PatchedrpmRpmRepository.md +25 -0
  40. data/docs/PolicyEnum.md +16 -0
  41. data/docs/PublicationsRpmApi.md +40 -40
  42. data/docs/RemotesRpmApi.md +125 -65
  43. data/docs/RepositoriesRpmApi.md +97 -73
  44. data/docs/RepositoriesRpmVersionsApi.md +94 -62
  45. data/docs/RepositoryAddRemoveContent.md +2 -2
  46. data/docs/RepositoryVersion.md +1 -9
  47. data/docs/RepositoryVersionResponse.md +25 -0
  48. data/docs/RpmCopyApi.md +10 -10
  49. data/docs/{RpmDistributionTree.md → RpmDistributionTreeResponse.md} +6 -6
  50. data/docs/RpmModulemd.md +8 -8
  51. data/docs/RpmModulemdDefaults.md +8 -8
  52. data/docs/RpmModulemdDefaultsResponse.md +29 -0
  53. data/docs/RpmModulemdResponse.md +39 -0
  54. data/docs/RpmPackage.md +7 -79
  55. data/docs/{RpmPackageCategory.md → RpmPackageCategoryResponse.md} +2 -2
  56. data/docs/{RpmPackageEnvironment.md → RpmPackageEnvironmentResponse.md} +2 -2
  57. data/docs/{RpmPackageGroup.md → RpmPackageGroupResponse.md} +2 -2
  58. data/docs/{RpmPackageLangpacks.md → RpmPackageLangpacksResponse.md} +2 -2
  59. data/docs/RpmPackageResponse.md +95 -0
  60. data/docs/{RpmRepoMetadataFile.md → RpmRepoMetadataFileResponse.md} +2 -2
  61. data/docs/RpmRepositorySyncURL.md +1 -1
  62. data/docs/RpmRpmDistribution.md +1 -7
  63. data/docs/RpmRpmDistributionResponse.md +29 -0
  64. data/docs/RpmRpmPublication.md +3 -7
  65. data/docs/RpmRpmPublicationResponse.md +27 -0
  66. data/docs/RpmRpmRemote.md +4 -10
  67. data/docs/RpmRpmRemoteResponse.md +45 -0
  68. data/docs/RpmRpmRepository.md +3 -9
  69. data/docs/RpmRpmRepositoryResponse.md +33 -0
  70. data/docs/RpmUpdateCollection.md +1 -3
  71. data/docs/RpmUpdateCollectionResponse.md +23 -0
  72. data/docs/RpmUpdateRecord.md +4 -40
  73. data/docs/RpmUpdateRecordResponse.md +55 -0
  74. data/docs/{Variant.md → VariantResponse.md} +2 -2
  75. data/lib/pulp_rpm_client/api/content_advisories_api.rb +60 -60
  76. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +36 -36
  77. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +42 -54
  78. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +44 -76
  79. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +36 -36
  80. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +36 -36
  81. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +36 -36
  82. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +36 -36
  83. data/lib/pulp_rpm_client/api/content_packages_api.rb +92 -92
  84. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +36 -36
  85. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +153 -90
  86. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +59 -59
  87. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +181 -100
  88. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +145 -118
  89. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +137 -92
  90. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +15 -15
  91. data/lib/pulp_rpm_client/api_client.rb +2 -2
  92. data/lib/pulp_rpm_client/api_error.rb +2 -2
  93. data/lib/pulp_rpm_client/configuration.rb +3 -3
  94. data/lib/pulp_rpm_client/models/{addon.rb → addon_response.rb} +6 -100
  95. data/lib/pulp_rpm_client/models/{artifact.rb → artifact_response.rb} +9 -93
  96. data/lib/pulp_rpm_client/models/async_operation_response.rb +3 -2
  97. data/lib/pulp_rpm_client/models/{checksum.rb → checksum_response.rb} +6 -43
  98. data/lib/pulp_rpm_client/models/content_summary.rb +9 -15
  99. data/lib/pulp_rpm_client/models/content_summary_response.rb +240 -0
  100. data/lib/pulp_rpm_client/models/copy.rb +3 -2
  101. data/lib/pulp_rpm_client/models/{image.rb → image_response.rb} +7 -63
  102. data/lib/pulp_rpm_client/models/inline_response200.rb +3 -13
  103. data/lib/pulp_rpm_client/models/inline_response2001.rb +3 -13
  104. data/lib/pulp_rpm_client/models/inline_response20010.rb +3 -13
  105. data/lib/pulp_rpm_client/models/inline_response20011.rb +3 -13
  106. data/lib/pulp_rpm_client/models/inline_response20012.rb +3 -13
  107. data/lib/pulp_rpm_client/models/inline_response20013.rb +3 -13
  108. data/lib/pulp_rpm_client/models/inline_response20014.rb +3 -13
  109. data/lib/pulp_rpm_client/models/inline_response2002.rb +3 -13
  110. data/lib/pulp_rpm_client/models/inline_response2003.rb +3 -13
  111. data/lib/pulp_rpm_client/models/inline_response2004.rb +3 -13
  112. data/lib/pulp_rpm_client/models/inline_response2005.rb +3 -13
  113. data/lib/pulp_rpm_client/models/inline_response2006.rb +3 -13
  114. data/lib/pulp_rpm_client/models/inline_response2007.rb +3 -13
  115. data/lib/pulp_rpm_client/models/inline_response2008.rb +3 -13
  116. data/lib/pulp_rpm_client/models/inline_response2009.rb +3 -13
  117. data/lib/pulp_rpm_client/models/metadata_checksum_type_enum.rb +41 -0
  118. data/lib/pulp_rpm_client/models/package_checksum_type_enum.rb +41 -0
  119. data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +240 -0
  120. data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +340 -0
  121. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +265 -0
  122. data/lib/pulp_rpm_client/models/policy_enum.rb +37 -0
  123. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +5 -4
  124. data/lib/pulp_rpm_client/models/repository_version.rb +7 -43
  125. data/lib/pulp_rpm_client/models/repository_version_response.rb +246 -0
  126. data/lib/pulp_rpm_client/models/{rpm_distribution_tree.rb → rpm_distribution_tree_response.rb} +17 -234
  127. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +42 -153
  128. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +40 -86
  129. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +282 -0
  130. data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +346 -0
  131. data/lib/pulp_rpm_client/models/rpm_package.rb +28 -501
  132. data/lib/pulp_rpm_client/models/{rpm_package_category.rb → rpm_package_category_response.rb} +10 -63
  133. data/lib/pulp_rpm_client/models/{rpm_package_environment.rb → rpm_package_environment_response.rb} +11 -68
  134. data/lib/pulp_rpm_client/models/{rpm_package_group.rb → rpm_package_group_response.rb} +10 -63
  135. data/lib/pulp_rpm_client/models/{rpm_package_langpacks.rb → rpm_package_langpacks_response.rb} +8 -34
  136. data/lib/pulp_rpm_client/models/rpm_package_response.rb +597 -0
  137. data/lib/pulp_rpm_client/models/{rpm_repo_metadata_file.rb → rpm_repo_metadata_file_response.rb} +6 -96
  138. data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +4 -30
  139. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +4 -85
  140. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +279 -0
  141. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +6 -74
  142. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +256 -0
  143. data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +7 -214
  144. data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +379 -0
  145. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +14 -74
  146. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +307 -0
  147. data/lib/pulp_rpm_client/models/rpm_update_collection.rb +10 -34
  148. data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +243 -0
  149. data/lib/pulp_rpm_client/models/rpm_update_record.rb +18 -245
  150. data/lib/pulp_rpm_client/models/rpm_update_record_response.rb +401 -0
  151. data/lib/pulp_rpm_client/models/{variant.rb → variant_response.rb} +6 -195
  152. data/lib/pulp_rpm_client/version.rb +3 -3
  153. data/lib/pulp_rpm_client.rb +30 -13
  154. data/pulp_rpm_client.gemspec +4 -4
  155. data/spec/api/content_advisories_api_spec.rb +21 -21
  156. data/spec/api/content_distribution_trees_api_spec.rb +9 -9
  157. data/spec/api/content_modulemd_defaults_api_spec.rb +13 -13
  158. data/spec/api/content_modulemds_api_spec.rb +13 -13
  159. data/spec/api/content_packagecategories_api_spec.rb +9 -9
  160. data/spec/api/content_packageenvironments_api_spec.rb +9 -9
  161. data/spec/api/content_packagegroups_api_spec.rb +9 -9
  162. data/spec/api/content_packagelangpacks_api_spec.rb +9 -9
  163. data/spec/api/content_packages_api_spec.rb +31 -31
  164. data/spec/api/content_repo_metadata_files_api_spec.rb +9 -9
  165. data/spec/api/distributions_rpm_api_spec.rb +39 -18
  166. data/spec/api/publications_rpm_api_spec.rb +14 -14
  167. data/spec/api/remotes_rpm_api_spec.rb +48 -21
  168. data/spec/api/repositories_rpm_api_spec.rb +28 -19
  169. data/spec/api/repositories_rpm_versions_api_spec.rb +38 -23
  170. data/spec/api/rpm_copy_api_spec.rb +5 -5
  171. data/spec/api_client_spec.rb +2 -2
  172. data/spec/configuration_spec.rb +2 -2
  173. data/spec/models/{addon_spec.rb → addon_response_spec.rb} +8 -8
  174. data/spec/models/{artifact_spec.rb → artifact_response_spec.rb} +8 -8
  175. data/spec/models/async_operation_response_spec.rb +2 -2
  176. data/spec/models/{checksum_spec.rb → checksum_response_spec.rb} +8 -8
  177. data/spec/models/content_summary_response_spec.rb +53 -0
  178. data/spec/models/content_summary_spec.rb +2 -2
  179. data/spec/models/copy_spec.rb +2 -2
  180. data/spec/models/{image_spec.rb → image_response_spec.rb} +8 -8
  181. data/spec/models/inline_response20010_spec.rb +2 -2
  182. data/spec/models/inline_response20011_spec.rb +2 -2
  183. data/spec/models/inline_response20012_spec.rb +2 -2
  184. data/spec/models/inline_response20013_spec.rb +2 -2
  185. data/spec/models/inline_response20014_spec.rb +2 -2
  186. data/spec/models/inline_response2001_spec.rb +2 -2
  187. data/spec/models/inline_response2002_spec.rb +2 -2
  188. data/spec/models/inline_response2003_spec.rb +2 -2
  189. data/spec/models/inline_response2004_spec.rb +2 -2
  190. data/spec/models/inline_response2005_spec.rb +2 -2
  191. data/spec/models/inline_response2006_spec.rb +2 -2
  192. data/spec/models/inline_response2007_spec.rb +2 -2
  193. data/spec/models/inline_response2008_spec.rb +2 -2
  194. data/spec/models/inline_response2009_spec.rb +2 -2
  195. data/spec/models/inline_response200_spec.rb +2 -2
  196. data/spec/models/metadata_checksum_type_enum_spec.rb +35 -0
  197. data/spec/models/package_checksum_type_enum_spec.rb +35 -0
  198. data/spec/models/patchedrpm_rpm_distribution_spec.rb +59 -0
  199. data/spec/models/patchedrpm_rpm_remote_spec.rb +107 -0
  200. data/spec/models/patchedrpm_rpm_repository_spec.rb +65 -0
  201. data/spec/models/policy_enum_spec.rb +35 -0
  202. data/spec/models/repository_add_remove_content_spec.rb +2 -2
  203. data/spec/models/repository_version_response_spec.rb +65 -0
  204. data/spec/models/repository_version_spec.rb +2 -26
  205. data/spec/models/{rpm_distribution_tree_spec.rb → rpm_distribution_tree_response_spec.rb} +8 -8
  206. data/spec/models/rpm_modulemd_defaults_response_spec.rb +77 -0
  207. data/spec/models/rpm_modulemd_defaults_spec.rb +9 -9
  208. data/spec/models/rpm_modulemd_response_spec.rb +107 -0
  209. data/spec/models/rpm_modulemd_spec.rb +11 -11
  210. data/spec/models/{rpm_package_category_spec.rb → rpm_package_category_response_spec.rb} +8 -8
  211. data/spec/models/{rpm_package_environment_spec.rb → rpm_package_environment_response_spec.rb} +8 -8
  212. data/spec/models/{rpm_package_group_spec.rb → rpm_package_group_response_spec.rb} +8 -8
  213. data/spec/models/{rpm_package_langpacks_spec.rb → rpm_package_langpacks_response_spec.rb} +8 -8
  214. data/spec/models/rpm_package_response_spec.rb +275 -0
  215. data/spec/models/rpm_package_spec.rb +5 -221
  216. data/spec/models/{rpm_repo_metadata_file_spec.rb → rpm_repo_metadata_file_response_spec.rb} +8 -8
  217. data/spec/models/rpm_repository_sync_url_spec.rb +2 -6
  218. data/spec/models/rpm_rpm_distribution_response_spec.rb +77 -0
  219. data/spec/models/rpm_rpm_distribution_spec.rb +2 -20
  220. data/spec/models/rpm_rpm_publication_response_spec.rb +71 -0
  221. data/spec/models/rpm_rpm_publication_spec.rb +2 -22
  222. data/spec/models/rpm_rpm_remote_response_spec.rb +125 -0
  223. data/spec/models/rpm_rpm_remote_spec.rb +2 -24
  224. data/spec/models/rpm_rpm_repository_response_spec.rb +89 -0
  225. data/spec/models/rpm_rpm_repository_spec.rb +5 -23
  226. data/spec/models/rpm_update_collection_response_spec.rb +59 -0
  227. data/spec/models/rpm_update_collection_spec.rb +2 -8
  228. data/spec/models/rpm_update_record_response_spec.rb +155 -0
  229. data/spec/models/rpm_update_record_spec.rb +4 -112
  230. data/spec/models/{variant_spec.rb → variant_response_spec.rb} +8 -8
  231. data/spec/spec_helper.rb +2 -2
  232. metadata +116 -48
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,215 +13,37 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
+ # A Serializer for Package. Add serializers for the new fields defined in Package and add those fields to the Meta class keeping fields from the parent class as well. Provide help_text.
16
17
  class RpmPackage
17
- attr_accessor :pulp_href
18
-
19
- # Timestamp of creation.
20
- attr_accessor :pulp_created
21
-
22
18
  # Artifact file representing the physical content
23
19
  attr_accessor :artifact
24
20
 
25
- # Name of the package
26
- attr_accessor :name
27
-
28
- # The package's epoch
29
- attr_accessor :epoch
30
-
31
- # The version of the package. For example, '2.8.0'
32
- attr_accessor :version
33
-
34
- # The release of a particular version of the package. e.g. '1.el7' or '3.f24'
35
- attr_accessor :release
36
-
37
- # The target architecture for a package.For example, 'x86_64', 'i686', or 'noarch'
38
- attr_accessor :arch
39
-
40
- # Checksum of the package file
41
- attr_accessor :pkg_id
42
-
43
- # Type of checksum, e.g. 'sha256', 'md5'
44
- attr_accessor :checksum_type
45
-
46
- # Short description of the packaged software
47
- attr_accessor :summary
48
-
49
- # In-depth description of the packaged software
50
- attr_accessor :description
51
-
52
- # URL with more information about the packaged software
53
- attr_accessor :url
54
-
55
- # Changelogs that package contains
56
- attr_accessor :changelogs
57
-
58
- # Files that package contains
59
- attr_accessor :files
60
-
61
- # Capabilities the package requires
62
- attr_accessor :requires
63
-
64
- # Capabilities the package provides
65
- attr_accessor :provides
66
-
67
- # Capabilities the package conflicts
68
- attr_accessor :conflicts
69
-
70
- # Capabilities the package obsoletes
71
- attr_accessor :obsoletes
72
-
73
- # Capabilities the package suggests
74
- attr_accessor :suggests
75
-
76
- # Capabilities the package enhances
77
- attr_accessor :enhances
21
+ # Path where the artifact is located relative to distributions base_path
22
+ attr_accessor :relative_path
78
23
 
79
- # Capabilities the package recommends
80
- attr_accessor :recommends
24
+ # An uploaded file that may be turned into the artifact of the content unit.
25
+ attr_accessor :file
81
26
 
82
- # The SHA-256 checksum if available.
83
- attr_accessor :sha256
84
-
85
- # Capabilities the package supplements
86
- attr_accessor :supplements
87
-
88
- # Base location of this package
89
- attr_accessor :location_base
90
-
91
- # Relative location of package to the repodata
92
- attr_accessor :location_href
93
-
94
- # Hostname of the system that built the package
95
- attr_accessor :rpm_buildhost
96
-
97
- # RPM group (See: http://fedoraproject.org/wiki/RPMGroups)
98
- attr_accessor :rpm_group
99
-
100
- # License term applicable to the package software (GPLv2, etc.)
101
- attr_accessor :rpm_license
102
-
103
- # Person or persons responsible for creating the package
104
- attr_accessor :rpm_packager
105
-
106
- # Name of the source package (srpm) the package was built from
107
- attr_accessor :rpm_sourcerpm
108
-
109
- # Name of the organization that produced the package
110
- attr_accessor :rpm_vendor
111
-
112
- # First byte of the header
113
- attr_accessor :rpm_header_start
114
-
115
- # Last byte of the header
116
- attr_accessor :rpm_header_end
117
-
118
- # Flag to identify if the package is modular
119
- attr_accessor :is_modular
120
-
121
- # Size, in bytes, of the archive portion of the original package file
122
- attr_accessor :size_archive
123
-
124
- # Total size, in bytes, of every file installed by this package
125
- attr_accessor :size_installed
126
-
127
- # Size, in bytes, of the package
128
- attr_accessor :size_package
129
-
130
- # Time the package was built in seconds since the epoch
131
- attr_accessor :time_build
132
-
133
- # The 'file' time attribute in the primary XML - file mtime in seconds since the epoch.
134
- attr_accessor :time_file
27
+ # A URI of a repository the new content unit should be associated with.
28
+ attr_accessor :repository
135
29
 
136
30
  # Attribute mapping from ruby-style variable name to JSON key.
137
31
  def self.attribute_map
138
32
  {
139
- :'pulp_href' => :'pulp_href',
140
- :'pulp_created' => :'pulp_created',
141
33
  :'artifact' => :'artifact',
142
- :'name' => :'name',
143
- :'epoch' => :'epoch',
144
- :'version' => :'version',
145
- :'release' => :'release',
146
- :'arch' => :'arch',
147
- :'pkg_id' => :'pkgId',
148
- :'checksum_type' => :'checksum_type',
149
- :'summary' => :'summary',
150
- :'description' => :'description',
151
- :'url' => :'url',
152
- :'changelogs' => :'changelogs',
153
- :'files' => :'files',
154
- :'requires' => :'requires',
155
- :'provides' => :'provides',
156
- :'conflicts' => :'conflicts',
157
- :'obsoletes' => :'obsoletes',
158
- :'suggests' => :'suggests',
159
- :'enhances' => :'enhances',
160
- :'recommends' => :'recommends',
161
- :'sha256' => :'sha256',
162
- :'supplements' => :'supplements',
163
- :'location_base' => :'location_base',
164
- :'location_href' => :'location_href',
165
- :'rpm_buildhost' => :'rpm_buildhost',
166
- :'rpm_group' => :'rpm_group',
167
- :'rpm_license' => :'rpm_license',
168
- :'rpm_packager' => :'rpm_packager',
169
- :'rpm_sourcerpm' => :'rpm_sourcerpm',
170
- :'rpm_vendor' => :'rpm_vendor',
171
- :'rpm_header_start' => :'rpm_header_start',
172
- :'rpm_header_end' => :'rpm_header_end',
173
- :'is_modular' => :'is_modular',
174
- :'size_archive' => :'size_archive',
175
- :'size_installed' => :'size_installed',
176
- :'size_package' => :'size_package',
177
- :'time_build' => :'time_build',
178
- :'time_file' => :'time_file'
34
+ :'relative_path' => :'relative_path',
35
+ :'file' => :'file',
36
+ :'repository' => :'repository'
179
37
  }
180
38
  end
181
39
 
182
40
  # Attribute type mapping.
183
41
  def self.openapi_types
184
42
  {
185
- :'pulp_href' => :'String',
186
- :'pulp_created' => :'DateTime',
187
43
  :'artifact' => :'String',
188
- :'name' => :'String',
189
- :'epoch' => :'String',
190
- :'version' => :'String',
191
- :'release' => :'String',
192
- :'arch' => :'String',
193
- :'pkg_id' => :'String',
194
- :'checksum_type' => :'String',
195
- :'summary' => :'String',
196
- :'description' => :'String',
197
- :'url' => :'String',
198
- :'changelogs' => :'Object',
199
- :'files' => :'Object',
200
- :'requires' => :'Object',
201
- :'provides' => :'Object',
202
- :'conflicts' => :'Object',
203
- :'obsoletes' => :'Object',
204
- :'suggests' => :'Object',
205
- :'enhances' => :'Object',
206
- :'recommends' => :'Object',
207
- :'sha256' => :'String',
208
- :'supplements' => :'Object',
209
- :'location_base' => :'String',
210
- :'location_href' => :'String',
211
- :'rpm_buildhost' => :'String',
212
- :'rpm_group' => :'String',
213
- :'rpm_license' => :'String',
214
- :'rpm_packager' => :'String',
215
- :'rpm_sourcerpm' => :'String',
216
- :'rpm_vendor' => :'String',
217
- :'rpm_header_start' => :'Integer',
218
- :'rpm_header_end' => :'Integer',
219
- :'is_modular' => :'Boolean',
220
- :'size_archive' => :'Integer',
221
- :'size_installed' => :'Integer',
222
- :'size_package' => :'Integer',
223
- :'time_build' => :'Integer',
224
- :'time_file' => :'Integer'
44
+ :'relative_path' => :'String',
45
+ :'file' => :'File',
46
+ :'repository' => :'String'
225
47
  }
226
48
  end
227
49
 
@@ -246,164 +68,20 @@ module PulpRpmClient
246
68
  h[k.to_sym] = v
247
69
  }
248
70
 
249
- if attributes.key?(:'pulp_href')
250
- self.pulp_href = attributes[:'pulp_href']
251
- end
252
-
253
- if attributes.key?(:'pulp_created')
254
- self.pulp_created = attributes[:'pulp_created']
255
- end
256
-
257
71
  if attributes.key?(:'artifact')
258
72
  self.artifact = attributes[:'artifact']
259
73
  end
260
74
 
261
- if attributes.key?(:'name')
262
- self.name = attributes[:'name']
263
- end
264
-
265
- if attributes.key?(:'epoch')
266
- self.epoch = attributes[:'epoch']
267
- end
268
-
269
- if attributes.key?(:'version')
270
- self.version = attributes[:'version']
271
- end
272
-
273
- if attributes.key?(:'release')
274
- self.release = attributes[:'release']
275
- end
276
-
277
- if attributes.key?(:'arch')
278
- self.arch = attributes[:'arch']
279
- end
280
-
281
- if attributes.key?(:'pkg_id')
282
- self.pkg_id = attributes[:'pkg_id']
283
- end
284
-
285
- if attributes.key?(:'checksum_type')
286
- self.checksum_type = attributes[:'checksum_type']
287
- end
288
-
289
- if attributes.key?(:'summary')
290
- self.summary = attributes[:'summary']
291
- end
292
-
293
- if attributes.key?(:'description')
294
- self.description = attributes[:'description']
295
- end
296
-
297
- if attributes.key?(:'url')
298
- self.url = attributes[:'url']
75
+ if attributes.key?(:'relative_path')
76
+ self.relative_path = attributes[:'relative_path']
299
77
  end
300
78
 
301
- if attributes.key?(:'changelogs')
302
- self.changelogs = attributes[:'changelogs']
79
+ if attributes.key?(:'file')
80
+ self.file = attributes[:'file']
303
81
  end
304
82
 
305
- if attributes.key?(:'files')
306
- self.files = attributes[:'files']
307
- end
308
-
309
- if attributes.key?(:'requires')
310
- self.requires = attributes[:'requires']
311
- end
312
-
313
- if attributes.key?(:'provides')
314
- self.provides = attributes[:'provides']
315
- end
316
-
317
- if attributes.key?(:'conflicts')
318
- self.conflicts = attributes[:'conflicts']
319
- end
320
-
321
- if attributes.key?(:'obsoletes')
322
- self.obsoletes = attributes[:'obsoletes']
323
- end
324
-
325
- if attributes.key?(:'suggests')
326
- self.suggests = attributes[:'suggests']
327
- end
328
-
329
- if attributes.key?(:'enhances')
330
- self.enhances = attributes[:'enhances']
331
- end
332
-
333
- if attributes.key?(:'recommends')
334
- self.recommends = attributes[:'recommends']
335
- end
336
-
337
- if attributes.key?(:'sha256')
338
- self.sha256 = attributes[:'sha256']
339
- end
340
-
341
- if attributes.key?(:'supplements')
342
- self.supplements = attributes[:'supplements']
343
- end
344
-
345
- if attributes.key?(:'location_base')
346
- self.location_base = attributes[:'location_base']
347
- end
348
-
349
- if attributes.key?(:'location_href')
350
- self.location_href = attributes[:'location_href']
351
- end
352
-
353
- if attributes.key?(:'rpm_buildhost')
354
- self.rpm_buildhost = attributes[:'rpm_buildhost']
355
- end
356
-
357
- if attributes.key?(:'rpm_group')
358
- self.rpm_group = attributes[:'rpm_group']
359
- end
360
-
361
- if attributes.key?(:'rpm_license')
362
- self.rpm_license = attributes[:'rpm_license']
363
- end
364
-
365
- if attributes.key?(:'rpm_packager')
366
- self.rpm_packager = attributes[:'rpm_packager']
367
- end
368
-
369
- if attributes.key?(:'rpm_sourcerpm')
370
- self.rpm_sourcerpm = attributes[:'rpm_sourcerpm']
371
- end
372
-
373
- if attributes.key?(:'rpm_vendor')
374
- self.rpm_vendor = attributes[:'rpm_vendor']
375
- end
376
-
377
- if attributes.key?(:'rpm_header_start')
378
- self.rpm_header_start = attributes[:'rpm_header_start']
379
- end
380
-
381
- if attributes.key?(:'rpm_header_end')
382
- self.rpm_header_end = attributes[:'rpm_header_end']
383
- end
384
-
385
- if attributes.key?(:'is_modular')
386
- self.is_modular = attributes[:'is_modular']
387
- end
388
-
389
- if attributes.key?(:'size_archive')
390
- self.size_archive = attributes[:'size_archive']
391
- end
392
-
393
- if attributes.key?(:'size_installed')
394
- self.size_installed = attributes[:'size_installed']
395
- end
396
-
397
- if attributes.key?(:'size_package')
398
- self.size_package = attributes[:'size_package']
399
- end
400
-
401
- if attributes.key?(:'time_build')
402
- self.time_build = attributes[:'time_build']
403
- end
404
-
405
- if attributes.key?(:'time_file')
406
- self.time_file = attributes[:'time_file']
83
+ if attributes.key?(:'repository')
84
+ self.repository = attributes[:'repository']
407
85
  end
408
86
  end
409
87
 
@@ -411,36 +89,8 @@ module PulpRpmClient
411
89
  # @return Array for valid properties with the reasons
412
90
  def list_invalid_properties
413
91
  invalid_properties = Array.new
414
- if !@name.nil? && @name.to_s.length < 1
415
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
416
- end
417
-
418
- if !@version.nil? && @version.to_s.length < 1
419
- invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
420
- end
421
-
422
- if !@release.nil? && @release.to_s.length < 1
423
- invalid_properties.push('invalid value for "release", the character length must be great than or equal to 1.')
424
- end
425
-
426
- if !@arch.nil? && @arch.to_s.length < 1
427
- invalid_properties.push('invalid value for "arch", the character length must be great than or equal to 1.')
428
- end
429
-
430
- if !@pkg_id.nil? && @pkg_id.to_s.length < 1
431
- invalid_properties.push('invalid value for "pkg_id", the character length must be great than or equal to 1.')
432
- end
433
-
434
- if !@checksum_type.nil? && @checksum_type.to_s.length < 1
435
- invalid_properties.push('invalid value for "checksum_type", the character length must be great than or equal to 1.')
436
- end
437
-
438
- if !@sha256.nil? && @sha256.to_s.length < 1
439
- invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
440
- end
441
-
442
- if !@location_href.nil? && @location_href.to_s.length < 1
443
- invalid_properties.push('invalid value for "location_href", the character length must be great than or equal to 1.')
92
+ if @relative_path.nil?
93
+ invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
444
94
  end
445
95
 
446
96
  invalid_properties
@@ -449,142 +99,19 @@ module PulpRpmClient
449
99
  # Check to see if the all the properties in the model are valid
450
100
  # @return true if the model is valid
451
101
  def valid?
452
- return false if !@name.nil? && @name.to_s.length < 1
453
- return false if !@version.nil? && @version.to_s.length < 1
454
- return false if !@release.nil? && @release.to_s.length < 1
455
- return false if !@arch.nil? && @arch.to_s.length < 1
456
- return false if !@pkg_id.nil? && @pkg_id.to_s.length < 1
457
- return false if !@checksum_type.nil? && @checksum_type.to_s.length < 1
458
- return false if !@sha256.nil? && @sha256.to_s.length < 1
459
- return false if !@location_href.nil? && @location_href.to_s.length < 1
102
+ return false if @relative_path.nil?
460
103
  true
461
104
  end
462
105
 
463
- # Custom attribute writer method with validation
464
- # @param [Object] name Value to be assigned
465
- def name=(name)
466
- if !name.nil? && name.to_s.length < 1
467
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
468
- end
469
-
470
- @name = name
471
- end
472
-
473
- # Custom attribute writer method with validation
474
- # @param [Object] version Value to be assigned
475
- def version=(version)
476
- if !version.nil? && version.to_s.length < 1
477
- fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
478
- end
479
-
480
- @version = version
481
- end
482
-
483
- # Custom attribute writer method with validation
484
- # @param [Object] release Value to be assigned
485
- def release=(release)
486
- if !release.nil? && release.to_s.length < 1
487
- fail ArgumentError, 'invalid value for "release", the character length must be great than or equal to 1.'
488
- end
489
-
490
- @release = release
491
- end
492
-
493
- # Custom attribute writer method with validation
494
- # @param [Object] arch Value to be assigned
495
- def arch=(arch)
496
- if !arch.nil? && arch.to_s.length < 1
497
- fail ArgumentError, 'invalid value for "arch", the character length must be great than or equal to 1.'
498
- end
499
-
500
- @arch = arch
501
- end
502
-
503
- # Custom attribute writer method with validation
504
- # @param [Object] pkg_id Value to be assigned
505
- def pkg_id=(pkg_id)
506
- if !pkg_id.nil? && pkg_id.to_s.length < 1
507
- fail ArgumentError, 'invalid value for "pkg_id", the character length must be great than or equal to 1.'
508
- end
509
-
510
- @pkg_id = pkg_id
511
- end
512
-
513
- # Custom attribute writer method with validation
514
- # @param [Object] checksum_type Value to be assigned
515
- def checksum_type=(checksum_type)
516
- if !checksum_type.nil? && checksum_type.to_s.length < 1
517
- fail ArgumentError, 'invalid value for "checksum_type", the character length must be great than or equal to 1.'
518
- end
519
-
520
- @checksum_type = checksum_type
521
- end
522
-
523
- # Custom attribute writer method with validation
524
- # @param [Object] sha256 Value to be assigned
525
- def sha256=(sha256)
526
- if !sha256.nil? && sha256.to_s.length < 1
527
- fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
528
- end
529
-
530
- @sha256 = sha256
531
- end
532
-
533
- # Custom attribute writer method with validation
534
- # @param [Object] location_href Value to be assigned
535
- def location_href=(location_href)
536
- if !location_href.nil? && location_href.to_s.length < 1
537
- fail ArgumentError, 'invalid value for "location_href", the character length must be great than or equal to 1.'
538
- end
539
-
540
- @location_href = location_href
541
- end
542
-
543
106
  # Checks equality by comparing each attribute.
544
107
  # @param [Object] Object to be compared
545
108
  def ==(o)
546
109
  return true if self.equal?(o)
547
110
  self.class == o.class &&
548
- pulp_href == o.pulp_href &&
549
- pulp_created == o.pulp_created &&
550
111
  artifact == o.artifact &&
551
- name == o.name &&
552
- epoch == o.epoch &&
553
- version == o.version &&
554
- release == o.release &&
555
- arch == o.arch &&
556
- pkg_id == o.pkg_id &&
557
- checksum_type == o.checksum_type &&
558
- summary == o.summary &&
559
- description == o.description &&
560
- url == o.url &&
561
- changelogs == o.changelogs &&
562
- files == o.files &&
563
- requires == o.requires &&
564
- provides == o.provides &&
565
- conflicts == o.conflicts &&
566
- obsoletes == o.obsoletes &&
567
- suggests == o.suggests &&
568
- enhances == o.enhances &&
569
- recommends == o.recommends &&
570
- sha256 == o.sha256 &&
571
- supplements == o.supplements &&
572
- location_base == o.location_base &&
573
- location_href == o.location_href &&
574
- rpm_buildhost == o.rpm_buildhost &&
575
- rpm_group == o.rpm_group &&
576
- rpm_license == o.rpm_license &&
577
- rpm_packager == o.rpm_packager &&
578
- rpm_sourcerpm == o.rpm_sourcerpm &&
579
- rpm_vendor == o.rpm_vendor &&
580
- rpm_header_start == o.rpm_header_start &&
581
- rpm_header_end == o.rpm_header_end &&
582
- is_modular == o.is_modular &&
583
- size_archive == o.size_archive &&
584
- size_installed == o.size_installed &&
585
- size_package == o.size_package &&
586
- time_build == o.time_build &&
587
- time_file == o.time_file
112
+ relative_path == o.relative_path &&
113
+ file == o.file &&
114
+ repository == o.repository
588
115
  end
589
116
 
590
117
  # @see the `==` method
@@ -596,7 +123,7 @@ module PulpRpmClient
596
123
  # Calculates hash code according to all attributes.
597
124
  # @return [Integer] Hash code
598
125
  def hash
599
- [pulp_href, pulp_created, artifact, name, epoch, version, release, arch, pkg_id, checksum_type, summary, description, url, changelogs, files, requires, provides, conflicts, obsoletes, suggests, enhances, recommends, sha256, 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
126
+ [artifact, relative_path, file, repository].hash
600
127
  end
601
128
 
602
129
  # Builds the object from hash