pulp_rpm_client 3.35.2 → 3.36.1

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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContentAdvisoriesApi.md +2 -0
  4. data/docs/ContentPackagesApi.md +8 -2
  5. data/docs/PatchedrpmRpmDistribution.md +2 -0
  6. data/docs/PatchedrpmRpmRepository.md +4 -2
  7. data/docs/RepositoriesRpmApi.md +18 -2
  8. data/docs/RepositoryAddRemoveContent.md +3 -1
  9. data/docs/RpmModulemd.md +2 -0
  10. data/docs/RpmModulemdDefaults.md +2 -0
  11. data/docs/RpmModulemdObsolete.md +2 -0
  12. data/docs/RpmPackageResponse.md +3 -1
  13. data/docs/RpmRpmDistribution.md +2 -0
  14. data/docs/RpmRpmDistributionResponse.md +4 -0
  15. data/docs/RpmRpmPublication.md +1 -1
  16. data/docs/RpmRpmPublicationResponse.md +1 -1
  17. data/docs/RpmRpmRepository.md +4 -2
  18. data/docs/RpmRpmRepositoryResponse.md +4 -2
  19. data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -0
  20. data/lib/pulp_rpm_client/api/content_packages_api.rb +12 -3
  21. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +27 -3
  22. data/lib/pulp_rpm_client/models/layout_enum.rb +1 -2
  23. data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +12 -1
  24. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +34 -8
  25. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +16 -4
  26. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +11 -1
  27. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +11 -1
  28. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +11 -1
  29. data/lib/pulp_rpm_client/models/rpm_package_response.rb +17 -4
  30. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +12 -1
  31. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +22 -1
  32. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +1 -1
  33. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +1 -1
  34. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +34 -8
  35. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +34 -8
  36. data/lib/pulp_rpm_client/version.rb +1 -1
  37. data/spec/api/content_advisories_api_spec.rb +1 -0
  38. data/spec/api/content_packages_api_spec.rb +4 -1
  39. data/spec/api/repositories_rpm_api_spec.rb +9 -1
  40. data/spec/models/patchedrpm_rpm_distribution_spec.rb +6 -0
  41. data/spec/models/patchedrpm_rpm_repository_spec.rb +6 -0
  42. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  43. data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
  44. data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
  45. data/spec/models/rpm_modulemd_spec.rb +6 -0
  46. data/spec/models/rpm_package_response_spec.rb +6 -0
  47. data/spec/models/rpm_rpm_distribution_response_spec.rb +12 -0
  48. data/spec/models/rpm_rpm_distribution_spec.rb +6 -0
  49. data/spec/models/rpm_rpm_repository_response_spec.rb +6 -0
  50. data/spec/models/rpm_rpm_repository_spec.rb +6 -0
  51. metadata +78 -78
@@ -19,6 +19,9 @@ module PulpRpmClient
19
19
  # A URI of a repository the new content unit should be associated with.
20
20
  attr_accessor :repository
21
21
 
22
+ # 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 'repository' is specified. Defaults to true.
23
+ attr_accessor :overwrite
24
+
22
25
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
23
26
  attr_accessor :pulp_labels
24
27
 
@@ -56,6 +59,7 @@ module PulpRpmClient
56
59
  def self.attribute_map
