pulp_rpm_client 3.0.0b71572533171 → 3.0.0rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +63 -22
  3. data/docs/ContentAdvisoriesApi.md +15 -7
  4. data/docs/ContentDistributionTreesApi.md +2 -2
  5. data/docs/ContentModulemdDefaultsApi.md +6 -6
  6. data/docs/{ContentModulemdApi.md → ContentModulemdsApi.md} +14 -14
  7. data/docs/ContentPackagecategoriesApi.md +189 -0
  8. data/docs/ContentPackageenvironmentsApi.md +189 -0
  9. data/docs/ContentPackagegroupsApi.md +189 -0
  10. data/docs/ContentPackagelangpacksApi.md +189 -0
  11. data/docs/ContentPackagesApi.md +4 -4
  12. data/docs/ContentRepoMetadataFilesApi.md +4 -4
  13. data/docs/ContentSummary.md +21 -0
  14. data/docs/DistributionsRpmApi.md +10 -10
  15. data/docs/InlineResponse200.md +1 -1
  16. data/docs/InlineResponse2001.md +1 -1
  17. data/docs/InlineResponse20010.md +23 -0
  18. data/docs/InlineResponse20011.md +23 -0
  19. data/docs/InlineResponse20012.md +23 -0
  20. data/docs/InlineResponse20013.md +23 -0
  21. data/docs/InlineResponse20014.md +23 -0
  22. data/docs/InlineResponse2002.md +1 -1
  23. data/docs/InlineResponse2003.md +1 -1
  24. data/docs/InlineResponse2004.md +1 -1
  25. data/docs/InlineResponse2005.md +1 -1
  26. data/docs/InlineResponse2006.md +1 -1
  27. data/docs/InlineResponse2007.md +1 -1
  28. data/docs/InlineResponse2008.md +1 -1
  29. data/docs/InlineResponse2009.md +23 -0
  30. data/docs/PublicationsRpmApi.md +6 -6
  31. data/docs/RemotesRpmApi.md +12 -68
  32. data/docs/RepositoriesRpmApi.md +465 -0
  33. data/docs/RepositoriesRpmVersionsApi.md +214 -0
  34. data/docs/RepositoryAddRemoveContent.md +21 -0
  35. data/docs/RepositorySyncURL.md +2 -2
  36. data/docs/RepositoryVersion.md +25 -0
  37. data/docs/{DistributionTree.md → RpmDistributionTree.md} +2 -2
  38. data/docs/{Modulemd.md → RpmModulemd.md} +2 -8
  39. data/docs/{ModulemdDefaults.md → RpmModulemdDefaults.md} +2 -8
  40. data/docs/{Package.md → RpmPackage.md} +2 -8
  41. data/docs/RpmPackageCategory.md +33 -0
  42. data/docs/RpmPackageEnvironment.md +37 -0
  43. data/docs/RpmPackageGroup.md +39 -0
  44. data/docs/RpmPackageLangpacks.md +19 -0
  45. data/docs/{RepoMetadataFile.md → RpmRepoMetadataFile.md} +2 -8
  46. data/docs/{RpmDistribution.md → RpmRpmDistribution.md} +2 -2
  47. data/docs/{RpmPublication.md → RpmRpmPublication.md} +2 -2
  48. data/docs/{RpmRemote.md → RpmRpmRemote.md} +10 -14
  49. data/docs/RpmRpmRepository.md +27 -0
  50. data/docs/RpmUpdateCollection.md +21 -0
  51. data/docs/{UpdateRecord.md → RpmUpdateRecord.md} +24 -20
  52. data/lib/pulp_rpm_client/api/content_advisories_api.rb +28 -14
  53. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +4 -4
  54. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +8 -8
  55. data/lib/pulp_rpm_client/api/{content_modulemd_api.rb → content_modulemds_api.rb} +30 -30
  56. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +227 -0
  57. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +227 -0
  58. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +227 -0
  59. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +227 -0
  60. data/lib/pulp_rpm_client/api/content_packages_api.rb +7 -7
  61. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +7 -7
  62. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +13 -13
  63. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +9 -9
  64. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +16 -86
  65. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +568 -0
  66. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +268 -0
  67. data/lib/pulp_rpm_client/api_client.rb +1 -1
  68. data/lib/pulp_rpm_client/api_error.rb +1 -1
  69. data/lib/pulp_rpm_client/configuration.rb +1 -1
  70. data/lib/pulp_rpm_client/models/addon.rb +12 -2
  71. data/lib/pulp_rpm_client/models/artifact.rb +18 -2
  72. data/lib/pulp_rpm_client/models/async_operation_response.rb +12 -2
  73. data/lib/pulp_rpm_client/models/checksum.rb +12 -2
  74. data/lib/pulp_rpm_client/models/content_summary.rb +246 -0
  75. data/lib/pulp_rpm_client/models/image.rb +12 -2
  76. data/lib/pulp_rpm_client/models/inline_response200.rb +15 -3
  77. data/lib/pulp_rpm_client/models/inline_response2001.rb +15 -3
  78. data/lib/pulp_rpm_client/models/inline_response20010.rb +247 -0
  79. data/lib/pulp_rpm_client/models/inline_response20011.rb +247 -0
  80. data/lib/pulp_rpm_client/models/inline_response20012.rb +247 -0
  81. data/lib/pulp_rpm_client/models/inline_response20013.rb +247 -0
  82. data/lib/pulp_rpm_client/models/inline_response20014.rb +247 -0
  83. data/lib/pulp_rpm_client/models/inline_response2002.rb +15 -3
  84. data/lib/pulp_rpm_client/models/inline_response2003.rb +15 -3
  85. data/lib/pulp_rpm_client/models/inline_response2004.rb +15 -3
  86. data/lib/pulp_rpm_client/models/inline_response2005.rb +15 -3
  87. data/lib/pulp_rpm_client/models/inline_response2006.rb +15 -3
  88. data/lib/pulp_rpm_client/models/inline_response2007.rb +15 -3
  89. data/lib/pulp_rpm_client/models/inline_response2008.rb +15 -3
  90. data/lib/pulp_rpm_client/models/inline_response2009.rb +247 -0
  91. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +231 -0
  92. data/lib/pulp_rpm_client/models/repository_sync_url.rb +22 -12
  93. data/lib/pulp_rpm_client/models/repository_version.rb +244 -0
  94. data/lib/pulp_rpm_client/models/{distribution_tree.rb → rpm_distribution_tree.rb} +15 -5
  95. data/lib/pulp_rpm_client/models/{modulemd.rb → rpm_modulemd.rb} +16 -60
  96. data/lib/pulp_rpm_client/models/{modulemd_defaults.rb → rpm_modulemd_defaults.rb} +16 -60
  97. data/lib/pulp_rpm_client/models/{package.rb → rpm_package.rb} +16 -60
  98. data/lib/pulp_rpm_client/models/rpm_package_category.rb +405 -0
  99. data/lib/pulp_rpm_client/models/rpm_package_environment.rb +432 -0
  100. data/lib/pulp_rpm_client/models/rpm_package_group.rb +435 -0
  101. data/lib/pulp_rpm_client/models/rpm_package_langpacks.rb +246 -0
  102. data/lib/pulp_rpm_client/models/{repo_metadata_file.rb → rpm_repo_metadata_file.rb} +16 -60
  103. data/lib/pulp_rpm_client/models/{rpm_distribution.rb → rpm_rpm_distribution.rb} +17 -23
  104. data/lib/pulp_rpm_client/models/{rpm_publication.rb → rpm_rpm_publication.rb} +16 -5
  105. data/lib/pulp_rpm_client/models/{rpm_remote.rb → rpm_rpm_remote.rb} +69 -105
  106. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +294 -0
  107. data/lib/pulp_rpm_client/models/rpm_update_collection.rb +240 -0
  108. data/lib/pulp_rpm_client/models/{update_record.rb → rpm_update_record.rb} +49 -239
  109. data/lib/pulp_rpm_client/models/variant.rb +12 -2
  110. data/lib/pulp_rpm_client/version.rb +2 -2
  111. data/lib/pulp_rpm_client.rb +32 -12
  112. data/pulp_rpm_client.gemspec +1 -1
  113. data/spec/api/content_advisories_api_spec.rb +6 -3
  114. data/spec/api/content_distribution_trees_api_spec.rb +2 -2
  115. data/spec/api/content_modulemd_defaults_api_spec.rb +3 -3
  116. data/spec/api/{content_modulemd_api_spec.rb → content_modulemds_api_spec.rb} +9 -9
  117. data/spec/api/content_packagecategories_api_spec.rb +79 -0
  118. data/spec/api/content_packageenvironments_api_spec.rb +79 -0
  119. data/spec/api/content_packagegroups_api_spec.rb +79 -0
  120. data/spec/api/content_packagelangpacks_api_spec.rb +79 -0
  121. data/spec/api/content_packages_api_spec.rb +3 -3
  122. data/spec/api/content_repo_metadata_files_api_spec.rb +3 -3
  123. data/spec/api/distributions_rpm_api_spec.rb +3 -3
  124. data/spec/api/publications_rpm_api_spec.rb +3 -3
  125. data/spec/api/remotes_rpm_api_spec.rb +4 -17
  126. data/spec/api/repositories_rpm_api_spec.rb +141 -0
  127. data/spec/api/repositories_rpm_versions_api_spec.rb +91 -0
  128. data/spec/api_client_spec.rb +1 -1
  129. data/spec/configuration_spec.rb +1 -1
  130. data/spec/models/addon_spec.rb +1 -1
  131. data/spec/models/artifact_spec.rb +1 -1
  132. data/spec/models/async_operation_response_spec.rb +1 -1
  133. data/spec/models/checksum_spec.rb +1 -1
  134. data/spec/models/content_summary_spec.rb +53 -0
  135. data/spec/models/image_spec.rb +1 -1
  136. data/spec/models/inline_response20010_spec.rb +59 -0
  137. data/spec/models/inline_response20011_spec.rb +59 -0
  138. data/spec/models/inline_response20012_spec.rb +59 -0
  139. data/spec/models/inline_response20013_spec.rb +59 -0
  140. data/spec/models/inline_response20014_spec.rb +59 -0
  141. data/spec/models/inline_response2001_spec.rb +1 -1
  142. data/spec/models/inline_response2002_spec.rb +1 -1
  143. data/spec/models/inline_response2003_spec.rb +1 -1
  144. data/spec/models/inline_response2004_spec.rb +1 -1
  145. data/spec/models/inline_response2005_spec.rb +1 -1
  146. data/spec/models/inline_response2006_spec.rb +1 -1
  147. data/spec/models/inline_response2007_spec.rb +1 -1
  148. data/spec/models/inline_response2008_spec.rb +1 -1
  149. data/spec/models/inline_response2009_spec.rb +59 -0
  150. data/spec/models/inline_response200_spec.rb +1 -1
  151. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  152. data/spec/models/repository_sync_url_spec.rb +2 -2
  153. data/spec/models/repository_version_spec.rb +65 -0
  154. data/spec/models/{distribution_tree_spec.rb → rpm_distribution_tree_spec.rb} +7 -7
  155. data/spec/models/{modulemd_defaults_spec.rb → rpm_modulemd_defaults_spec.rb} +7 -25
  156. data/spec/models/{modulemd_spec.rb → rpm_modulemd_spec.rb} +7 -25
  157. data/spec/models/{repo_metadata_file_spec.rb → rpm_package_category_spec.rb} +16 -16
  158. data/spec/models/rpm_package_environment_spec.rb +101 -0
  159. data/spec/models/rpm_package_group_spec.rb +107 -0
  160. data/spec/models/rpm_package_langpacks_spec.rb +47 -0
  161. data/spec/models/{package_spec.rb → rpm_package_spec.rb} +7 -25
  162. data/spec/models/rpm_repo_metadata_file_spec.rb +71 -0
  163. data/spec/models/{rpm_distribution_spec.rb → rpm_rpm_distribution_spec.rb} +7 -7
  164. data/spec/models/{rpm_publication_spec.rb → rpm_rpm_publication_spec.rb} +7 -7
  165. data/spec/models/{rpm_remote_spec.rb → rpm_rpm_remote_spec.rb} +11 -23
  166. data/spec/models/rpm_rpm_repository_spec.rb +71 -0
  167. data/spec/models/rpm_update_collection_spec.rb +53 -0
  168. data/spec/models/{update_record_spec.rb → rpm_update_record_spec.rb} +19 -7
  169. data/spec/models/variant_spec.rb +1 -1
  170. data/spec/spec_helper.rb +1 -1
  171. metadata +126 -46
  172. data/docs/RpmCopyApi.md +0 -70
  173. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +0 -96
  174. data/spec/api/rpm_copy_api_spec.rb +0 -50
