pulp_rpm_client 3.35.1 → 3.35.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContentAdvisoriesApi.md +8 -6
  4. data/docs/ContentDistributionTreesApi.md +6 -6
  5. data/docs/ContentModulemdDefaultsApi.md +6 -6
  6. data/docs/ContentModulemdObsoletesApi.md +6 -6
  7. data/docs/ContentModulemdsApi.md +6 -6
  8. data/docs/ContentPackagecategoriesApi.md +6 -6
  9. data/docs/ContentPackageenvironmentsApi.md +6 -6
  10. data/docs/ContentPackagegroupsApi.md +6 -6
  11. data/docs/ContentPackagelangpacksApi.md +6 -6
  12. data/docs/ContentPackagesApi.md +10 -6
  13. data/docs/ContentRepoMetadataFilesApi.md +6 -6
  14. data/docs/DistributionsRpmApi.md +4 -4
  15. data/docs/PatchedrpmRpmDistribution.md +2 -0
  16. data/docs/PatchedrpmRpmRepository.md +3 -1
  17. data/docs/PublicationsRpmApi.md +2 -2
  18. data/docs/RepositoriesRpmApi.md +20 -4
  19. data/docs/RepositoryAddRemoveContent.md +3 -1
  20. data/docs/RpmModulemd.md +2 -0
  21. data/docs/RpmModulemdDefaults.md +2 -0
  22. data/docs/RpmModulemdObsolete.md +2 -0
  23. data/docs/RpmRpmDistribution.md +2 -0
  24. data/docs/RpmRpmDistributionResponse.md +4 -0
  25. data/docs/RpmRpmRepository.md +3 -1
  26. data/docs/RpmRpmRepositoryResponse.md +3 -1
  27. data/lib/pulp_rpm_client/api/content_advisories_api.rb +9 -6
  28. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +6 -6
  29. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +6 -6
  30. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +6 -6
  31. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +6 -6
  32. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +6 -6
  33. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +6 -6
  34. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +6 -6
  35. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +6 -6
  36. data/lib/pulp_rpm_client/api/content_packages_api.rb +12 -6
  37. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +6 -6
  38. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +4 -4
  39. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +2 -2
  40. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +29 -5
  41. data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +12 -1
  42. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +37 -7
  43. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +16 -4
  44. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +11 -1
  45. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +11 -1
  46. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +11 -1
  47. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +12 -1
  48. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +22 -1
  49. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +37 -7
  50. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +29 -8
  51. data/lib/pulp_rpm_client/models/set_label.rb +0 -11
  52. data/lib/pulp_rpm_client/models/set_label_response.rb +0 -21
  53. data/lib/pulp_rpm_client/models/unset_label.rb +0 -11
  54. data/lib/pulp_rpm_client/models/unset_label_response.rb +0 -21
  55. data/lib/pulp_rpm_client/version.rb +1 -1
  56. data/spec/api/content_advisories_api_spec.rb +4 -3
  57. data/spec/api/content_distribution_trees_api_spec.rb +3 -3
  58. data/spec/api/content_modulemd_defaults_api_spec.rb +3 -3
  59. data/spec/api/content_modulemd_obsoletes_api_spec.rb +3 -3
  60. data/spec/api/content_modulemds_api_spec.rb +3 -3
  61. data/spec/api/content_packagecategories_api_spec.rb +3 -3
  62. data/spec/api/content_packageenvironments_api_spec.rb +3 -3
  63. data/spec/api/content_packagegroups_api_spec.rb +3 -3
  64. data/spec/api/content_packagelangpacks_api_spec.rb +3 -3
  65. data/spec/api/content_packages_api_spec.rb +5 -3
  66. data/spec/api/content_repo_metadata_files_api_spec.rb +3 -3
  67. data/spec/api/distributions_rpm_api_spec.rb +2 -2
  68. data/spec/api/publications_rpm_api_spec.rb +1 -1
  69. data/spec/api/repositories_rpm_api_spec.rb +10 -2
  70. data/spec/models/patchedrpm_rpm_distribution_spec.rb +6 -0
  71. data/spec/models/patchedrpm_rpm_repository_spec.rb +6 -0
  72. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  73. data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
  74. data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
  75. data/spec/models/rpm_modulemd_spec.rb +6 -0
  76. data/spec/models/rpm_rpm_distribution_response_spec.rb +12 -0
  77. data/spec/models/rpm_rpm_distribution_spec.rb +6 -0
  78. data/spec/models/rpm_rpm_repository_response_spec.rb +6 -0
  79. data/spec/models/rpm_rpm_repository_spec.rb +6 -0
  80. metadata +83 -83