57
60
  {
58
61
  :'repository' => :'repository',
62
+ :'overwrite' => :'overwrite',
59
63
  :'pulp_labels' => :'pulp_labels',
60
64
  :'modified' => :'modified',
61
65
  :'module_name' => :'module_name',
@@ -79,6 +83,7 @@ module PulpRpmClient
79
83
  def self.openapi_types
80
84
  {
81
85
  :'repository' => :'String',
86
+ :'overwrite' => :'Boolean',
82
87
  :'pulp_labels' => :'Hash<String, String>',
83
88
  :'modified' => :'String',
84
89
  :'module_name' => :'String',
@@ -123,6 +128,10 @@ module PulpRpmClient
123
128
  self.repository = attributes[:'repository']
124
129
  end
125
130
 
131
+ if attributes.key?(:'overwrite')
132
+ self.overwrite = attributes[:'overwrite']
133
+ end
134
+
126
135
  if attributes.key?(:'pulp_labels')
127
136
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
128
137
  self.pulp_labels = value
@@ -406,6 +415,7 @@ module PulpRpmClient
406
415
  return true if self.equal?(o)
407
416
  self.class == o.class &&
408
417
  repository == o.repository &&
418
+ overwrite == o.overwrite &&
409
419
  pulp_labels == o.pulp_labels &&
410
420
  modified == o.modified &&
411
421
  module_name == o.module_name &&
@@ -428,7 +438,7 @@ module PulpRpmClient
428
438
  # Calculates hash code according to all attributes.
429
439
  # @return [Integer] Hash code
430
440
  def hash
431
- [repository, pulp_labels, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
441
+ [repository, overwrite, pulp_labels, modified, module_name, module_stream, message, override_previous, module_context, eol_date, obsoleted_by_module_name, obsoleted_by_module_stream, snippet].hash
432
442
  end
433
443
 
434
444
  # Builds the object from hash
@@ -161,6 +161,9 @@ module PulpRpmClient
161
161
  # The 'file' time attribute in the primary XML - file mtime in seconds since the epoch.
162
162
  attr_accessor :time_file
163
163
 
164
+ # List of signing key fingerprints used to sign this package.
165
+ attr_accessor :signing_keys
166
+
164
167
  # Attribute mapping from ruby-style variable name to JSON key.
165
168
  def self.attribute_map
166
169
  {
@@ -212,7 +215,8 @@ module PulpRpmClient
212
215
  :'size_installed' => :'size_installed',
213
216
  :'size_package' => :'size_package',
214
217
  :'time_build' => :'time_build',
215
- :'time_file' => :'time_file'
218
+ :'time_file' => :'time_file',
219
+ :'signing_keys' => :'signing_keys'
216
220
  }
217
221
  end
218
222
 
@@ -272,7 +276,8 @@ module PulpRpmClient
272
276
  :'size_installed' => :'Integer',
273
277
  :'size_package' => :'Integer',
274
278
  :'time_build' => :'Integer',
275
- :'time_file' => :'Integer'
279
+ :'time_file' => :'Integer',
280
+ :'signing_keys' => :'Array<String>'
276
281
  }
277
282
  end
278
283
 
@@ -289,6 +294,7 @@ module PulpRpmClient
289
294
  :'enhances',
290
295
  :'recommends',
291
296
  :'supplements',
297
+ :'signing_keys'
292
298
  ])
293
299
  end
294
300
 
@@ -504,6 +510,12 @@ module PulpRpmClient
504
510
  if attributes.key?(:'time_file')
505
511
  self.time_file = attributes[:'time_file']
506
512
  end
513
+
514
+ if attributes.key?(:'signing_keys')
515
+ if (value = attributes[:'signing_keys']).is_a?(Array)
516
+ self.signing_keys = value
517
+ end
518
+ end
507
519
  end
508
520
 
509
521
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -574,7 +586,8 @@ module PulpRpmClient
574
586
  size_installed == o.size_installed &&
575
587
  size_package == o.size_package &&
576
588
  time_build == o.time_build &&
577
- time_file == o.time_file
589
+ time_file == o.time_file &&
590
+ signing_keys == o.signing_keys
578
591
  end
579
592
 
580
593
  # @see the `==` method
@@ -586,7 +599,7 @@ module PulpRpmClient
586
599
  # Calculates hash code according to all attributes.
587
600
  # @return [Integer] Hash code
588
601
  def hash