@@ -6,19 +6,22 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpRpmClient
16
- class UpdateRecord
16
+ class RpmUpdateRecord
17
17
  attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
20
20
  attr_accessor :pulp_created
21
21
 
22
+ # Artifact file representing the physical content
23
+ attr_accessor :artifact
24
+
22
25
  # Update id (short update name, e.g. RHEA-2013:1777)
23
26
  attr_accessor :id
24
27
 
@@ -70,11 +73,15 @@ module PulpRpmClient
70
73
  # List of references
71
74
  attr_accessor :references
72
75
 
76
+ # Reboot suggested
77
+ attr_accessor :reboot_suggested
78
+
73
79
  # Attribute mapping from ruby-style variable name to JSON key.
74
80
  def self.attribute_map
75
81
  {
76
82
  :'pulp_href' => :'pulp_href',
77
83
  :'pulp_created' => :'pulp_created',
84
+ :'artifact' => :'artifact',
78
85
  :'id' => :'id',
79
86
  :'updated_date' => :'updated_date',
80
87
  :'description' => :'description',
@@ -91,7 +98,8 @@ module PulpRpmClient
91
98
  :'rights' => :'rights',
92
99
  :'pushcount' => :'pushcount',
93
100
  :'pkglist' => :'pkglist',
94
- :'references' => :'references'
101
+ :'references' => :'references',
102
+ :'reboot_suggested' => :'reboot_suggested'
95
103
  }
