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,7 +13,8 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
- class RpmDistributionTree
16
+ # DistributionTree serializer.
17
+ class RpmDistributionTreeResponse
17
18
  attr_accessor :pulp_href
18
19
 
19
20
  # Header Version.
@@ -109,16 +110,23 @@ module PulpRpmClient
109
110
  :'mainimage' => :'String',
110
111
  :'discnum' => :'Integer',
111
112
  :'totaldiscs' => :'Integer',
112
- :'addons' => :'Array<Addon>',
113
- :'checksums' => :'Array<Checksum>',
114
- :'images' => :'Array<Image>',
115
- :'variants' => :'Array<Variant>'
113
+ :'addons' => :'Array<AddonResponse>',
114
+ :'checksums' => :'Array<ChecksumResponse>',
115
+ :'images' => :'Array<ImageResponse>',
116
+ :'variants' => :'Array<VariantResponse>'
116
117
  }
117
118
  end
118
119
 
119
120
  # List of attributes with nullable: true
120
121
  def self.openapi_nullable
121
122
  Set.new([
123
+ :'base_product_name',
124
+ :'base_product_short',
125
+ :'base_product_version',
126
+ :'instimage',
127
+ :'mainimage',
128
+ :'discnum',
129
+ :'totaldiscs',
122
130
  ])
123
131
  end
124
132
 
@@ -126,13 +134,13 @@ module PulpRpmClient
126
134
  # @param [Hash] attributes Model attributes in the form of hash
127
135
  def initialize(attributes = {})
128
136
  if (!attributes.is_a?(Hash))
129
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmDistributionTree` initialize method"
137
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmDistributionTreeResponse` initialize method"
130
138
  end
131
139
 
132
140
  # check to see if the attribute exists and convert string to symbol for hash key
