pulp_rpm_client 3.35.2 → 3.37.0

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 (54) 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/Copy.md +3 -1
  6. data/docs/PatchedrpmRpmDistribution.md +2 -0
  7. data/docs/PatchedrpmRpmRepository.md +4 -2
  8. data/docs/RepositoriesRpmApi.md +18 -2
  9. data/docs/RepositoryAddRemoveContent.md +3 -1
  10. data/docs/RpmModulemd.md +2 -0
  11. data/docs/RpmModulemdDefaults.md +2 -0
  12. data/docs/RpmModulemdObsolete.md +2 -0
  13. data/docs/RpmPackageResponse.md +3 -1
  14. data/docs/RpmRpmDistribution.md +2 -0
  15. data/docs/RpmRpmDistributionResponse.md +4 -0
  16. data/docs/RpmRpmPublication.md +1 -1
  17. data/docs/RpmRpmPublicationResponse.md +1 -1
  18. data/docs/RpmRpmRepository.md +4 -2
  19. data/docs/RpmRpmRepositoryResponse.md +4 -2
  20. data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -0
  21. data/lib/pulp_rpm_client/api/content_packages_api.rb +12 -3
  22. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +27 -3
  23. data/lib/pulp_rpm_client/models/copy.rb +16 -4
  24. data/lib/pulp_rpm_client/models/layout_enum.rb +1 -2
  25. data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +12 -1
  26. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +34 -8
  27. data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +16 -4
  28. data/lib/pulp_rpm_client/models/rpm_modulemd.rb +11 -1
  29. data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +11 -1
  30. data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +11 -1
  31. data/lib/pulp_rpm_client/models/rpm_package_response.rb +17 -4
  32. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +12 -1
  33. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +22 -1
  34. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +1 -1
  35. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +1 -1
  36. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +34 -8
  37. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +34 -8
  38. data/lib/pulp_rpm_client/version.rb +1 -1
  39. data/spec/api/content_advisories_api_spec.rb +1 -0
  40. data/spec/api/content_packages_api_spec.rb +4 -1
  41. data/spec/api/repositories_rpm_api_spec.rb +9 -1
  42. data/spec/models/copy_spec.rb +6 -0
  43. data/spec/models/patchedrpm_rpm_distribution_spec.rb +6 -0
  44. data/spec/models/patchedrpm_rpm_repository_spec.rb +6 -0
  45. data/spec/models/repository_add_remove_content_spec.rb +6 -0
  46. data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
  47. data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
  48. data/spec/models/rpm_modulemd_spec.rb +6 -0
  49. data/spec/models/rpm_package_response_spec.rb +6 -0
  50. data/spec/models/rpm_rpm_distribution_response_spec.rb +12 -0
  51. data/spec/models/rpm_rpm_distribution_spec.rb +6 -0
  52. data/spec/models/rpm_rpm_repository_response_spec.rb +6 -0
  53. data/spec/models/rpm_rpm_repository_spec.rb +6 -0
  54. 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
 
@@ -38,6 +41,7 @@ module PulpRpmClient
38
41
  def self.attribute_map
39
42
  {
40
43
  :'repository' => :'repository',
44
+ :'overwrite' => :'overwrite',
41
45
  :'pulp_labels' => :'pulp_labels',
42
46
  :'_module' => :'module',
43
47
  :'stream' => :'stream',
@@ -55,6 +59,7 @@ module PulpRpmClient
55
59
  def self.openapi_types
56
60
  {
57
61
  :'repository' => :'String',
62
+ :'overwrite' => :'Boolean',
58
63
  :'pulp_labels' => :'Hash<String, String>',
59
64
  :'_module' => :'String',
60
65
  :'stream' => :'String',
@@ -89,6 +94,10 @@ module PulpRpmClient
89
94
  self.repository = attributes[:'repository']
90
95
  end
91
96
 
97
+ if attributes.key?(:'overwrite')
98
+ self.overwrite = attributes[:'overwrite']
99
+ end
100
+
92
101
  if attributes.key?(:'pulp_labels')
93
102
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
94
103
  self.pulp_labels = value
@@ -213,6 +222,7 @@ module PulpRpmClient
213
222
  return true if self.equal?(o)
214
223
  self.class == o.class &&
215
224
  repository == o.repository &&
225
+ overwrite == o.overwrite &&
216
226
  pulp_labels == o.pulp_labels &&
217
227
  _module == o._module &&
218
228
  stream == o.stream &&
@@ -229,7 +239,7 @@ module PulpRpmClient
229
239
  # Calculates hash code according to all attributes.
230
240
  # @return [Integer] Hash code
231
241
  def hash
232
- [repository, pulp_labels, _module, stream, profiles, snippet].hash
242
+ [repository, overwrite, pulp_labels, _module, stream, profiles, snippet].hash
233
243
  end
234
244
 
235
245
  # Builds the object from hash
@@ -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.37.0'
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.