96
104
  end
97
105
 
@@ -100,6 +108,7 @@ module PulpRpmClient
100
108
  {
101
109
  :'pulp_href' => :'String',
102
110
  :'pulp_created' => :'DateTime',
111
+ :'artifact' => :'String',
103
112
  :'id' => :'String',
104
113
  :'updated_date' => :'String',
105
114
  :'description' => :'String',
@@ -115,22 +124,29 @@ module PulpRpmClient
115
124
  :'release' => :'String',
116
125
  :'rights' => :'String',
117
126
  :'pushcount' => :'String',
118
- :'pkglist' => :'Array<String>',
119
- :'references' => :'Array<String>'
127
+ :'pkglist' => :'Array<RpmUpdateCollection>',
128
+ :'references' => :'Array<Hash<String, String>>',
129
+ :'reboot_suggested' => :'Boolean'
120
130
  }
121
131
  end
122
132
 
133
+ # List of attributes with nullable: true
134
+ def self.openapi_nullable
135
+ Set.new([
136
+ ])
137
+ end
138
+
123
139
  # Initializes the object
124
140
  # @param [Hash] attributes Model attributes in the form of hash
125
141
  def initialize(attributes = {})
126
142
  if (!attributes.is_a?(Hash))
127
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::UpdateRecord` initialize method"
143
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::RpmUpdateRecord` initialize method"
128
144
  end