589
- [pulp_href, prn, pulp_created, pulp_last_updated, md5, sha1, sha224, sha256, sha384, sha512, pulp_labels, vuln_report, artifact, name, epoch, version, release, arch, pkg_id, checksum_type, summary, description, url, changelogs, files, requires, provides, conflicts, obsoletes, suggests, enhances, recommends, supplements, location_base, location_href, rpm_buildhost, rpm_group, rpm_license, rpm_packager, rpm_sourcerpm, rpm_vendor, rpm_header_start, rpm_header_end, is_modular, size_archive, size_installed, size_package, time_build, time_file].hash
602
+ [pulp_href, prn, pulp_created, pulp_last_updated, md5, sha1, sha224, sha256, sha384, sha512, pulp_labels, vuln_report, artifact, name, epoch, version, release, arch, pkg_id, checksum_type, summary, description, url, changelogs, files, requires, provides, conflicts, obsoletes, suggests, enhances, recommends, supplements, location_base, location_href, rpm_buildhost, rpm_group, rpm_license, rpm_packager, rpm_sourcerpm, rpm_vendor, rpm_header_start, rpm_header_end, is_modular, size_archive, size_installed, size_package, time_build, time_file, signing_keys].hash
590
603
  end
591
604
 
592
605
  # Builds the object from hash
@@ -33,6 +33,9 @@ module PulpRpmClient
33
33
  # The latest RepositoryVersion for this Repository will be served.
34
34
  attr_accessor :repository
35
35
 
36
+ # RepositoryVersion to be served
37
+ attr_accessor :repository_version
38
+
36
39
  # Publication to be served
37
40
  attr_accessor :publication
38
41
 
@@ -50,6 +53,7 @@ module PulpRpmClient
50
53
  :'pulp_labels' => :'pulp_labels',
51
54
  :'name' => :'name',
52
55
  :'repository' => :'repository',
56
+ :'repository_version' => :'repository_version',
53
57
  :'publication' => :'publication',
54
58
  :'generate_repo_config' => :'generate_repo_config',
55
59
  :'checkpoint' => :'checkpoint'
@@ -70,6 +74,7 @@ module PulpRpmClient
70
74
  :'pulp_labels' => :'Hash<String, String>',
71
75
  :'name' => :'String',
72
76
  :'repository' => :'String',
77
+ :'repository_version' => :'String',
73
78
  :'publication' => :'String',
74
79
  :'generate_repo_config' => :'Boolean',
75
80
  :'checkpoint' => :'Boolean'
@@ -81,6 +86,7 @@ module PulpRpmClient
81
86
  Set.new([
82
87
  :'content_guard',
83
88
  :'repository',
89
+ :'repository_version',
84
90
  :'publication',
85
91
  ])
86
92
  end
@@ -132,6 +138,10 @@ module PulpRpmClient
132
138
  self.repository = attributes[:'repository']
133
139
  end
134
140
 
141
+ if attributes.key?(:'repository_version')
142
+ self.repository_version = attributes[:'repository_version']
143
+ end
144
+
135
145
  if attributes.key?(:'publication')
136
146
  self.publication = attributes[:'publication']
137
147
  end
@@ -221,6 +231,7 @@ module PulpRpmClient
221
231
  pulp_labels == o.pulp_labels &&
222
232
  name == o.name &&
223
233
  repository == o.repository &&
234
+ repository_version == o.repository_version &&
224
235
  publication == o.publication &&
225
236
  generate_repo_config == o.generate_repo_config &&
226
237
  checkpoint == o.checkpoint
@@ -235,7 +246,7 @@ module PulpRpmClient
235
246
  # Calculates hash code according to all attributes.
236
247
  # @return [Integer] Hash code
237
248
  def hash
238
- [base_path, content_guard, hidden, pulp_labels, name, repository, publication, generate_repo_config, checkpoint].hash
249
+ [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version, publication, generate_repo_config, checkpoint].hash
239
250
  end
240
251
 
241
252
  # Builds the object from hash
@@ -36,6 +36,9 @@ module PulpRpmClient
36
36
  # An optional content-guard.
37
37
  attr_accessor :content_guard
38
38
 
39
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
40
+ attr_accessor :content_guard_prn
41
+
39
42
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
40
43
  attr_accessor :no_content_change_since
41
44
 
@@ -50,6 +53,9 @@ module PulpRpmClient
50
53
  # The latest RepositoryVersion for this Repository will be served.
51
54
  attr_accessor :repository
52
55
 