@@ -27,6 +27,9 @@ module PulpRpmClient
27
27
  # Retain X versions of the repository. Default is null which retains all versions.
28
28
  attr_accessor :retain_repo_versions
29
29
 
30
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
31
+ attr_accessor :retain_checkpoints
32
+
30
33
  # An optional remote to use by default when syncing.
31
34
  attr_accessor :remote
32
35
 
@@ -86,6 +89,7 @@ module PulpRpmClient
86
89
  :'name' => :'name',
87
90
  :'description' => :'description',
88
91
  :'retain_repo_versions' => :'retain_repo_versions',
92
+ :'retain_checkpoints' => :'retain_checkpoints',
89
93
  :'remote' => :'remote',
90
94
  :'autopublish' => :'autopublish',
91
95
  :'metadata_signing_service' => :'metadata_signing_service',
@@ -111,6 +115,7 @@ module PulpRpmClient
111
115
  :'name' => :'String',
112
116
  :'description' => :'String',
113
117
  :'retain_repo_versions' => :'Integer',
118
+ :'retain_checkpoints' => :'Integer',
114
119
  :'remote' => :'String',
115
120
  :'autopublish' => :'Boolean',
116
121
  :'metadata_signing_service' => :'String',
@@ -129,9 +134,11 @@ module PulpRpmClient
129
134
  Set.new([
130
135
  :'description',
131
136
  :'retain_repo_versions',
137
+ :'retain_checkpoints',
132
138
  :'remote',
133
139
  :'metadata_signing_service',
134
140
  :'package_signing_service',
141
+ :'package_signing_fingerprint',
135
142
  :'checksum_type',
136
143
  :'repo_config',
137
144
  :'compression_type',
@@ -174,6 +181,10 @@ module PulpRpmClient
174
181
  self.retain_repo_versions = attributes[:'retain_repo_versions']
175
182
  end
176
183
 
184
+ if attributes.key?(:'retain_checkpoints')
185
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
186
+ end
187
+
177
188
  if attributes.key?(:'remote')
178
189
  self.remote = attributes[:'remote']
179
190
  end
@@ -194,8 +205,6 @@ module PulpRpmClient
194
205
 
195
206
  if attributes.key?(:'package_signing_fingerprint')
196
207
  self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
197
- else
198
- self.package_signing_fingerprint = ''
199
208
  end
200
209
 
201
210
  if attributes.key?(:'retain_package_versions')
@@ -240,10 +249,18 @@ module PulpRpmClient
240
249
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
241
250
  end
242
251
 
252
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
253
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
254
+ end
255
+
243
256
  if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
244
257
  invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
245
258
  end
246
259
 
260
+ if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
261
+ invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be great than or equal to 1.')
262
+ end
263
+
247
264
  if !@retain_package_versions.nil? && @retain_package_versions < 0
248
265
  invalid_properties.push('invalid value for "retain_package_versions", must be greater than or equal to 0.')
249
266
  end
@@ -259,7 +276,9 @@ module PulpRpmClient
259
276
  return false if @name.to_s.length < 1
260
277
  return false if !@description.nil? && @description.to_s.length < 1
261
278
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
279
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
262
280
  return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
281
+ return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
263
282
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
264
283
  true
265
284
  end
@@ -298,15 +317,25 @@ module PulpRpmClient
298
317
  @retain_repo_versions = retain_repo_versions
299
318
  end
300
319
 
320
+ # Custom attribute writer method with validation
321
+ # @param [Object] retain_checkpoints Value to be assigned
322
+ def retain_checkpoints=(retain_checkpoints)
323
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
324
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
325
+ end
326
+
327
+ @retain_checkpoints = retain_checkpoints
328
+ end
329
+
301
330
  # Custom attribute writer method with validation
302
331
  # @param [Object] package_signing_fingerprint Value to be assigned
303
332
  def package_signing_fingerprint=(package_signing_fingerprint)
304
- if package_signing_fingerprint.nil?
305
- fail ArgumentError, 'package_signing_fingerprint cannot be nil'
333
+ if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 40
334
+ fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
306
335
  end
307
336
 
308
- if package_signing_fingerprint.to_s.length > 40
309
- fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
337
+ if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length < 1
338
+ fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be great than or equal to 1.'
310
339
  end
311
340
 
312
341
  @package_signing_fingerprint = package_signing_fingerprint
@@ -335,6 +364,7 @@ module PulpRpmClient
335
364
  name == o.name &&
336
365
  description == o.description &&
337
366
  retain_repo_versions == o.retain_repo_versions &&
367
+ retain_checkpoints == o.retain_checkpoints &&
338
368
  remote == o.remote &&
339
369
  autopublish == o.autopublish &&
340
370
  metadata_signing_service == o.metadata_signing_service &&
@@ -356,7 +386,7 @@ module PulpRpmClient
356
386
  # Calculates hash code according to all attributes.
357
387
  # @return [Integer] Hash code
358
388
  def hash
359
- [pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, package_signing_service, package_signing_fingerprint, retain_package_versions, checksum_type, repo_config, compression_type, layout].hash
389
+ [pulp_labels, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, metadata_signing_service, package_signing_service, package_signing_fingerprint, retain_package_versions, checksum_type, repo_config, compression_type, layout].hash
360
390
  end
361
391
 
362
392
  # Builds the object from hash
@@ -42,6 +42,9 @@ module PulpRpmClient
42
42
  # Retain X versions of the repository. Default is null which retains all versions.
43
43
  attr_accessor :retain_repo_versions
44
44
 
45
+ # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
46
+ attr_accessor :retain_checkpoints
47
+
45
48
  # An optional remote to use by default when syncing.
46
49
  attr_accessor :remote
47
50
 
@@ -122,6 +125,7 @@ module PulpRpmClient
122
125
  :'name' => :'name',
123
126
  :'description' => :'description',
124
127
  :'retain_repo_versions' => :'retain_repo_versions',
128
+ :'retain_checkpoints' => :'retain_checkpoints',
125
129
  :'remote' => :'remote',
126
130
  :'autopublish' => :'autopublish',
127
131
  :'metadata_signing_service' => :'metadata_signing_service',
@@ -158,6 +162,7 @@ module PulpRpmClient
158
162
  :'name' => :'String',
159
163
  :'description' => :'String',
160
164
  :'retain_repo_versions' => :'Integer',
165
+ :'retain_checkpoints' => :'Integer',
161
166
  :'remote' => :'String',
162
167
  :'autopublish' => :'Boolean',
163
168
  :'metadata_signing_service' => :'String',
@@ -181,9 +186,11 @@ module PulpRpmClient
181
186
  Set.new([
182
187
  :'description',
183
188
  :'retain_repo_versions',
189
+ :'retain_checkpoints',
184
190
  :'remote',
185
191
  :'metadata_signing_service',
186
192
  :'package_signing_service',
193
+ :'package_signing_fingerprint',
187
194
  :'checksum_type',
188
195
  :'package_checksum_type',
189
196
  :'repo_config',
@@ -251,6 +258,10 @@ module PulpRpmClient
251
258
  self.retain_repo_versions = attributes[:'retain_repo_versions']
252
259
  end
253
260
 
261
+ if attributes.key?(:'retain_checkpoints')
262
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
263
+ end
264
+
254
265
  if attributes.key?(:'remote')
255
266
  self.remote = attributes[:'remote']
256
267
  end
@@ -271,8 +282,6 @@ module PulpRpmClient
271
282
 
272
283
  if attributes.key?(:'package_signing_fingerprint')
273
284
  self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
274
- else
275
- self.package_signing_fingerprint = ''
276
285
  end
277
286
 
278
287
  if attributes.key?(:'retain_package_versions')
@@ -331,6 +340,10 @@ module PulpRpmClient
331
340
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
332
341
  end
333
342
 
343
+ if !@retain_checkpoints.nil? && @retain_checkpoints < 1
344
+ invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
345
+ end
346
+
334
347
  if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
335
348
  invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
336
349
  end
@@ -364,6 +377,7 @@ module PulpRpmClient
364
377
  warn '[DEPRECATED] the `valid?` method is obsolete'
365
378
  return false if @name.nil?
366
379
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
380
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
367
381
  return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
368
382
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
369
383
  return false if !@gpgcheck.nil? && @gpgcheck > 1
@@ -384,13 +398,19 @@ module PulpRpmClient
384
398
  end
385
399
 
386
400
  # Custom attribute writer method with validation
387
- # @param [Object] package_signing_fingerprint Value to be assigned
388
- def package_signing_fingerprint=(package_signing_fingerprint)
389
- if package_signing_fingerprint.nil?
390
- fail ArgumentError, 'package_signing_fingerprint cannot be nil'
401
+ # @param [Object] retain_checkpoints Value to be assigned
402
+ def retain_checkpoints=(retain_checkpoints)
403
+ if !retain_checkpoints.nil? && retain_checkpoints < 1
404
+ fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
391
405
  end
392
406
 
393
- if package_signing_fingerprint.to_s.length > 40
407
+ @retain_checkpoints = retain_checkpoints
408
+ end
409
+
410
+ # Custom attribute writer method with validation
411
+ # @param [Object] package_signing_fingerprint Value to be assigned
412
+ def package_signing_fingerprint=(package_signing_fingerprint)
413
+ if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 40
394
414
  fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
395
415
  end
396
416
 
@@ -462,6 +482,7 @@ module PulpRpmClient
462
482
  name == o.name &&
463
483
  description == o.description &&
464
484
  retain_repo_versions == o.retain_repo_versions &&
485
+ retain_checkpoints == o.retain_checkpoints &&
465
486
  remote == o.remote &&
466
487
  autopublish == o.autopublish &&
467
488
  metadata_signing_service == o.metadata_signing_service &&
@@ -488,7 +509,7 @@ module PulpRpmClient
488
509
  # Calculates hash code according to all attributes.
489
510
  # @return [Integer] Hash code
490
511
  def hash
491
- [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, package_signing_service, package_signing_fingerprint, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config, compression_type, layout].hash
512
+ [pulp_href, prn, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, retain_checkpoints, remote, autopublish, metadata_signing_service, package_signing_service, package_signing_fingerprint, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config, compression_type, layout].hash
492
513
  end
493
514
 
494
515
  # Builds the object from hash
@@ -89,11 +89,6 @@ module PulpRpmClient
89
89
  invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
90
90
  end
91
91
 
92
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
93
- if @key !~ pattern
94
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
95
- end
96
-
97
92
  invalid_properties
98
93
  end
99
94
 
@@ -103,7 +98,6 @@ module PulpRpmClient
103
98
  warn '[DEPRECATED] the `valid?` method is obsolete'
104
99
  return false if @key.nil?
105
100
  return false if @key.to_s.length < 1
106
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
107
101
  true
108
102
  end
109
103
 
@@ -118,11 +112,6 @@ module PulpRpmClient
118
112
  fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
119
113
  end
120
114
 
121
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
122
- if key !~ pattern
123
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
124
- end
125
-
126
115
  @key = key
127
116
  end
128
117
 
@@ -85,11 +85,6 @@ module PulpRpmClient
85
85
  invalid_properties.push('invalid value for "key", key cannot be nil.')
86
86
  end
87
87
 
88
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
89
- if @key !~ pattern
90
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
91
- end
92
-
93
88
  invalid_properties
94
89
  end
95
90
 
@@ -98,25 +93,9 @@ module PulpRpmClient
98
93
  def valid?
99
94
  warn '[DEPRECATED] the `valid?` method is obsolete'
100
95
  return false if @key.nil?
101
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
102
96
  true
103
97
  end
104
98
 
105
- # Custom attribute writer method with validation
106
- # @param [Object] key Value to be assigned
107
- def key=(key)
108
- if key.nil?
109
- fail ArgumentError, 'key cannot be nil'
110
- end
111
-
112
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
113
- if key !~ pattern
114
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
115
- end
116
-
117
- @key = key
118
- end
119
-
120
99
  # Checks equality by comparing each attribute.
121
100
  # @param [Object] Object to be compared
122
101
  def ==(o)
@@ -78,11 +78,6 @@ module PulpRpmClient
78
78
  invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
79
79
  end
80
80
 
81
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
82
- if @key !~ pattern
83
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
84
- end
85
-
86
81
  invalid_properties
87
82
  end
88
83
 
@@ -92,7 +87,6 @@ module PulpRpmClient
92
87
  warn '[DEPRECATED] the `valid?` method is obsolete'
93
88
  return false if @key.nil?
94
89
  return false if @key.to_s.length < 1
95
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
96
90
  true
97
91
  end
98
92
 
@@ -107,11 +101,6 @@ module PulpRpmClient
107
101
  fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
108
102
  end
109
103
 
110
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
111
- if key !~ pattern
112
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
113
- end
114
-
115
104
  @key = key
116
105
  end
117
106
 
@@ -82,11 +82,6 @@ module PulpRpmClient
82
82
  invalid_properties.push('invalid value for "key", key cannot be nil.')
83
83
  end
84
84
 
85
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
86
- if @key !~ pattern
87
- invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
88
- end
89
-
90
85
  invalid_properties
91
86
  end
92
87
 
@@ -95,25 +90,9 @@ module PulpRpmClient
95
90
  def valid?
96
91
  warn '[DEPRECATED] the `valid?` method is obsolete'
97
92
  return false if @key.nil?
98
- return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
99
93
  true
100
94
  end
101
95
 
102
- # Custom attribute writer method with validation
103
- # @param [Object] key Value to be assigned
104
- def key=(key)
105
- if key.nil?
106
- fail ArgumentError, 'key cannot be nil'
107
- end
108
-
109
- pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
110
- if key !~ pattern
111
- fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
112
- end
113
-
114
- @key = key
115
- end
116
-
117
96
  # Checks equality by comparing each attribute.
118
97
  # @param [Object] Object to be compared
119
98
  def ==(o)
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.35.1'
14
+ VERSION = '3.35.3'
15
15
  end
@@ -38,6 +38,7 @@ describe 'ContentAdvisoriesApi' do
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
40
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
41
42
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
42
43
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
44
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
@@ -66,9 +67,9 @@ describe 'ContentAdvisoriesApi' do
66
67
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
67
68
  # @option opts [String] :pulp_label_select Filter labels by search string
68
69
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
69
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
70
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
71
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
70
+ # @option opts [String] :repository_version
71
+ # @option opts [String] :repository_version_added
72
+ # @option opts [String] :repository_version_removed
72
73
  # @option opts [String] :severity Filter results where severity matches value
73
74
  # @option opts [Array<String>] :severity__in Filter results where severity is in a comma-separated list of values
74
75
  # @option opts [String] :severity__ne Filter results where severity not equal to value
@@ -46,9 +46,9 @@ describe 'ContentDistributionTreesApi' do
46
46
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
47
47
  # @option opts [String] :pulp_label_select Filter labels by search string
48
48
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
49
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
50
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
51
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
49
+ # @option opts [String] :repository_version
50
+ # @option opts [String] :repository_version_added
51
+ # @option opts [String] :repository_version_removed
52
52
  # @option opts [Array<String>] :fields A list of fields to include in the response.
53
53
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
54
54
  # @return [PaginatedrpmDistributionTreeResponseList]
@@ -61,9 +61,9 @@ describe 'ContentModulemdDefaultsApi' do
61
61
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
62
62
  # @option opts [String] :pulp_label_select Filter labels by search string
63
63
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
64
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
65
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
66
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
64
+ # @option opts [String] :repository_version
65
+ # @option opts [String] :repository_version_added
66
+ # @option opts [String] :repository_version_removed
67
67
  # @option opts [String] :sha256
68
68
  # @option opts [String] :stream Filter results where stream matches value
69
69
  # @option opts [Array<String>] :stream__in Filter results where stream is in a comma-separated list of values
@@ -59,9 +59,9 @@ describe 'ContentModulemdObsoletesApi' do
59
59
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
60
60
  # @option opts [String] :pulp_label_select Filter labels by search string
61
61
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
62
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
63
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
64
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
62
+ # @option opts [String] :repository_version
63
+ # @option opts [String] :repository_version_added
64
+ # @option opts [String] :repository_version_removed
65
65
  # @option opts [Array<String>] :fields A list of fields to include in the response.
66
66
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
67
67
  # @return [PaginatedrpmModulemdObsoleteResponseList]
@@ -65,9 +65,9 @@ describe 'ContentModulemdsApi' do
65
65
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
66
66
  # @option opts [String] :pulp_label_select Filter labels by search string
67
67
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
68
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
69
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
70
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
68
+ # @option opts [String] :repository_version
69
+ # @option opts [String] :repository_version_added
70
+ # @option opts [String] :repository_version_removed
71
71
  # @option opts [String] :sha256
72
72
  # @option opts [String] :stream Filter results where stream matches value
73
73
  # @option opts [Array<String>] :stream__in Filter results where stream is in a comma-separated list of values
@@ -46,9 +46,9 @@ describe 'ContentPackagecategoriesApi' do
46
46
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
47
47
  # @option opts [String] :pulp_label_select Filter labels by search string
48
48
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
49
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
50
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
51
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
49
+ # @option opts [String] :repository_version
50
+ # @option opts [String] :repository_version_added
51
+ # @option opts [String] :repository_version_removed
52
52
  # @option opts [Array<String>] :fields A list of fields to include in the response.
53
53
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
54
54
  # @return [PaginatedrpmPackageCategoryResponseList]
@@ -46,9 +46,9 @@ describe 'ContentPackageenvironmentsApi' do
46
46
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
47
47
  # @option opts [String] :pulp_label_select Filter labels by search string
48
48
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
49
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
50
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
51
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
49
+ # @option opts [String] :repository_version
50
+ # @option opts [String] :repository_version_added
51
+ # @option opts [String] :repository_version_removed
52
52
  # @option opts [Array<String>] :fields A list of fields to include in the response.
53
53
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
54
54
  # @return [PaginatedrpmPackageEnvironmentResponseList]
@@ -46,9 +46,9 @@ describe 'ContentPackagegroupsApi' do
46
46
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
47
47
  # @option opts [String] :pulp_label_select Filter labels by search string
48
48
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
49
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
50
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
51
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
49
+ # @option opts [String] :repository_version
50
+ # @option opts [String] :repository_version_added
51
+ # @option opts [String] :repository_version_removed
52
52
  # @option opts [Array<String>] :fields A list of fields to include in the response.
53
53
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
54
54
  # @return [PaginatedrpmPackageGroupResponseList]
@@ -46,9 +46,9 @@ describe 'ContentPackagelangpacksApi' do
46
46
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
47
47
  # @option opts [String] :pulp_label_select Filter labels by search string
48
48
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
49
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
50
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
51
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
49
+ # @option opts [String] :repository_version
50
+ # @option opts [String] :repository_version_added
51
+ # @option opts [String] :repository_version_removed
52
52
  # @option opts [Array<String>] :fields A list of fields to include in the response.
53
53
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
54
54
  # @return [PaginatedrpmPackageLangpacksResponseList]
@@ -38,6 +38,7 @@ describe 'ContentPackagesApi' do
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
40
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
41
42
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
42
43
  # @option opts [String] :artifact Artifact file representing the physical content
43
44
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
@@ -90,9 +91,9 @@ describe 'ContentPackagesApi' do
90
91
  # @option opts [Array<String>] :release__in Filter results where release is in a comma-separated list of values
91
92
  # @option opts [String] :release__ne Filter results where release not equal to value
92
93
  # @option opts [String] :release__startswith Filter results where release starts with value
93
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
94
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
95
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
94
+ # @option opts [String] :repository_version
95
+ # @option opts [String] :repository_version_added
96
+ # @option opts [String] :repository_version_removed
96
97
  # @option opts [String] :sha256
97
98
  # @option opts [String] :version Filter results where version matches value
98
99
  # @option opts [Array<String>] :version__in Filter results where version is in a comma-separated list of values
@@ -154,6 +155,7 @@ describe 'ContentPackagesApi' do
154
155
  # Synchronously upload an RPM package.
155
156
  # @param [Hash] opts the optional parameters
156
157
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
158
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
157
159
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
158
160
  # @option opts [String] :artifact Artifact file representing the physical content
159
161
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -46,9 +46,9 @@ describe 'ContentRepoMetadataFilesApi' do
46
46
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
47
47
  # @option opts [String] :pulp_label_select Filter labels by search string
48
48
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
49
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
50
- # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
51
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF/PRN
49
+ # @option opts [String] :repository_version
50
+ # @option opts [String] :repository_version_added
51
+ # @option opts [String] :repository_version_removed
52
52
  # @option opts [Array<String>] :fields A list of fields to include in the response.
53
53
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
54
54
  # @return [PaginatedrpmRepoMetadataFileResponseList]
@@ -99,8 +99,8 @@ describe 'DistributionsRpmApi' do
99
99
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
100
100
  # @option opts [String] :pulp_label_select Filter labels by search string
101
101
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
102
- # @option opts [String] :repository Filter results where repository matches value
103
- # @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
102
+ # @option opts [String] :repository
103
+ # @option opts [Array<String>] :repository__in
104
104
  # @option opts [String] :with_content Filter distributions based on the content served by them
105
105
  # @option opts [Array<String>] :fields A list of fields to include in the response.
106
106
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
@@ -95,7 +95,7 @@ describe 'PublicationsRpmApi' do
95
95
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
96
96
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
97
97
  # @option opts [String] :repository Repository referenced by HREF/PRN
98
- # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
98
+ # @option opts [String] :repository_version
99
99
  # @option opts [Array<String>] :fields A list of fields to include in the response.
100
100
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
101
101
  # @return [PaginatedrpmRpmPublicationResponseList]
@@ -89,13 +89,21 @@ describe 'RepositoriesRpmApi' do
89
89
  # @option opts [String] :name__regex Filter results where name matches regex value
90
90
  # @option opts [String] :name__startswith Filter results where name starts with value
91
91
  # @option opts [Integer] :offset The initial index from which to return the results.
92
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
92
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
93
93
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
94
94
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
95
95
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
96
96
  # @option opts [String] :pulp_label_select Filter labels by search string
97
97
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
98
- # @option opts [String] :remote Foreign Key referenced by HREF
98
+ # @option opts [String] :remote
99
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
100
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
101
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
102
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
103
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
104
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
105
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
106
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
99
107
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
100
108
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
101
109
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value