129
145
 
130
146
  # check to see if the attribute exists and convert string to symbol for hash key
131
147
  attributes = attributes.each_with_object({}) { |(k, v), h|
132
148
  if (!self.class.attribute_map.key?(k.to_sym))
133
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::UpdateRecord`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
149
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::RpmUpdateRecord`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
134
150
  end
135
151
  h[k.to_sym] = v
136
152
  }
@@ -143,6 +159,10 @@ module PulpRpmClient
143
159
  self.pulp_created = attributes[:'pulp_created']
144
160
  end
145
161
 
162
+ if attributes.key?(:'artifact')
163
+ self.artifact = attributes[:'artifact']
164
+ end
165
+
146
166
  if attributes.key?(:'id')
147
167
  self.id = attributes[:'id']
148
168
  end
@@ -214,154 +234,44 @@ module PulpRpmClient
214
234
  self.references = value
215
235
  end
216
236
  end
237
+
238
+ if attributes.key?(:'reboot_suggested')
239
+ self.reboot_suggested = attributes[:'reboot_suggested']
240
+ end
217
241
  end
218
242
 
219
243
  # Show invalid properties with the reasons. Usually used together with valid?
220
244
  # @return Array for valid properties with the reasons
221
245
  def list_invalid_properties
222
246
  invalid_properties = Array.new
223
- if @id.nil?
224
- invalid_properties.push('invalid value for "id", id cannot be nil.')
225
- end
226
-
227
- if @id.to_s.length < 1
247
+ if !@id.nil? && @id.to_s.length < 1
228
248
  invalid_properties.push('invalid value for "id", the character length must be great than or equal to 1.')
229
249
  end
230
250
 
231
- if @updated_date.nil?
232
- invalid_properties.push('invalid value for "updated_date", updated_date cannot be nil.')
233
- end
234
-
235
- if @updated_date.to_s.length < 1
251
+ if !@updated_date.nil? && @updated_date.to_s.length < 1
236
252
  invalid_properties.push('invalid value for "updated_date", the character length must be great than or equal to 1.')
237
253
  end
238
254
 
239
- if @description.nil?
240
- invalid_properties.push('invalid value for "description", description cannot be nil.')
241
- end
242
-
243
- if @description.to_s.length < 1
244
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
245
- end
246
-
247
- if @issued_date.nil?
248
- invalid_properties.push('invalid value for "issued_date", issued_date cannot be nil.')
249
- end
250
-
251
- if @issued_date.to_s.length < 1
255
+ if !@issued_date.nil? && @issued_date.to_s.length < 1
252
256
  invalid_properties.push('invalid value for "issued_date", the character length must be great than or equal to 1.')