56
+ # RepositoryVersion to be served
57
+ attr_accessor :repository_version
58
+
53
59
  # Publication to be served
54
60
  attr_accessor :publication
55
61
 
@@ -68,11 +74,13 @@ module PulpRpmClient
68
74
  :'base_path' => :'base_path',
69
75
  :'base_url' => :'base_url',
70
76
  :'content_guard' => :'content_guard',
77
+ :'content_guard_prn' => :'content_guard_prn',
71
78
  :'no_content_change_since' => :'no_content_change_since',
72
79
  :'hidden' => :'hidden',
73
80
  :'pulp_labels' => :'pulp_labels',
74
81
  :'name' => :'name',
75
82
  :'repository' => :'repository',
83
+ :'repository_version' => :'repository_version',
76
84
  :'publication' => :'publication',
77
85
  :'generate_repo_config' => :'generate_repo_config',
78
86
  :'checkpoint' => :'checkpoint'
@@ -94,11 +102,13 @@ module PulpRpmClient
94
102
  :'base_path' => :'String',
95
103
  :'base_url' => :'String',
96
104
  :'content_guard' => :'String',
105
+ :'content_guard_prn' => :'String',
97
106
  :'no_content_change_since' => :'String',
98
107
  :'hidden' => :'Boolean',
99
108
  :'pulp_labels' => :'Hash<String, String>',
100
109
  :'name' => :'String',
101
110
  :'repository' => :'String',
111
+ :'repository_version' => :'String',
102
112
  :'publication' => :'String',
103
113
  :'generate_repo_config' => :'Boolean',
104
114
  :'checkpoint' => :'Boolean'
@@ -110,6 +120,7 @@ module PulpRpmClient
110
120
  Set.new([
111
121
  :'content_guard',
112
122
  :'repository',
123
+ :'repository_version',
113
124
  :'publication',
114
125
  ])
115
126
  end
@@ -159,6 +170,10 @@ module PulpRpmClient
159
170
  self.content_guard = attributes[:'content_guard']
160
171
  end
161
172
 
173
+ if attributes.key?(:'content_guard_prn')
174
+ self.content_guard_prn = attributes[:'content_guard_prn']
175
+ end
176
+
162
177
  if attributes.key?(:'no_content_change_since')
163
178
  self.no_content_change_since = attributes[:'no_content_change_since']
164
179
  end
@@ -185,6 +200,10 @@ module PulpRpmClient
185
200
  self.repository = attributes[:'repository']
186
201
  end
187
202
 
203
+ if attributes.key?(:'repository_version')
204
+ self.repository_version = attributes[:'repository_version']
205
+ end
206
+
188
207
  if attributes.key?(:'publication')
189
208
  self.publication = attributes[:'publication']
190
209
  end
@@ -237,11 +256,13 @@ module PulpRpmClient
237
256
  base_path == o.base_path &&
238
257
  base_url == o.base_url &&
239
258
  content_guard == o.content_guard &&
259
+ content_guard_prn == o.content_guard_prn &&
240
260
  no_content_change_since == o.no_content_change_since &&
241
261
  hidden == o.hidden &&
242
262
  pulp_labels == o.pulp_labels &&
243
263
  name == o.name &&
244
264
  repository == o.repository &&
265
+ repository_version == o.repository_version &&
245
266
  publication == o.publication &&
246
267
  generate_repo_config == o.generate_repo_config &&
247
268
  checkpoint == o.checkpoint
@@ -256,7 +277,7 @@ module PulpRpmClient
256
277
  # Calculates hash code according to all attributes.
257
278
  # @return [Integer] Hash code
258
279
  def hash
259
- [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, no_content_change_since, hidden, pulp_labels, name, repository, publication, generate_repo_config, checkpoint].hash
280
+ [pulp_href, prn, pulp_created, pulp_last_updated, base_path, base_url, content_guard, content_guard_prn, no_content_change_since, hidden, pulp_labels, name, repository, repository_version, publication, generate_repo_config, checkpoint].hash
260
281
  end
261
282
 
262
283
  # Builds the object from hash