133
141
  attributes = attributes.each_with_object({}) { |(k, v), h|
134
142
  if (!self.class.attribute_map.key?(k.to_sym))
135
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmDistributionTree`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
143
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmDistributionTreeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
136
144
  end
137
145
  h[k.to_sym] = v
138
146
  }
@@ -230,98 +238,30 @@ module PulpRpmClient
230
238
  invalid_properties.push('invalid value for "header_version", header_version cannot be nil.')
231
239
  end
232
240
 
233
- if @header_version.to_s.length < 1
234
- invalid_properties.push('invalid value for "header_version", the character length must be great than or equal to 1.')
235
- end
236
-
237
241
  if @release_name.nil?
238
242
  invalid_properties.push('invalid value for "release_name", release_name cannot be nil.')
239
243
  end
240
244
 
241
- if @release_name.to_s.length < 1
242
- invalid_properties.push('invalid value for "release_name", the character length must be great than or equal to 1.')
243
- end
244
-
245
245
  if @release_short.nil?
246
246
  invalid_properties.push('invalid value for "release_short", release_short cannot be nil.')
247
247
  end
248
248
 
249
- if @release_short.to_s.length < 1
250
- invalid_properties.push('invalid value for "release_short", the character length must be great than or equal to 1.')
251
- end
252
-
253
249
  if @release_version.nil?
254
250
  invalid_properties.push('invalid value for "release_version", release_version cannot be nil.')
255
251
  end
256
252
 
257
- if @release_version.to_s.length < 1
258
- invalid_properties.push('invalid value for "release_version", the character length must be great than or equal to 1.')
259
- end
260
-
261
253
  if @release_is_layered.nil?
262
254
  invalid_properties.push('invalid value for "release_is_layered", release_is_layered cannot be nil.')
263
255
  end
264
256
 
265
- if @base_product_name.nil?
266
- invalid_properties.push('invalid value for "base_product_name", base_product_name cannot be nil.')
267
- end
268
-
269
- if @base_product_name.to_s.length < 1
270
- invalid_properties.push('invalid value for "base_product_name", the character length must be great than or equal to 1.')
271
- end
272
-
273
- if @base_product_short.nil?
274
- invalid_properties.push('invalid value for "base_product_short", base_product_short cannot be nil.')
275
- end
276
-
277
- if @base_product_short.to_s.length < 1
278
- invalid_properties.push('invalid value for "base_product_short", the character length must be great than or equal to 1.')
279
- end
280
-
281
- if @base_product_version.nil?
282
- invalid_properties.push('invalid value for "base_product_version", base_product_version cannot be nil.')
283
- end
284
-
285
- if @base_product_version.to_s.length < 1
286
- invalid_properties.push('invalid value for "base_product_version", the character length must be great than or equal to 1.')
287
- end
288
-
289
257
  if @arch.nil?
290
258
  invalid_properties.push('invalid value for "arch", arch cannot be nil.')
291
259
  end
292
260
 
293
- if @arch.to_s.length < 1
294
- invalid_properties.push('invalid value for "arch", the character length must be great than or equal to 1.')
295
- end
296
-
297
261
  if @build_timestamp.nil?
298
262
  invalid_properties.push('invalid value for "build_timestamp", build_timestamp cannot be nil.')
299
263
  end
300
264
 
301
- if @instimage.nil?
302
- invalid_properties.push('invalid value for "instimage", instimage cannot be nil.')
303
- end
304
-
305
- if @instimage.to_s.length < 1
306
- invalid_properties.push('invalid value for "instimage", the character length must be great than or equal to 1.')
307
- end
308
-
309
- if @mainimage.nil?
310
- invalid_properties.push('invalid value for "mainimage", mainimage cannot be nil.')
311
- end
312
-
313
- if @mainimage.to_s.length < 1
314
- invalid_properties.push('invalid value for "mainimage", the character length must be great than or equal to 1.')
315
- end
316
-
317
- if @discnum.nil?
318
- invalid_properties.push('invalid value for "discnum", discnum cannot be nil.')
319
- end
320
-
321
- if @totaldiscs.nil?
322
- invalid_properties.push('invalid value for "totaldiscs", totaldiscs cannot be nil.')
323
- end
324
-
325
265
  if @addons.nil?
326
266
  invalid_properties.push('invalid value for "addons", addons cannot be nil.')
327
267
  end
@@ -345,29 +285,12 @@ module PulpRpmClient
345
285
  # @return true if the model is valid
346
286
  def valid?
347
287
  return false if @header_version.nil?
348
- return false if @header_version.to_s.length < 1
349
288
  return false if @release_name.nil?
350
- return false if @release_name.to_s.length < 1
351
289
  return false if @release_short.nil?
352
- return false if @release_short.to_s.length < 1
353
290
  return false if @release_version.nil?
354
- return false if @release_version.to_s.length < 1
355
291
  return false if @release_is_layered.nil?
356
- return false if @base_product_name.nil?
357
- return false if @base_product_name.to_s.length < 1
358
- return false if @base_product_short.nil?
359
- return false if @base_product_short.to_s.length < 1
360
- return false if @base_product_version.nil?
361
- return false if @base_product_version.to_s.length < 1
362
292
  return false if @arch.nil?
363
- return false if @arch.to_s.length < 1
364
293
  return false if @build_timestamp.nil?
365
- return false if @instimage.nil?
366
- return false if @instimage.to_s.length < 1
367
- return false if @mainimage.nil?
368
- return false if @mainimage.to_s.length < 1
369
- return false if @discnum.nil?
370
- return false if @totaldiscs.nil?
371
294
  return false if @addons.nil?
372
295
  return false if @checksums.nil?
373
296
  return false if @images.nil?
@@ -375,146 +298,6 @@ module PulpRpmClient
375
298
  true
376
299
  end
377
300
 
378
- # Custom attribute writer method with validation
379
- # @param [Object] header_version Value to be assigned
380
- def header_version=(header_version)
381
- if header_version.nil?
382
- fail ArgumentError, 'header_version cannot be nil'
383
- end
384
-
385
- if header_version.to_s.length < 1
386
- fail ArgumentError, 'invalid value for "header_version", the character length must be great than or equal to 1.'
387
- end
388
-
389
- @header_version = header_version
390
- end
391
-
392
- # Custom attribute writer method with validation
393
- # @param [Object] release_name Value to be assigned
394
- def release_name=(release_name)
395
- if release_name.nil?
396
- fail ArgumentError, 'release_name cannot be nil'
397
- end
398
-
399
- if release_name.to_s.length < 1
400
- fail ArgumentError, 'invalid value for "release_name", the character length must be great than or equal to 1.'
401
- end
402
-
403
- @release_name = release_name
404
- end
405
-
406
- # Custom attribute writer method with validation
407
- # @param [Object] release_short Value to be assigned
408
- def release_short=(release_short)
409
- if release_short.nil?
410
- fail ArgumentError, 'release_short cannot be nil'
411
- end
412
-
413
- if release_short.to_s.length < 1
414
- fail ArgumentError, 'invalid value for "release_short", the character length must be great than or equal to 1.'
415
- end
416
-
417
- @release_short = release_short
418
- end
419
-
420
- # Custom attribute writer method with validation
421
- # @param [Object] release_version Value to be assigned
422
- def release_version=(release_version)
423
- if release_version.nil?
424
- fail ArgumentError, 'release_version cannot be nil'
425
- end
426
-
427
- if release_version.to_s.length < 1
428
- fail ArgumentError, 'invalid value for "release_version", the character length must be great than or equal to 1.'
429
- end
430
-
431
- @release_version = release_version
432
- end
433
-
434
- # Custom attribute writer method with validation
435
- # @param [Object] base_product_name Value to be assigned
436
- def base_product_name=(base_product_name)
437
- if base_product_name.nil?
438
- fail ArgumentError, 'base_product_name cannot be nil'
439
- end
440
-
441
- if base_product_name.to_s.length < 1
442
- fail ArgumentError, 'invalid value for "base_product_name", the character length must be great than or equal to 1.'
443
- end
444
-
445
- @base_product_name = base_product_name
446
- end
447
-
448
- # Custom attribute writer method with validation
449
- # @param [Object] base_product_short Value to be assigned
450
- def base_product_short=(base_product_short)
451
- if base_product_short.nil?
452
- fail ArgumentError, 'base_product_short cannot be nil'
453
- end
454
-
455
- if base_product_short.to_s.length < 1
456
- fail ArgumentError, 'invalid value for "base_product_short", the character length must be great than or equal to 1.'
457
- end
458
-
459
- @base_product_short = base_product_short
460
- end
461
-
462
- # Custom attribute writer method with validation
463
- # @param [Object] base_product_version Value to be assigned
464
- def base_product_version=(base_product_version)
465
- if base_product_version.nil?
466
- fail ArgumentError, 'base_product_version cannot be nil'
467
- end
468
-
469
- if base_product_version.to_s.length < 1
470
- fail ArgumentError, 'invalid value for "base_product_version", the character length must be great than or equal to 1.'
471
- end
472
-
473
- @base_product_version = base_product_version
474
- end
475
-
476
- # Custom attribute writer method with validation
477
- # @param [Object] arch Value to be assigned
478
- def arch=(arch)
479
- if arch.nil?
480
- fail ArgumentError, 'arch cannot be nil'
481
- end
482
-
483
- if arch.to_s.length < 1
484
- fail ArgumentError, 'invalid value for "arch", the character length must be great than or equal to 1.'
485
- end
486
-
487
- @arch = arch
488
- end
489
-
490
- # Custom attribute writer method with validation
491
- # @param [Object] instimage Value to be assigned
492
- def instimage=(instimage)
493
- if instimage.nil?
494
- fail ArgumentError, 'instimage cannot be nil'
495
- end
496
-
497
- if instimage.to_s.length < 1
498
- fail ArgumentError, 'invalid value for "instimage", the character length must be great than or equal to 1.'
499
- end
500
-
501
- @instimage = instimage
502
- end
503
-
504
- # Custom attribute writer method with validation
505
- # @param [Object] mainimage Value to be assigned
506
- def mainimage=(mainimage)
507
- if mainimage.nil?
508
- fail ArgumentError, 'mainimage cannot be nil'
509
- end
510
-
511
- if mainimage.to_s.length < 1
512
- fail ArgumentError, 'invalid value for "mainimage", the character length must be great than or equal to 1.'
513
- end
514
-
515
- @mainimage = mainimage
516
- end
517
-
518
301
  # Checks equality by comparing each attribute.
519
302
  # @param [Object] Object to be compared
520
303
  def ==(o)
@@ -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,15 +13,20 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
+ # Modulemd serializer.
16
17
  class RpmModulemd
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
 
21
+ # Path where the artifact is located relative to distributions base_path
22
+ attr_accessor :relative_path
23
+
24
+ # An uploaded file that may be turned into the artifact of the content unit.
25
+ attr_accessor :file
26
+
27
+ # A URI of a repository the new content unit should be associated with.
28
+ attr_accessor :repository
29
+
25
30
  # Modulemd name.
26
31
  attr_accessor :name
27
32
 
@@ -46,15 +51,13 @@ module PulpRpmClient
46
51
  # Modulemd artifacts' packages.
47
52
  attr_accessor :packages
48
53
 
49
- # The SHA-256 checksum if available.
50
- attr_accessor :sha256
51
-
52
54
  # Attribute mapping from ruby-style variable name to JSON key.
53
55
  def self.attribute_map
54
56
  {
55
- :'pulp_href' => :'pulp_href',
56
- :'pulp_created' => :'pulp_created',
57
57
  :'artifact' => :'artifact',
58
+ :'relative_path' => :'relative_path',
59
+ :'file' => :'file',
60
+ :'repository' => :'repository',
58
61
  :'name' => :'name',
59
62
  :'stream' => :'stream',
60
63
  :'version' => :'version',
@@ -62,17 +65,17 @@ module PulpRpmClient
62
65
  :'arch' => :'arch',
63
66
  :'artifacts' => :'artifacts',
64
67
  :'dependencies' => :'dependencies',
65
- :'packages' => :'packages',
66
- :'sha256' => :'sha256'
68
+ :'packages' => :'packages'
67
69
  }
68
70
  end
69
71
 
70
72
  # Attribute type mapping.
71
73
  def self.openapi_types
72
74
  {
73
- :'pulp_href' => :'String',
74
- :'pulp_created' => :'DateTime',
75
75
  :'artifact' => :'String',
76
+ :'relative_path' => :'String',
77
+ :'file' => :'File',
78
+ :'repository' => :'String',
76
79
  :'name' => :'String',
77
80
  :'stream' => :'String',
78
81
  :'version' => :'String',
@@ -80,14 +83,15 @@ module PulpRpmClient
80
83
  :'arch' => :'String',
81
84
  :'artifacts' => :'Object',
82
85
  :'dependencies' => :'Object',
83
- :'packages' => :'Array<String>',
84
- :'sha256' => :'String'
86
+ :'packages' => :'Array<String>'
85
87
  }
86
88
  end
87
89
 
88
90
  # List of attributes with nullable: true
89
91
  def self.openapi_nullable
90
92
  Set.new([
93
+ :'artifacts',
94
+ :'dependencies',
91
95
  ])
92
96
  end
93
97
 
@@ -106,16 +110,20 @@ module PulpRpmClient
106
110
  h[k.to_sym] = v
107
111
  }
108
112
 
109
- if attributes.key?(:'pulp_href')
110
- self.pulp_href = attributes[:'pulp_href']
113
+ if attributes.key?(:'artifact')
114
+ self.artifact = attributes[:'artifact']
111
115
  end
112
116
 
113
- if attributes.key?(:'pulp_created')
114
- self.pulp_created = attributes[:'pulp_created']
117
+ if attributes.key?(:'relative_path')
118
+ self.relative_path = attributes[:'relative_path']
115
119
  end
116
120
 
117
- if attributes.key?(:'artifact')
118
- self.artifact = attributes[:'artifact']
121
+ if attributes.key?(:'file')
122
+ self.file = attributes[:'file']
123
+ end
124
+
125
+ if attributes.key?(:'repository')
126
+ self.repository = attributes[:'repository']
119
127
  end
120
128
 
121
129
  if attributes.key?(:'name')
@@ -151,178 +159,60 @@ module PulpRpmClient
151
159
  self.packages = value
152
160
  end
153
161
  end
154
-
155
- if attributes.key?(:'sha256')
156
- self.sha256 = attributes[:'sha256']
157
- end
158
162
  end
159
163
 
160
164
  # Show invalid properties with the reasons. Usually used together with valid?
161
165
  # @return Array for valid properties with the reasons
162
166
  def list_invalid_properties
163
167
  invalid_properties = Array.new
164
- if @name.nil?
165
- invalid_properties.push('invalid value for "name", name cannot be nil.')
168
+ if @relative_path.nil?
169
+ invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
166
170
  end
167
171
 
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.')
172
+ if @name.nil?
173
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
170
174
  end
171
175
 
172
176
  if @stream.nil?
173
177
  invalid_properties.push('invalid value for "stream", stream cannot be nil.')
174
178
  end
175
179
 
176
- if @stream.to_s.length < 1
177
- invalid_properties.push('invalid value for "stream", the character length must be great than or equal to 1.')
178
- end
179
-
180
180
  if @version.nil?
181
181
  invalid_properties.push('invalid value for "version", version cannot be nil.')
182
182
  end
183
183
 
184
- if @version.to_s.length < 1
185
- invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
186
- end
187
-
188
184
  if @context.nil?
189
185
  invalid_properties.push('invalid value for "context", context cannot be nil.')
190
186
  end
191
187
 
192
- if @context.to_s.length < 1
193
- invalid_properties.push('invalid value for "context", the character length must be great than or equal to 1.')
194
- end
195
-
196
188
  if @arch.nil?
197
189
  invalid_properties.push('invalid value for "arch", arch cannot be nil.')
198
190
  end
199
191
 
200
- if @arch.to_s.length < 1
201
- invalid_properties.push('invalid value for "arch", the character length must be great than or equal to 1.')
202
- end
203
-
204
- if @artifacts.nil?
205
- invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
206
- end
207
-
208
- if @dependencies.nil?
209
- invalid_properties.push('invalid value for "dependencies", dependencies cannot be nil.')
210
- end
211
-
212
- if !@sha256.nil? && @sha256.to_s.length < 1
213
- invalid_properties.push('invalid value for "sha256", the character length must be great than or equal to 1.')
214
- end
215
-
216
192
  invalid_properties
217
193
  end
218
194
 
219
195
  # Check to see if the all the properties in the model are valid
220
196
  # @return true if the model is valid
221
197
  def valid?
198
+ return false if @relative_path.nil?
222
199
  return false if @name.nil?
223
- return false if @name.to_s.length < 1
224
200
  return false if @stream.nil?
225
- return false if @stream.to_s.length < 1
226
201
  return false if @version.nil?
227
- return false if @version.to_s.length < 1
228
202
  return false if @context.nil?
229
- return false if @context.to_s.length < 1
230
203
  return false if @arch.nil?
231
- return false if @arch.to_s.length < 1
232
- return false if @artifacts.nil?
233
- return false if @dependencies.nil?
234
- return false if !@sha256.nil? && @sha256.to_s.length < 1
235
204
  true
236
205
  end
237
206
 
238
- # Custom attribute writer method with validation
239
- # @param [Object] name Value to be assigned
240
- def name=(name)
241
- if name.nil?
242
- fail ArgumentError, 'name cannot be nil'
243
- end
244
-
245
- if name.to_s.length < 1
246
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
247
- end
248
-
249
- @name = name
250
- end
251
-
252
- # Custom attribute writer method with validation
253
- # @param [Object] stream Value to be assigned
254
- def stream=(stream)
255
- if stream.nil?
256
- fail ArgumentError, 'stream cannot be nil'
257
- end
258
-
259
- if stream.to_s.length < 1
260
- fail ArgumentError, 'invalid value for "stream", the character length must be great than or equal to 1.'
261
- end
262
-
263
- @stream = stream
264
- end
265
-
266
- # Custom attribute writer method with validation
267
- # @param [Object] version Value to be assigned
268
- def version=(version)
269
- if version.nil?
270
- fail ArgumentError, 'version cannot be nil'
271
- end
272
-
273
- if version.to_s.length < 1
274
- fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
275
- end
276
-
277
- @version = version
278
- end
279
-
280
- # Custom attribute writer method with validation
281
- # @param [Object] context Value to be assigned
282
- def context=(context)
283
- if context.nil?
284
- fail ArgumentError, 'context cannot be nil'
285
- end
286
-
287
- if context.to_s.length < 1
288
- fail ArgumentError, 'invalid value for "context", the character length must be great than or equal to 1.'
289
- end
290
-
291
- @context = context
292
- end
293
-
294
- # Custom attribute writer method with validation
295
- # @param [Object] arch Value to be assigned
296
- def arch=(arch)
297
- if arch.nil?
298
- fail ArgumentError, 'arch cannot be nil'
299
- end
300
-
301
- if arch.to_s.length < 1
302
- fail ArgumentError, 'invalid value for "arch", the character length must be great than or equal to 1.'
303
- end
304
-
305
- @arch = arch
306
- end
307
-
308
- # Custom attribute writer method with validation
309
- # @param [Object] sha256 Value to be assigned
310
- def sha256=(sha256)
311
- if !sha256.nil? && sha256.to_s.length < 1
312
- fail ArgumentError, 'invalid value for "sha256", the character length must be great than or equal to 1.'
313
- end
314
-
315
- @sha256 = sha256
316
- end
317
-
318
207
  # Checks equality by comparing each attribute.
319
208
  # @param [Object] Object to be compared
320
209
  def ==(o)
321
210
  return true if self.equal?(o)
322
211
  self.class == o.class &&
323
- pulp_href == o.pulp_href &&
324
- pulp_created == o.pulp_created &&
325
212
  artifact == o.artifact &&
213
+ relative_path == o.relative_path &&
214
+ file == o.file &&
215
+ repository == o.repository &&
326
216
  name == o.name &&
327
217
  stream == o.stream &&
328
218
  version == o.version &&
@@ -330,8 +220,7 @@ module PulpRpmClient
330
220
  arch == o.arch &&
331
221
  artifacts == o.artifacts &&
332
222
  dependencies == o.dependencies &&
333
- packages == o.packages &&
334
- sha256 == o.sha256
223
+ packages == o.packages
335
224
  end
336
225
 
337
226
  # @see the `==` method
@@ -343,7 +232,7 @@ module PulpRpmClient
343
232
  # Calculates hash code according to all attributes.
344
233
  # @return [Integer] Hash code
345
234
  def hash
346
- [pulp_href, pulp_created, artifact, name, stream, version, context, arch, artifacts, dependencies, packages, sha256].hash
235
+ [artifact, relative_path, file, repository, name, stream, version, context, arch, artifacts, dependencies, packages].hash
347
236
  end
348
237
 
349
238
  # Builds the object from hash