253
257
  end
254
258
 
255
- if @fromstr.nil?
256
- invalid_properties.push('invalid value for "fromstr", fromstr cannot be nil.')
257
- end
258
-
259
- if @fromstr.to_s.length < 1
260
- invalid_properties.push('invalid value for "fromstr", the character length must be great than or equal to 1.')
261
- end
262
-
263
- if @status.nil?
264
- invalid_properties.push('invalid value for "status", status cannot be nil.')
265
- end
266
-
267
- if @status.to_s.length < 1
268
- invalid_properties.push('invalid value for "status", the character length must be great than or equal to 1.')
269
- end
270
-
271
- if @title.nil?
272
- invalid_properties.push('invalid value for "title", title cannot be nil.')
273
- end
274
-
275
- if @title.to_s.length < 1
276
- invalid_properties.push('invalid value for "title", the character length must be great than or equal to 1.')
277
- end
278
-
279
- if @summary.nil?
280
- invalid_properties.push('invalid value for "summary", summary cannot be nil.')
281
- end
282
-
283
- if @version.nil?
284
- invalid_properties.push('invalid value for "version", version cannot be nil.')
285
- end
286
-
287
- if @version.to_s.length < 1
288
- invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
289
- end
290
-
291
- if @type.nil?
292
- invalid_properties.push('invalid value for "type", type cannot be nil.')
293
- end
294
-
295
- if @type.to_s.length < 1
296
- invalid_properties.push('invalid value for "type", the character length must be great than or equal to 1.')
297
- end
298
-
299
- if @severity.nil?
300
- invalid_properties.push('invalid value for "severity", severity cannot be nil.')
301
- end
302
-
303
- if @solution.nil?
304
- invalid_properties.push('invalid value for "solution", solution cannot be nil.')
305
- end
306
-
307
- if @release.nil?
308
- invalid_properties.push('invalid value for "release", release cannot be nil.')
309
- end
310
-
311
- if @release.to_s.length < 1
312
- invalid_properties.push('invalid value for "release", the character length must be great than or equal to 1.')
313
- end
314
-
315
- if @rights.nil?
316
- invalid_properties.push('invalid value for "rights", rights cannot be nil.')
317
- end
318
-
319
- if @pushcount.nil?
320
- invalid_properties.push('invalid value for "pushcount", pushcount cannot be nil.')
321
- end
322
-
323
259
  invalid_properties
324
260
  end
325
261
 
326
262
  # Check to see if the all the properties in the model are valid
327
263
  # @return true if the model is valid
328
264
  def valid?
329
- return false if @id.nil?
330
- return false if @id.to_s.length < 1
331
- return false if @updated_date.nil?
332
- return false if @updated_date.to_s.length < 1
333
- return false if @description.nil?
334
- return false if @description.to_s.length < 1
335
- return false if @issued_date.nil?
336
- return false if @issued_date.to_s.length < 1
337
- return false if @fromstr.nil?
338
- return false if @fromstr.to_s.length < 1
339
- return false if @status.nil?
340
- return false if @status.to_s.length < 1
341
- return false if @title.nil?
342
- return false if @title.to_s.length < 1
343
- return false if @summary.nil?
344
- return false if @version.nil?
345
- return false if @version.to_s.length < 1
346
- return false if @type.nil?
347
- return false if @type.to_s.length < 1
348
- return false if @severity.nil?
349
- return false if @solution.nil?
350
- return false if @release.nil?
351
- return false if @release.to_s.length < 1
352
- return false if @rights.nil?
353
- return false if @pushcount.nil?
265
+ return false if !@id.nil? && @id.to_s.length < 1
266
+ return false if !@updated_date.nil? && @updated_date.to_s.length < 1
267
+ return false if !@issued_date.nil? && @issued_date.to_s.length < 1
354
268
  true
355
269
  end
356
270
 
357
271
  # Custom attribute writer method with validation
358
272
  # @param [Object] id Value to be assigned
359
273
  def id=(id)
360
- if id.nil?
361
- fail ArgumentError, 'id cannot be nil'
362
- end
363
-
364
- if id.to_s.length < 1
274
+ if !id.nil? && id.to_s.length < 1
365
275
  fail ArgumentError, 'invalid value for "id", the character length must be great than or equal to 1.'
366
276
  end
367
277
 
@@ -371,129 +281,23 @@ module PulpRpmClient
371
281
  # Custom attribute writer method with validation
372
282
  # @param [Object] updated_date Value to be assigned
373
283
  def updated_date=(updated_date)