@@ -32,7 +32,7 @@ module PulpRpmClient
32
32
  # The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz * `none` - none
33
33
  attr_accessor :compression_type
34
34
 
35
- # How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat * `nested_by_digest` - nested_by_digest * `nested_by_both` - nested_by_both
35
+ # How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat * `nested_by_digest` - nested_by_digest
36
36
  attr_accessor :layout
37
37
 
38
38
  class EnumAttributeValidator
@@ -58,7 +58,7 @@ module PulpRpmClient
58
58
  # The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz * `none` - none
59
59
  attr_accessor :compression_type
60
60
 
61
- # How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat * `nested_by_digest` - nested_by_digest * `nested_by_both` - nested_by_both
61
+ # How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat * `nested_by_digest` - nested_by_digest
62
62
  attr_accessor :layout
63
63
 
64
64
  class EnumAttributeValidator
@@ -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
 
@@ -39,7 +42,7 @@ module PulpRpmClient
39
42
  # A reference to an associated package signing service.
40
43
  attr_accessor :package_signing_service
41
44
 
42
- # The pubkey V4 fingerprint (160 bits) to be passed to the package signing service.The signing service will use that on signing operations related to this repository.
45
+ # The pubkey fingerprint to be passed to the package signing service. Format: 'v<N>:<hex-fingerprint>' or 'keyid:<16-hex-char>'. Example: 'v4:ABCDEF1234567890ABCDEF1234567890ABCDEF12'.
43
46
  attr_accessor :package_signing_fingerprint
44
47
 
45
48
  # The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package.
@@ -54,7 +57,7 @@ module PulpRpmClient
54
57
  # The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz * `none` - none
55
58
  attr_accessor :compression_type
56
59
 
57
- # How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat * `nested_by_digest` - nested_by_digest * `nested_by_both` - nested_by_both
60
+ # How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat * `nested_by_digest` - nested_by_digest
58
61
  attr_accessor :layout
59
62
 
60
63
  class EnumAttributeValidator
@@ -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,6 +134,7 @@ 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',
@@ -175,6 +181,10 @@ module PulpRpmClient
175
181
  self.retain_repo_versions = attributes[:'retain_repo_versions']
176
182
  end
177
183
 
184
+ if attributes.key?(:'retain_checkpoints')
185
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
186
+ end
187
+
178
188
  if attributes.key?(:'remote')
179
189
  self.remote = attributes[:'remote']
180
190
  end
@@ -239,8 +249,12 @@ module PulpRpmClient
239
249
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
240
250
  end
241
251
 
242
- if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
243
- invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
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
+
256
+ if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 68
257
+ invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 68.')
244
258
  end
245
259
 
246
260
  if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
@@ -262,7 +276,8 @@ module PulpRpmClient
262
276
  return false if @name.to_s.length < 1
263
277
  return false if !@description.nil? && @description.to_s.length < 1
264
278
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
265
- return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
279
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
280
+ return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 68
266
281
  return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
267
282
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
268
283
  true
@@ -302,11 +317,21 @@ module PulpRpmClient
302
317
  @retain_repo_versions = retain_repo_versions
303
318
  end
304
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
+
305
330
  # Custom attribute writer method with validation
306
331
  # @param [Object] package_signing_fingerprint Value to be assigned
307
332
  def package_signing_fingerprint=(package_signing_fingerprint)
308
- if !package_signing_fingerprint.nil? && 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.'
333
+ if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 68
334
+ fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 68.'
310
335
  end
311
336
 
312
337
  if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length < 1
@@ -339,6 +364,7 @@ module PulpRpmClient
339
364
  name == o.name &&
340
365
  description == o.description &&
341
366
  retain_repo_versions == o.retain_repo_versions &&
367
+ retain_checkpoints == o.retain_checkpoints &&
342
368
  remote == o.remote &&
343
369
  autopublish == o.autopublish &&
344
370
  metadata_signing_service == o.metadata_signing_service &&
@@ -360,7 +386,7 @@ module PulpRpmClient
360
386
  # Calculates hash code according to all attributes.