374
- if updated_date.nil?
375
- fail ArgumentError, 'updated_date cannot be nil'
376
- end
377
-
378
- if updated_date.to_s.length < 1
284
+ if !updated_date.nil? && updated_date.to_s.length < 1
379
285
  fail ArgumentError, 'invalid value for "updated_date", the character length must be great than or equal to 1.'
380
286
  end
381
287
 
382
288
  @updated_date = updated_date
383
289
  end
384
290
 
385
- # Custom attribute writer method with validation
386
- # @param [Object] description Value to be assigned
387
- def description=(description)
388
- if description.nil?
389
- fail ArgumentError, 'description cannot be nil'
390
- end
391
-
392
- if description.to_s.length < 1
393
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
394
- end
395
-
396
- @description = description
397
- end
398
-
399
291
  # Custom attribute writer method with validation
400
292
  # @param [Object] issued_date Value to be assigned
401
293
  def issued_date=(issued_date)
402
- if issued_date.nil?
403
- fail ArgumentError, 'issued_date cannot be nil'
404
- end
405
-
406
- if issued_date.to_s.length < 1
294
+ if !issued_date.nil? && issued_date.to_s.length < 1
407
295
  fail ArgumentError, 'invalid value for "issued_date", the character length must be great than or equal to 1.'
408
296
  end
409
297
 
410
298
  @issued_date = issued_date
411
299
  end
412
300
 
413
- # Custom attribute writer method with validation
414
- # @param [Object] fromstr Value to be assigned
415
- def fromstr=(fromstr)
416
- if fromstr.nil?
417
- fail ArgumentError, 'fromstr cannot be nil'
418
- end
419
-
420
- if fromstr.to_s.length < 1
421
- fail ArgumentError, 'invalid value for "fromstr", the character length must be great than or equal to 1.'
422
- end
423
-
424
- @fromstr = fromstr
425
- end
426
-
427
- # Custom attribute writer method with validation
428
- # @param [Object] status Value to be assigned
429
- def status=(status)
430
- if status.nil?
431
- fail ArgumentError, 'status cannot be nil'
432
- end
433
-
434
- if status.to_s.length < 1
435
- fail ArgumentError, 'invalid value for "status", the character length must be great than or equal to 1.'
436
- end
437
-
438
- @status = status
439
- end
440
-
441
- # Custom attribute writer method with validation
442
- # @param [Object] title Value to be assigned
443
- def title=(title)
444
- if title.nil?
445
- fail ArgumentError, 'title cannot be nil'
446
- end
447
-
448
- if title.to_s.length < 1
449
- fail ArgumentError, 'invalid value for "title", the character length must be great than or equal to 1.'
450
- end
451
-
452
- @title = title
453
- end
454
-
455
- # Custom attribute writer method with validation
456
- # @param [Object] version Value to be assigned
457
- def version=(version)
458
- if version.nil?
459
- fail ArgumentError, 'version cannot be nil'
460
- end
461
-
462
- if version.to_s.length < 1
463
- fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
464
- end
465
-
466
- @version = version
467
- end
468
-
469
- # Custom attribute writer method with validation
470
- # @param [Object] type Value to be assigned
471
- def type=(type)
472
- if type.nil?
473
- fail ArgumentError, 'type cannot be nil'
474
- end
475
-
476
- if type.to_s.length < 1
477
- fail ArgumentError, 'invalid value for "type", the character length must be great than or equal to 1.'
478
- end
479
-
480
- @type = type
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?
487
- fail ArgumentError, 'release cannot be nil'
488
- end
489
-
490
- if release.to_s.length < 1
491
- fail ArgumentError, 'invalid value for "release", the character length must be great than or equal to 1.'
492
- end
493
-
494
- @release = release
495
- end
496
-
497
301
  # Checks equality by comparing each attribute.
498
302
  # @param [Object] Object to be compared
499
303
  def ==(o)
@@ -501,6 +305,7 @@ module PulpRpmClient
501
305
  self.class == o.class &&
502
306
  pulp_href == o.pulp_href &&
503
307
  pulp_created == o.pulp_created &&
308
+ artifact == o.artifact &&
504
309
  id == o.id &&
505
310
  updated_date == o.updated_date &&
506
311
  description == o.description &&
@@ -517,7 +322,8 @@ module PulpRpmClient
517
322
  rights == o.rights &&
518
323
  pushcount == o.pushcount &&
519
324
  pkglist == o.pkglist &&
520
- references == o.references
325
+ references == o.references &&
326
+ reboot_suggested == o.reboot_suggested
521
327
  end
522
328
 
523
329
  # @see the `==` method
@@ -529,7 +335,7 @@ module PulpRpmClient
529
335
  # Calculates hash code according to all attributes.
530
336
  # @return [Integer] Hash code
531
337
  def hash
532
- [pulp_href, pulp_created, id, updated_date, description, issued_date, fromstr, status, title, summary, version, type, severity, solution, release, rights, pushcount, pkglist, references].hash
338
+ [pulp_href, pulp_created, artifact, id, updated_date, description, issued_date, fromstr, status, title, summary, version, type, severity, solution, release, rights, pushcount, pkglist, references, reboot_suggested].hash
533
339
  end
534
340
 
535
341
  # Builds the object from hash
@@ -618,7 +424,11 @@ module PulpRpmClient
618
424
  hash = {}
619
425
  self.class.attribute_map.each_pair do |attr, param|
620
426
  value = self.send(attr)
621
- next if value.nil?
427
+ if value.nil?
428
+ is_nullable = self.class.openapi_nullable.include?(attr)
429
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
430
+ end
431
+
622
432
  hash[param] = _to_hash(value)
623
433
  end
624
434
  hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -76,6 +76,12 @@ module PulpRpmClient
76
76
  }
77
77
  end
78
78
 
79
+ # List of attributes with nullable: true
80
+ def self.openapi_nullable
81
+ Set.new([
82
+ ])
83
+ end
84
+
79
85
  # Initializes the object
80
86
  # @param [Hash] attributes Model attributes in the form of hash
81
87
  def initialize(attributes = {})
@@ -500,7 +506,11 @@ module PulpRpmClient
500
506
  hash = {}
501
507
  self.class.attribute_map.each_pair do |attr, param|
502
508
  value = self.send(attr)
503
- next if value.nil?
509
+ if value.nil?
510
+ is_nullable = self.class.openapi_nullable.include?(attr)
511
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
512
+ end
513
+
504
514
  hash[param] = _to_hash(value)
505
515
  end
506
516
  hash
@@ -6,10 +6,10 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.0.0b71572533171'
14
+ VERSION = '3.0.0rc1'
15
15
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -21,10 +21,15 @@ require 'pulp_rpm_client/models/addon'
21
21
  require 'pulp_rpm_client/models/artifact'
22
22
  require 'pulp_rpm_client/models/async_operation_response'
23
23
  require 'pulp_rpm_client/models/checksum'
24
- require 'pulp_rpm_client/models/distribution_tree'
24
+ require 'pulp_rpm_client/models/content_summary'
25
25
  require 'pulp_rpm_client/models/image'
26
26
  require 'pulp_rpm_client/models/inline_response200'
27
27
  require 'pulp_rpm_client/models/inline_response2001'
28
+ require 'pulp_rpm_client/models/inline_response20010'
29
+ require 'pulp_rpm_client/models/inline_response20011'
30
+ require 'pulp_rpm_client/models/inline_response20012'
31
+ require 'pulp_rpm_client/models/inline_response20013'
32
+ require 'pulp_rpm_client/models/inline_response20014'
28
33
  require 'pulp_rpm_client/models/inline_response2002'
29
34
  require 'pulp_rpm_client/models/inline_response2003'
30
35
  require 'pulp_rpm_client/models/inline_response2004'
@@ -32,28 +37,43 @@ require 'pulp_rpm_client/models/inline_response2005'
32
37
  require 'pulp_rpm_client/models/inline_response2006'
33
38
  require 'pulp_rpm_client/models/inline_response2007'
34
39
  require 'pulp_rpm_client/models/inline_response2008'
35
- require 'pulp_rpm_client/models/modulemd'
36
- require 'pulp_rpm_client/models/modulemd_defaults'
37
- require 'pulp_rpm_client/models/package'
38
- require 'pulp_rpm_client/models/repo_metadata_file'
40
+ require 'pulp_rpm_client/models/inline_response2009'
41
+ require 'pulp_rpm_client/models/repository_add_remove_content'
39
42
  require 'pulp_rpm_client/models/repository_sync_url'