361
387
  # @return [Integer] Hash code
362
388
  def hash
363
- [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
364
390
  end
365
391
 
366
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
 
@@ -54,7 +57,7 @@ module PulpRpmClient
54
57
  # A reference to an associated package signing service.
55
58
  attr_accessor :package_signing_service
56
59
 
57
- # The pubkey V4 fingerprint (160 bits) to be passed to the package signing service.The signing service will use that on signing operations related to this repository.
60
+ # The pubkey fingerprint to be passed to the package signing service. Format: 'v<N>:<hex-fingerprint>' or 'keyid:<16-hex-char>'. Example: 'v4:ABCDEF1234567890ABCDEF1234567890ABCDEF12'.
58
61
  attr_accessor :package_signing_fingerprint
59
62
 
60
63
  # The number of versions of each package to keep in the repository; older versions will be purged. The default is '0', which will disable this feature and keep all versions of each package.
@@ -84,7 +87,7 @@ module PulpRpmClient
84
87
  # The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz * `none` - none
85
88
  attr_accessor :compression_type
86
89
 
87
- # How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat * `nested_by_digest` - nested_by_digest * `nested_by_both` - nested_by_both
90
+ # How to layout the packages within the published repository. * `nested_alphabetically` - nested_alphabetically * `flat` - flat * `nested_by_digest` - nested_by_digest
88
91
  attr_accessor :layout
89
92
 
90
93
  class EnumAttributeValidator
@@ -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,6 +186,7 @@ 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',
@@ -252,6 +258,10 @@ module PulpRpmClient
252
258
  self.retain_repo_versions = attributes[:'retain_repo_versions']
253
259
  end
254
260
 
261
+ if attributes.key?(:'retain_checkpoints')
262
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
263
+ end
264
+
255
265
  if attributes.key?(:'remote')
256
266
  self.remote = attributes[:'remote']
257
267
  end
@@ -330,8 +340,12 @@ module PulpRpmClient
330
340
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
331
341
  end
332
342
 
333
- if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
334
- invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
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
+
347
+ if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 68
348
+ invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 68.')
335
349
  end
336
350
 
337
351
  if !@retain_package_versions.nil? && @retain_package_versions < 0
@@ -363,7 +377,8 @@ module PulpRpmClient
363
377
  warn '[DEPRECATED] the `valid?` method is obsolete'
364
378
  return false if @name.nil?
365
379
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
366
- return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
380
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
381
+ return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 68
367
382
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
368
383
  return false if !@gpgcheck.nil? && @gpgcheck > 1
369
384
  return false if !@gpgcheck.nil? && @gpgcheck < 0
@@ -382,11 +397,21 @@ module PulpRpmClient
382
397
  @retain_repo_versions = retain_repo_versions
383
398
  end
384
399
 
400
+ # Custom attribute writer method with validation
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.'
405
+ end
406
+
407
+ @retain_checkpoints = retain_checkpoints
408
+ end
409
+
385
410
  # Custom attribute writer method with validation
386
411
  # @param [Object] package_signing_fingerprint Value to be assigned
387
412
  def package_signing_fingerprint=(package_signing_fingerprint)
388
- if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 40
389
- fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
413
+ if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 68
414
+ fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 68.'
390
415
  end
391
416
 
392
417
  @package_signing_fingerprint = package_signing_fingerprint
@@ -457,6 +482,7 @@ module PulpRpmClient
457
482
  name == o.name &&
458
483
  description == o.description &&
459
484
  retain_repo_versions == o.retain_repo_versions &&
485
+ retain_checkpoints == o.retain_checkpoints &&
460
486
  remote == o.remote &&
461
487
  autopublish == o.autopublish &&
462
488
  metadata_signing_service == o.metadata_signing_service &&
@@ -483,7 +509,7 @@ module PulpRpmClient
483
509
  # Calculates hash code according to all attributes.
484
510
  # @return [Integer] Hash code
485
511
  def hash
486
- [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
487
513
  end
488
514
 
489
515
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpRpmClient
14
- VERSION = '3.35.2'
14
+ VERSION = '3.36.1'
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.
@@ -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
@@ -76,7 +77,7 @@ describe 'ContentPackagesApi' do
76
77
  # @option opts [String] :name__ne Filter results where name not equal to value
77
78
  # @option opts [String] :name__startswith Filter results where name starts with value
78
79
  # @option opts [Integer] :offset The initial index from which to return the results.
79
- # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;epoch&#x60; - Epoch * &#x60;-epoch&#x60; - Epoch (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;evr&#x60; - Evr * &#x60;-evr&#x60; - Evr (descending) * &#x60;pkgId&#x60; - Pkgid * &#x60;-pkgId&#x60; - Pkgid (descending) * &#x60;checksum_type&#x60; - Checksum type * &#x60;-checksum_type&#x60; - Checksum type (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;changelogs&#x60; - Changelogs * &#x60;-changelogs&#x60; - Changelogs (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;requires&#x60; - Requires * &#x60;-requires&#x60; - Requires (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;obsoletes&#x60; - Obsoletes * &#x60;-obsoletes&#x60; - Obsoletes (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;supplements&#x60; - Supplements * &#x60;-supplements&#x60; - Supplements (descending) * &#x60;location_base&#x60; - Location base * &#x60;-location_base&#x60; - Location base (descending) * &#x60;location_href&#x60; - Location href * &#x60;-location_href&#x60; - Location href (descending) * &#x60;rpm_buildhost&#x60; - Rpm buildhost * &#x60;-rpm_buildhost&#x60; - Rpm buildhost (descending) * &#x60;rpm_group&#x60; - Rpm group * &#x60;-rpm_group&#x60; - Rpm group (descending) * &#x60;rpm_license&#x60; - Rpm license * &#x60;-rpm_license&#x60; - Rpm license (descending) * &#x60;rpm_packager&#x60; - Rpm packager * &#x60;-rpm_packager&#x60; - Rpm packager (descending) * &#x60;rpm_sourcerpm&#x60; - Rpm sourcerpm * &#x60;-rpm_sourcerpm&#x60; - Rpm sourcerpm (descending) * &#x60;rpm_vendor&#x60; - Rpm vendor * &#x60;-rpm_vendor&#x60; - Rpm vendor (descending) * &#x60;rpm_header_start&#x60; - Rpm header start * &#x60;-rpm_header_start&#x60; - Rpm header start (descending) * &#x60;rpm_header_end&#x60; - Rpm header end * &#x60;-rpm_header_end&#x60; - Rpm header end (descending) * &#x60;size_archive&#x60; - Size archive * &#x60;-size_archive&#x60; - Size archive (descending) * &#x60;size_installed&#x60; - Size installed * &#x60;-size_installed&#x60; - Size installed (descending) * &#x60;size_package&#x60; - Size package * &#x60;-size_package&#x60; - Size package (descending) * &#x60;time_build&#x60; - Time build * &#x60;-time_build&#x60; - Time build (descending) * &#x60;time_file&#x60; - Time file * &#x60;-time_file&#x60; - Time file (descending) * &#x60;is_modular&#x60; - Is modular * &#x60;-is_modular&#x60; - Is modular (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
80
+ # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;epoch&#x60; - Epoch * &#x60;-epoch&#x60; - Epoch (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;release&#x60; - Release * &#x60;-release&#x60; - Release (descending) * &#x60;arch&#x60; - Arch * &#x60;-arch&#x60; - Arch (descending) * &#x60;evr&#x60; - Evr * &#x60;-evr&#x60; - Evr (descending) * &#x60;pkgId&#x60; - Pkgid * &#x60;-pkgId&#x60; - Pkgid (descending) * &#x60;checksum_type&#x60; - Checksum type * &#x60;-checksum_type&#x60; - Checksum type (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;changelogs&#x60; - Changelogs * &#x60;-changelogs&#x60; - Changelogs (descending) * &#x60;files&#x60; - Files * &#x60;-files&#x60; - Files (descending) * &#x60;requires&#x60; - Requires * &#x60;-requires&#x60; - Requires (descending) * &#x60;provides&#x60; - Provides * &#x60;-provides&#x60; - Provides (descending) * &#x60;conflicts&#x60; - Conflicts * &#x60;-conflicts&#x60; - Conflicts (descending) * &#x60;obsoletes&#x60; - Obsoletes * &#x60;-obsoletes&#x60; - Obsoletes (descending) * &#x60;suggests&#x60; - Suggests * &#x60;-suggests&#x60; - Suggests (descending) * &#x60;enhances&#x60; - Enhances * &#x60;-enhances&#x60; - Enhances (descending) * &#x60;recommends&#x60; - Recommends * &#x60;-recommends&#x60; - Recommends (descending) * &#x60;supplements&#x60; - Supplements * &#x60;-supplements&#x60; - Supplements (descending) * &#x60;location_base&#x60; - Location base * &#x60;-location_base&#x60; - Location base (descending) * &#x60;location_href&#x60; - Location href * &#x60;-location_href&#x60; - Location href (descending) * &#x60;rpm_buildhost&#x60; - Rpm buildhost * &#x60;-rpm_buildhost&#x60; - Rpm buildhost (descending) * &#x60;rpm_group&#x60; - Rpm group * &#x60;-rpm_group&#x60; - Rpm group (descending) * &#x60;rpm_license&#x60; - Rpm license * &#x60;-rpm_license&#x60; - Rpm license (descending) * &#x60;rpm_packager&#x60; - Rpm packager * &#x60;-rpm_packager&#x60; - Rpm packager (descending) * &#x60;rpm_sourcerpm&#x60; - Rpm sourcerpm * &#x60;-rpm_sourcerpm&#x60; - Rpm sourcerpm (descending) * &#x60;rpm_vendor&#x60; - Rpm vendor * &#x60;-rpm_vendor&#x60; - Rpm vendor (descending) * &#x60;rpm_header_start&#x60; - Rpm header start * &#x60;-rpm_header_start&#x60; - Rpm header start (descending) * &#x60;rpm_header_end&#x60; - Rpm header end * &#x60;-rpm_header_end&#x60; - Rpm header end (descending) * &#x60;size_archive&#x60; - Size archive * &#x60;-size_archive&#x60; - Size archive (descending) * &#x60;size_installed&#x60; - Size installed * &#x60;-size_installed&#x60; - Size installed (descending) * &#x60;size_package&#x60; - Size package * &#x60;-size_package&#x60; - Size package (descending) * &#x60;time_build&#x60; - Time build * &#x60;-time_build&#x60; - Time build (descending) * &#x60;time_file&#x60; - Time file * &#x60;-time_file&#x60; - Time file (descending) * &#x60;is_modular&#x60; - Is modular * &#x60;-is_modular&#x60; - Is modular (descending) * &#x60;signing_keys&#x60; - Signing keys * &#x60;-signing_keys&#x60; - Signing keys (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
80
81
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
81
82
  # @option opts [String] :pkg_id Filter results where pkgId matches value
82
83
  # @option opts [Array<String>] :pkg_id__in Filter results where pkgId is in a comma-separated list of values
@@ -94,6 +95,7 @@ describe 'ContentPackagesApi' do
94
95
  # @option opts [String] :repository_version_added
95
96
  # @option opts [String] :repository_version_removed
96
97
  # @option opts [String] :sha256
98
+ # @option opts [String] :signing_key
97
99
  # @option opts [String] :version Filter results where version matches value
98
100
  # @option opts [Array<String>] :version__in Filter results where version is in a comma-separated list of values
99
101
  # @option opts [String] :version__ne Filter results where version not equal to value
@@ -154,6 +156,7 @@ describe 'ContentPackagesApi' do
154
156
  # Synchronously upload an RPM package.
155
157
  # @param [Hash] opts the optional parameters
156
158
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
159
+ # @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
160
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
158
161
  # @option opts [String] :artifact Artifact file representing the physical content
159
162
  # @option opts [File] :file An uploaded file that may be turned into the content unit.