40
- require 'pulp_rpm_client/models/rpm_distribution'
41
- require 'pulp_rpm_client/models/rpm_publication'
42
- require 'pulp_rpm_client/models/rpm_remote'
43
- require 'pulp_rpm_client/models/update_record'
43
+ require 'pulp_rpm_client/models/repository_version'
44
+ require 'pulp_rpm_client/models/rpm_distribution_tree'
45
+ require 'pulp_rpm_client/models/rpm_modulemd'
46
+ require 'pulp_rpm_client/models/rpm_modulemd_defaults'
47
+ require 'pulp_rpm_client/models/rpm_package'
48
+ require 'pulp_rpm_client/models/rpm_package_category'
49
+ require 'pulp_rpm_client/models/rpm_package_environment'
50
+ require 'pulp_rpm_client/models/rpm_package_group'
51
+ require 'pulp_rpm_client/models/rpm_package_langpacks'
52
+ require 'pulp_rpm_client/models/rpm_repo_metadata_file'
53
+ require 'pulp_rpm_client/models/rpm_rpm_distribution'
54
+ require 'pulp_rpm_client/models/rpm_rpm_publication'
55
+ require 'pulp_rpm_client/models/rpm_rpm_remote'
56
+ require 'pulp_rpm_client/models/rpm_rpm_repository'
57
+ require 'pulp_rpm_client/models/rpm_update_collection'
58
+ require 'pulp_rpm_client/models/rpm_update_record'
44
59
  require 'pulp_rpm_client/models/variant'
45
60
 
46
61
  # APIs
47
62
  require 'pulp_rpm_client/api/content_advisories_api'
48
63
  require 'pulp_rpm_client/api/content_distribution_trees_api'
49
- require 'pulp_rpm_client/api/content_modulemd_api'
50
64
  require 'pulp_rpm_client/api/content_modulemd_defaults_api'
65
+ require 'pulp_rpm_client/api/content_modulemds_api'
66
+ require 'pulp_rpm_client/api/content_packagecategories_api'
67
+ require 'pulp_rpm_client/api/content_packageenvironments_api'
68
+ require 'pulp_rpm_client/api/content_packagegroups_api'
69
+ require 'pulp_rpm_client/api/content_packagelangpacks_api'
51
70
  require 'pulp_rpm_client/api/content_packages_api'
52
71
  require 'pulp_rpm_client/api/content_repo_metadata_files_api'
53
72
  require 'pulp_rpm_client/api/distributions_rpm_api'
54
73
  require 'pulp_rpm_client/api/publications_rpm_api'
55
74
  require 'pulp_rpm_client/api/remotes_rpm_api'
56
- require 'pulp_rpm_client/api/rpm_copy_api'
75
+ require 'pulp_rpm_client/api/repositories_rpm_api'
76
+ require 'pulp_rpm_client/api/repositories_rpm_versions_api'
57
77
 
58
78
  module PulpRpmClient
59
79
  class << self
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: v3
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.2.1-SNAPSHOT
11
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
12
12
 
13
13
  =end
14
14
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -35,8 +35,11 @@ describe 'ContentAdvisoriesApi' do
35
35
  # unit tests for create
36
36
  # Create an update record
37
37
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
- # @param data
38
+ # @param relative_path Path where the artifact is located relative to distributions base_path
39
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [String] :artifact Artifact file representing the physical content
41
+ # @option opts [File] :file An uploaded file that should be turned into the artifact of the content unit.
42
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
40
43
  # @return [AsyncOperationResponse]
41
44
  describe 'create test' do
42
45
  it 'should work' do
@@ -77,7 +80,7 @@ describe 'ContentAdvisoriesApi' do
77
80
  # @param [Hash] opts the optional parameters
78
81
  # @option opts [String] :fields A list of fields to include in the response.
79
82
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
80
- # @return [UpdateRecord]
83
+ # @return [RpmUpdateRecord]
81
84
  describe 'read test' do
82
85
  it 'should work' do
83
86
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -69,7 +69,7 @@ describe 'ContentDistributionTreesApi' do
69
69
  # @param [Hash] opts the optional parameters
70
70
  # @option opts [String] :fields A list of fields to include in the response.
71
71
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
72
- # @return [DistributionTree]
72
+ # @return [RpmDistributionTree]
73
73
  describe 'read test' do
74
74
  it 'should work' do
75
75
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -71,11 +71,11 @@ describe 'ContentModulemdDefaultsApi' do
71
71
  # unit tests for read
72
72
  # Inspect a modulemd defaults
73
73
  # ViewSet for Modulemd.
74
- # @param modulemd_defaults_href URI of Modulemd Defaults. e.g.: /pulp/api/v3/content/rpm/modulemd-defaults/1/
74
+ # @param modulemd_defaults_href URI of Modulemd Defaults. e.g.: /pulp/api/v3/content/rpm/modulemd_defaults/1/
75
75
  # @param [Hash] opts the optional parameters
76
76
  # @option opts [String] :fields A list of fields to include in the response.
77
77
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
78
- # @return [ModulemdDefaults]
78
+ # @return [RpmModulemdDefaults]
79
79
  describe 'read test' do
80
80
  it 'should work' do
81
81
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers