pulp_rpm_client 3.29.13 → 3.30.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 (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -8
  3. data/docs/AcsRpmApi.md +28 -64
  4. data/docs/ContentAdvisoriesApi.md +8 -22
  5. data/docs/ContentDistributionTreesApi.md +8 -20
  6. data/docs/ContentModulemdDefaultsApi.md +12 -28
  7. data/docs/ContentModulemdObsoletesApi.md +12 -28
  8. data/docs/ContentModulemdsApi.md +12 -28
  9. data/docs/ContentPackagecategoriesApi.md +8 -20
  10. data/docs/ContentPackageenvironmentsApi.md +8 -20
  11. data/docs/ContentPackagegroupsApi.md +8 -20
  12. data/docs/ContentPackagelangpacksApi.md +8 -20
  13. data/docs/ContentPackagesApi.md +8 -22
  14. data/docs/ContentRepoMetadataFilesApi.md +8 -20
  15. data/docs/DistributionsRpmApi.md +32 -72
  16. data/docs/PatchedrpmRpmDistribution.md +3 -1
  17. data/docs/PatchedrpmRpmRepository.md +2 -10
  18. data/docs/PublicationsRpmApi.md +16 -40
  19. data/docs/RemotesRpmApi.md +32 -72
  20. data/docs/RemotesUlnApi.md +32 -72
  21. data/docs/RepositoriesRpmApi.md +40 -88
  22. data/docs/RepositoriesRpmVersionsApi.md +10 -22
  23. data/docs/RpmCompsApi.md +0 -2
  24. data/docs/RpmCopyApi.md +4 -8
  25. data/docs/RpmPackageResponse.md +2 -2
  26. data/docs/RpmPruneApi.md +4 -8
  27. data/docs/RpmRpmDistribution.md +3 -1
  28. data/docs/RpmRpmDistributionResponse.md +3 -1
  29. data/docs/RpmRpmPublication.md +3 -9
  30. data/docs/RpmRpmPublicationResponse.md +8 -6
  31. data/docs/RpmRpmRepository.md +2 -10
  32. data/docs/RpmRpmRepositoryResponse.md +6 -6
  33. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +0 -33
  34. data/lib/pulp_rpm_client/api/content_advisories_api.rb +0 -15
  35. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +0 -12
  36. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +0 -15
  37. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +0 -15
  38. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +0 -15
  39. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +0 -12
  40. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +0 -12
  41. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +0 -12
  42. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +0 -12
  43. data/lib/pulp_rpm_client/api/content_packages_api.rb +0 -15
  44. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +0 -12
  45. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +0 -36
  46. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +0 -24
  47. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +0 -36
  48. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +0 -36
  49. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +0 -42
  50. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +3 -15
  51. data/lib/pulp_rpm_client/api/rpm_comps_api.rb +0 -3
  52. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +0 -3
  53. data/lib/pulp_rpm_client/api/rpm_prune_api.rb +0 -3
  54. data/lib/pulp_rpm_client/models/addon_response.rb +0 -21
  55. data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +13 -4
  56. data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +8 -104
  57. data/lib/pulp_rpm_client/models/rpm_package_response.rb +2 -2
  58. data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +13 -4
  59. data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +13 -4
  60. data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +11 -92
  61. data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +28 -13
  62. data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +8 -104
  63. data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +24 -14
  64. data/lib/pulp_rpm_client/models/variant_response.rb +0 -21
  65. data/lib/pulp_rpm_client/version.rb +1 -1
  66. data/spec/api/acs_rpm_api_spec.rb +0 -11
  67. data/spec/api/content_advisories_api_spec.rb +0 -5
  68. data/spec/api/content_distribution_trees_api_spec.rb +0 -4
  69. data/spec/api/content_modulemd_defaults_api_spec.rb +0 -5
  70. data/spec/api/content_modulemd_obsoletes_api_spec.rb +0 -5
  71. data/spec/api/content_modulemds_api_spec.rb +0 -5
  72. data/spec/api/content_packagecategories_api_spec.rb +0 -4
  73. data/spec/api/content_packageenvironments_api_spec.rb +0 -4
  74. data/spec/api/content_packagegroups_api_spec.rb +0 -4
  75. data/spec/api/content_packagelangpacks_api_spec.rb +0 -4
  76. data/spec/api/content_packages_api_spec.rb +0 -5
  77. data/spec/api/content_repo_metadata_files_api_spec.rb +0 -4
  78. data/spec/api/distributions_rpm_api_spec.rb +0 -12
  79. data/spec/api/publications_rpm_api_spec.rb +0 -8
  80. data/spec/api/remotes_rpm_api_spec.rb +0 -12
  81. data/spec/api/remotes_uln_api_spec.rb +0 -12
  82. data/spec/api/repositories_rpm_api_spec.rb +0 -14
  83. data/spec/api/repositories_rpm_versions_api_spec.rb +1 -5
  84. data/spec/api/rpm_comps_api_spec.rb +0 -1
  85. data/spec/api/rpm_copy_api_spec.rb +0 -1
  86. data/spec/api/rpm_prune_api_spec.rb +0 -1
  87. data/spec/models/patchedrpm_rpm_distribution_spec.rb +6 -0
  88. data/spec/models/patchedrpm_rpm_repository_spec.rb +0 -24
  89. data/spec/models/rpm_rpm_distribution_response_spec.rb +6 -0
  90. data/spec/models/rpm_rpm_distribution_spec.rb +6 -0
  91. data/spec/models/rpm_rpm_publication_response_spec.rb +6 -0
  92. data/spec/models/rpm_rpm_publication_spec.rb +2 -20
  93. data/spec/models/rpm_rpm_repository_spec.rb +0 -24
  94. metadata +82 -82
@@ -48,19 +48,7 @@ module PulpRpmClient
48
48
  # The preferred checksum type during repo publish. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
49
49
  attr_accessor :checksum_type
50
50
 
51
- # DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
52
- attr_accessor :metadata_checksum_type
53
-
54
- # DEPRECATED: use CHECKSUM_TYPE instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
55
- attr_accessor :package_checksum_type
56
-
57
- # DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
58
- attr_accessor :gpgcheck
59
-
60
- # DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
61
- attr_accessor :repo_gpgcheck
62
-
63
- # A JSON document describing config.repo file
51
+ # A JSON document describing the config.repo file Pulp should generate for this repo
64
52
  attr_accessor :repo_config
65
53
 
66
54
  # The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
@@ -105,10 +93,6 @@ module PulpRpmClient
105
93
  :'package_signing_fingerprint' => :'package_signing_fingerprint',
106
94
  :'retain_package_versions' => :'retain_package_versions',
107
95
  :'checksum_type' => :'checksum_type',
108
- :'metadata_checksum_type' => :'metadata_checksum_type',
109
- :'package_checksum_type' => :'package_checksum_type',
110
- :'gpgcheck' => :'gpgcheck',
111
- :'repo_gpgcheck' => :'repo_gpgcheck',
112
96
  :'repo_config' => :'repo_config',
113
97
  :'compression_type' => :'compression_type',
114
98
  :'layout' => :'layout'
@@ -134,10 +118,6 @@ module PulpRpmClient
134
118
  :'package_signing_fingerprint' => :'String',
135
119
  :'retain_package_versions' => :'Integer',
136
120
  :'checksum_type' => :'PackageChecksumTypeEnum',
137
- :'metadata_checksum_type' => :'PackageChecksumTypeEnum',
138
- :'package_checksum_type' => :'PackageChecksumTypeEnum',
139
- :'gpgcheck' => :'Integer',
140
- :'repo_gpgcheck' => :'Integer',
141
121
  :'repo_config' => :'Object',
142
122
  :'compression_type' => :'CompressionTypeEnum',
143
123
  :'layout' => :'LayoutEnum'
@@ -152,12 +132,7 @@ module PulpRpmClient
152
132
  :'remote',
153
133
  :'metadata_signing_service',
154
134
  :'package_signing_service',
155
- :'package_signing_fingerprint',
156
135
  :'checksum_type',
157
- :'metadata_checksum_type',
158
- :'package_checksum_type',
159
- :'gpgcheck',
160
- :'repo_gpgcheck',
161
136
  :'repo_config',
162
137
  :'compression_type',
163
138
  :'layout'
@@ -217,6 +192,8 @@ module PulpRpmClient
217
192
 
218
193
  if attributes.key?(:'package_signing_fingerprint')
219
194
  self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
195
+ else
196
+ self.package_signing_fingerprint = ''
220
197
  end
221
198
 
222
199
  if attributes.key?(:'retain_package_versions')
@@ -227,22 +204,6 @@ module PulpRpmClient
227
204
  self.checksum_type = attributes[:'checksum_type']
228
205
  end
229
206
 
230
- if attributes.key?(:'metadata_checksum_type')
231
- self.metadata_checksum_type = attributes[:'metadata_checksum_type']
232
- end
233
-
234
- if attributes.key?(:'package_checksum_type')
235
- self.package_checksum_type = attributes[:'package_checksum_type']
236
- end
237
-
238
- if attributes.key?(:'gpgcheck')
239
- self.gpgcheck = attributes[:'gpgcheck']
240
- end
241
-
242
- if attributes.key?(:'repo_gpgcheck')
243
- self.repo_gpgcheck = attributes[:'repo_gpgcheck']
244
- end
245
-
246
207
  if attributes.key?(:'repo_config')
247
208
  self.repo_config = attributes[:'repo_config']
248
209
  end
@@ -277,30 +238,10 @@ module PulpRpmClient
277
238
  invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
278
239
  end
279
240
 
280
- if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
281
- invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be great than or equal to 1.')
282
- end
283
-
284
241
  if !@retain_package_versions.nil? && @retain_package_versions < 0
285
242
  invalid_properties.push('invalid value for "retain_package_versions", must be greater than or equal to 0.')
286
243
  end
287
244
 
288
- if !@gpgcheck.nil? && @gpgcheck > 1
289
- invalid_properties.push('invalid value for "gpgcheck", must be smaller than or equal to 1.')
290
- end
291
-
292
- if !@gpgcheck.nil? && @gpgcheck < 0
293
- invalid_properties.push('invalid value for "gpgcheck", must be greater than or equal to 0.')
294
- end
295
-
296
- if !@repo_gpgcheck.nil? && @repo_gpgcheck > 1
297
- invalid_properties.push('invalid value for "repo_gpgcheck", must be smaller than or equal to 1.')
298
- end
299
-
300
- if !@repo_gpgcheck.nil? && @repo_gpgcheck < 0
301
- invalid_properties.push('invalid value for "repo_gpgcheck", must be greater than or equal to 0.')
302
- end
303
-
304
245
  invalid_properties
305
246
  end
306
247
 
@@ -312,12 +253,7 @@ module PulpRpmClient
312
253
  return false if !@description.nil? && @description.to_s.length < 1
313
254
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
314
255
  return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
315
- return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
316
256
  return false if !@retain_package_versions.nil? && @retain_package_versions < 0
317
- return false if !@gpgcheck.nil? && @gpgcheck > 1
318
- return false if !@gpgcheck.nil? && @gpgcheck < 0
319
- return false if !@repo_gpgcheck.nil? && @repo_gpgcheck > 1
320
- return false if !@repo_gpgcheck.nil? && @repo_gpgcheck < 0
321
257
  true
322
258
  end
323
259
 
@@ -358,12 +294,12 @@ module PulpRpmClient
358
294
  # Custom attribute writer method with validation
359
295
  # @param [Object] package_signing_fingerprint Value to be assigned
360
296
  def package_signing_fingerprint=(package_signing_fingerprint)
361
- if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 40
362
- fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
297
+ if package_signing_fingerprint.nil?
298
+ fail ArgumentError, 'package_signing_fingerprint cannot be nil'
363
299
  end
364
300
 
365
- if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length < 1
366
- fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be great than or equal to 1.'
301
+ if package_signing_fingerprint.to_s.length > 40
302
+ fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
367
303
  end
368
304
 
369
305
  @package_signing_fingerprint = package_signing_fingerprint
@@ -383,34 +319,6 @@ module PulpRpmClient
383
319
  @retain_package_versions = retain_package_versions
384
320
  end
385
321
 
386
- # Custom attribute writer method with validation
387
- # @param [Object] gpgcheck Value to be assigned
388
- def gpgcheck=(gpgcheck)
389
- if !gpgcheck.nil? && gpgcheck > 1
390
- fail ArgumentError, 'invalid value for "gpgcheck", must be smaller than or equal to 1.'
391
- end
392
-
393
- if !gpgcheck.nil? && gpgcheck < 0
394
- fail ArgumentError, 'invalid value for "gpgcheck", must be greater than or equal to 0.'
395
- end
396
-
397
- @gpgcheck = gpgcheck
398
- end
399
-
400
- # Custom attribute writer method with validation
401
- # @param [Object] repo_gpgcheck Value to be assigned
402
- def repo_gpgcheck=(repo_gpgcheck)
403
- if !repo_gpgcheck.nil? && repo_gpgcheck > 1
404
- fail ArgumentError, 'invalid value for "repo_gpgcheck", must be smaller than or equal to 1.'
405
- end
406
-
407
- if !repo_gpgcheck.nil? && repo_gpgcheck < 0
408
- fail ArgumentError, 'invalid value for "repo_gpgcheck", must be greater than or equal to 0.'
409
- end
410
-
411
- @repo_gpgcheck = repo_gpgcheck
412
- end
413
-
414
322
  # Checks equality by comparing each attribute.
415
323
  # @param [Object] Object to be compared
416
324
  def ==(o)
@@ -427,10 +335,6 @@ module PulpRpmClient
427
335
  package_signing_fingerprint == o.package_signing_fingerprint &&
428
336
  retain_package_versions == o.retain_package_versions &&
429
337
  checksum_type == o.checksum_type &&
430
- metadata_checksum_type == o.metadata_checksum_type &&
431
- package_checksum_type == o.package_checksum_type &&
432
- gpgcheck == o.gpgcheck &&
433
- repo_gpgcheck == o.repo_gpgcheck &&
434
338
  repo_config == o.repo_config &&
435
339
  compression_type == o.compression_type &&
436
340
  layout == o.layout
@@ -445,7 +349,7 @@ module PulpRpmClient
445
349
  # Calculates hash code according to all attributes.
446
350
  # @return [Integer] Hash code
447
351
  def hash
448
- [pulp_labels, 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, repo_config, compression_type, layout].hash
352
+ [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
449
353
  end
450
354
 
451
355
  # Builds the object from hash
@@ -111,10 +111,10 @@ module PulpRpmClient
111
111
  # Capabilities the package supplements
112
112
  attr_accessor :supplements
113
113
 
114
- # Base location of this package
114
+ # DEPRECATED: Base location of this package. This field will be removed in a future release of pulp_rpm.
115
115
  attr_accessor :location_base
116
116
 
117
- # Relative location of package to the repodata
117
+ # DEPRECATED: Relative location of package to the repodata. This field will be removed in a future release of pulp_rpm.
118
118
  attr_accessor :location_href
119
119
 
120
120
  # Hostname of the system that built the package
@@ -39,6 +39,8 @@ module PulpRpmClient
39
39
  # An option specifying whether Pulp should generate *.repo files.
40
40
  attr_accessor :generate_repo_config
41
41
 
42
+ attr_accessor :checkpoint
43
+
42
44
  # Attribute mapping from ruby-style variable name to JSON key.
43
45
  def self.attribute_map
44
46
  {
@@ -49,7 +51,8 @@ module PulpRpmClient
49
51
  :'name' => :'name',
50
52
  :'repository' => :'repository',
51
53
  :'publication' => :'publication',
52
- :'generate_repo_config' => :'generate_repo_config'
54
+ :'generate_repo_config' => :'generate_repo_config',
55
+ :'checkpoint' => :'checkpoint'
53
56
  }
54
57
  end
55
58
 
@@ -68,7 +71,8 @@ module PulpRpmClient
68
71
  :'name' => :'String',
69
72
  :'repository' => :'String',
70
73
  :'publication' => :'String',
71
- :'generate_repo_config' => :'Boolean'
74
+ :'generate_repo_config' => :'Boolean',
75
+ :'checkpoint' => :'Boolean'
72
76
  }
73
77
  end
74
78
 
@@ -137,6 +141,10 @@ module PulpRpmClient
137
141
  else
138
142
  self.generate_repo_config = false
139
143
  end
144
+
145
+ if attributes.key?(:'checkpoint')
146
+ self.checkpoint = attributes[:'checkpoint']
147
+ end
140
148
  end
141
149
 
142
150
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -214,7 +222,8 @@ module PulpRpmClient
214
222
  name == o.name &&
215
223
  repository == o.repository &&
216
224
  publication == o.publication &&
217
- generate_repo_config == o.generate_repo_config
225
+ generate_repo_config == o.generate_repo_config &&
226
+ checkpoint == o.checkpoint
218
227
  end
219
228
 
220
229
  # @see the `==` method
@@ -226,7 +235,7 @@ module PulpRpmClient
226
235
  # Calculates hash code according to all attributes.
227
236
  # @return [Integer] Hash code
228
237
  def hash
229
- [base_path, content_guard, hidden, pulp_labels, name, repository, publication, generate_repo_config].hash
238
+ [base_path, content_guard, hidden, pulp_labels, name, repository, publication, generate_repo_config, checkpoint].hash
230
239
  end
231
240
 
232
241
  # Builds the object from hash
@@ -56,6 +56,8 @@ module PulpRpmClient
56
56
  # An option specifying whether Pulp should generate *.repo files.
57
57
  attr_accessor :generate_repo_config
58
58
 
59
+ attr_accessor :checkpoint
60
+
59
61
  # Attribute mapping from ruby-style variable name to JSON key.
60
62
  def self.attribute_map
61
63
  {
@@ -72,7 +74,8 @@ module PulpRpmClient
72
74
  :'name' => :'name',
73
75
  :'repository' => :'repository',
74
76
  :'publication' => :'publication',
75
- :'generate_repo_config' => :'generate_repo_config'
77
+ :'generate_repo_config' => :'generate_repo_config',
78
+ :'checkpoint' => :'checkpoint'
76
79
  }
77
80
  end
78
81
 
@@ -97,7 +100,8 @@ module PulpRpmClient
97
100
  :'name' => :'String',
98
101
  :'repository' => :'String',
99
102
  :'publication' => :'String',
100
- :'generate_repo_config' => :'Boolean'
103
+ :'generate_repo_config' => :'Boolean',
104
+ :'checkpoint' => :'Boolean'
101
105
  }
102
106
  end
103
107
 
@@ -190,6 +194,10 @@ module PulpRpmClient
190
194
  else
191
195
  self.generate_repo_config = false
192
196
  end
197
+
198
+ if attributes.key?(:'checkpoint')
199
+ self.checkpoint = attributes[:'checkpoint']
200
+ end
193
201
  end
194
202
 
195
203
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -235,7 +243,8 @@ module PulpRpmClient
235
243
  name == o.name &&
236
244
  repository == o.repository &&
237
245
  publication == o.publication &&
238
- generate_repo_config == o.generate_repo_config
246
+ generate_repo_config == o.generate_repo_config &&
247
+ checkpoint == o.checkpoint
239
248
  end
240
249
 
241
250
  # @see the `==` method
@@ -247,7 +256,7 @@ module PulpRpmClient
247
256
  # Calculates hash code according to all attributes.
248
257
  # @return [Integer] Hash code
249
258
  def hash
250
- [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].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
251
260
  end
252
261
 
253
262
  # Builds the object from hash
@@ -21,22 +21,12 @@ module PulpRpmClient
21
21
  # A URI of the repository to be published.
22
22
  attr_accessor :repository
23
23
 
24
+ attr_accessor :checkpoint
25
+
24
26
  # The preferred checksum type used during repo publishes. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
25
27
  attr_accessor :checksum_type
26
28
 
27
- # DEPRECATED: The checksum type for metadata. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
28
- attr_accessor :metadata_checksum_type
29
-
30
- # DEPRECATED: The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
31
- attr_accessor :package_checksum_type
32
-
33
- # DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
34
- attr_accessor :gpgcheck
35
-
36
- # DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
37
- attr_accessor :repo_gpgcheck
38
-
39
- # A JSON document describing config.repo file
29
+ # A JSON document describing the config.repo file Pulp should generate for this repo
40
30
  attr_accessor :repo_config
41
31
 
42
32
  # The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
@@ -72,11 +62,8 @@ module PulpRpmClient
72
62
  {
73
63
  :'repository_version' => :'repository_version',
74
64
  :'repository' => :'repository',
65
+ :'checkpoint' => :'checkpoint',
75
66
  :'checksum_type' => :'checksum_type',
76
- :'metadata_checksum_type' => :'metadata_checksum_type',
77
- :'package_checksum_type' => :'package_checksum_type',
78
- :'gpgcheck' => :'gpgcheck',
79
- :'repo_gpgcheck' => :'repo_gpgcheck',
80
67
  :'repo_config' => :'repo_config',
81
68
  :'compression_type' => :'compression_type',
82
69
  :'layout' => :'layout'
@@ -93,11 +80,8 @@ module PulpRpmClient
93
80
  {
94
81
  :'repository_version' => :'String',
95
82
  :'repository' => :'String',
83
+ :'checkpoint' => :'Boolean',
96
84
  :'checksum_type' => :'PackageChecksumTypeEnum',
97
- :'metadata_checksum_type' => :'PackageChecksumTypeEnum',
98
- :'package_checksum_type' => :'PackageChecksumTypeEnum',
99
- :'gpgcheck' => :'Integer',
100
- :'repo_gpgcheck' => :'Integer',
101
85
  :'repo_config' => :'Object',
102
86
  :'compression_type' => :'CompressionTypeEnum',
103
87
  :'layout' => :'LayoutEnum'
@@ -107,8 +91,6 @@ module PulpRpmClient
107
91
  # List of attributes with nullable: true
108
92
  def self.openapi_nullable
109
93
  Set.new([
110
- :'gpgcheck',
111
- :'repo_gpgcheck',
112
94
  :'repo_config',
113
95
  :'layout'
114
96
  ])
@@ -137,24 +119,12 @@ module PulpRpmClient
137
119
  self.repository = attributes[:'repository']
138
120
  end
139
121
 
140
- if attributes.key?(:'checksum_type')
141
- self.checksum_type = attributes[:'checksum_type']
142
- end
143
-
144
- if attributes.key?(:'metadata_checksum_type')
145
- self.metadata_checksum_type = attributes[:'metadata_checksum_type']
122
+ if attributes.key?(:'checkpoint')
123
+ self.checkpoint = attributes[:'checkpoint']
146
124
  end
147
125
 
148
- if attributes.key?(:'package_checksum_type')
149
- self.package_checksum_type = attributes[:'package_checksum_type']
150
- end
151
-
152
- if attributes.key?(:'gpgcheck')
153
- self.gpgcheck = attributes[:'gpgcheck']
154
- end
155
-
156
- if attributes.key?(:'repo_gpgcheck')
157
- self.repo_gpgcheck = attributes[:'repo_gpgcheck']
126
+ if attributes.key?(:'checksum_type')
127
+ self.checksum_type = attributes[:'checksum_type']
158
128
  end
159
129
 
160
130
  if attributes.key?(:'repo_config')
@@ -175,22 +145,6 @@ module PulpRpmClient
175
145
  def list_invalid_properties
176
146
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
177
147
  invalid_properties = Array.new
178
- if !@gpgcheck.nil? && @gpgcheck > 1
179
- invalid_properties.push('invalid value for "gpgcheck", must be smaller than or equal to 1.')
180
- end
181
-
182
- if !@gpgcheck.nil? && @gpgcheck < 0
183
- invalid_properties.push('invalid value for "gpgcheck", must be greater than or equal to 0.')
184
- end
185
-
186
- if !@repo_gpgcheck.nil? && @repo_gpgcheck > 1
187
- invalid_properties.push('invalid value for "repo_gpgcheck", must be smaller than or equal to 1.')
188
- end
189
-
190
- if !@repo_gpgcheck.nil? && @repo_gpgcheck < 0
191
- invalid_properties.push('invalid value for "repo_gpgcheck", must be greater than or equal to 0.')
192
- end
193
-
194
148
  invalid_properties
195
149
  end
196
150
 
@@ -198,41 +152,9 @@ module PulpRpmClient
198
152
  # @return true if the model is valid
199
153
  def valid?
200
154
  warn '[DEPRECATED] the `valid?` method is obsolete'
201
- return false if !@gpgcheck.nil? && @gpgcheck > 1
202
- return false if !@gpgcheck.nil? && @gpgcheck < 0
203
- return false if !@repo_gpgcheck.nil? && @repo_gpgcheck > 1
204
- return false if !@repo_gpgcheck.nil? && @repo_gpgcheck < 0
205
155
  true
206
156
  end
207
157
 
208
- # Custom attribute writer method with validation
209
- # @param [Object] gpgcheck Value to be assigned
210
- def gpgcheck=(gpgcheck)
211
- if !gpgcheck.nil? && gpgcheck > 1
212
- fail ArgumentError, 'invalid value for "gpgcheck", must be smaller than or equal to 1.'
213
- end
214
-
215
- if !gpgcheck.nil? && gpgcheck < 0
216
- fail ArgumentError, 'invalid value for "gpgcheck", must be greater than or equal to 0.'
217
- end
218
-
219
- @gpgcheck = gpgcheck
220
- end
221
-
222
- # Custom attribute writer method with validation
223
- # @param [Object] repo_gpgcheck Value to be assigned
224
- def repo_gpgcheck=(repo_gpgcheck)
225
- if !repo_gpgcheck.nil? && repo_gpgcheck > 1
226
- fail ArgumentError, 'invalid value for "repo_gpgcheck", must be smaller than or equal to 1.'
227
- end
228
-
229
- if !repo_gpgcheck.nil? && repo_gpgcheck < 0
230
- fail ArgumentError, 'invalid value for "repo_gpgcheck", must be greater than or equal to 0.'
231
- end
232
-
233
- @repo_gpgcheck = repo_gpgcheck
234
- end
235
-
236
158
  # Checks equality by comparing each attribute.
237
159
  # @param [Object] Object to be compared
238
160
  def ==(o)
@@ -240,11 +162,8 @@ module PulpRpmClient
240
162
  self.class == o.class &&
241
163
  repository_version == o.repository_version &&
242
164
  repository == o.repository &&
165
+ checkpoint == o.checkpoint &&
243
166
  checksum_type == o.checksum_type &&
244
- metadata_checksum_type == o.metadata_checksum_type &&
245
- package_checksum_type == o.package_checksum_type &&
246
- gpgcheck == o.gpgcheck &&
247
- repo_gpgcheck == o.repo_gpgcheck &&
248
167
  repo_config == o.repo_config &&
249
168
  compression_type == o.compression_type &&
250
169
  layout == o.layout
@@ -259,7 +178,7 @@ module PulpRpmClient
259
178
  # Calculates hash code according to all attributes.
260
179
  # @return [Integer] Hash code
261
180
  def hash
262
- [repository_version, repository, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, repo_config, compression_type, layout].hash
181
+ [repository_version, repository, checkpoint, checksum_type, repo_config, compression_type, layout].hash
263
182
  end
264
183
 
265
184
  # Builds the object from hash
@@ -32,25 +32,27 @@ module PulpRpmClient
32
32
  # A URI of the repository to be published.
33
33
  attr_accessor :repository
34
34
 
35
+ attr_accessor :checkpoint
36
+
35
37
  # The preferred checksum type used during repo publishes. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
36
38
  attr_accessor :checksum_type
37
39
 
38
- # DEPRECATED: The checksum type for metadata. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
40
+ # REMOVED: The checksum type for metadata. Not operational since pulp_rpm 3.30.0 release. Use 'checksum_type' instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
39
41
  attr_accessor :metadata_checksum_type
40
42
 
41
- # DEPRECATED: The checksum type for packages. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
43
+ # REMOVED: The checksum type for packages. Not operational since pulp_rpm 3.30.0 release. Use 'checksum_type' instead. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
42
44
  attr_accessor :package_checksum_type
43
45
 
44
- # DEPRECATED: An option specifying whether a client should perform a GPG signature check on packages.
46
+ # REMOVED: An option specifying whether a client should perform a GPG signature check on packages. Not operational since pulp_rpm 3.30.0 release. Set these values using 'repo_config' instead.
45
47
  attr_accessor :gpgcheck
46
48
 
47
- # DEPRECATED: An option specifying whether a client should perform a GPG signature check on the repodata.
49
+ # REMOVED: An option specifying whether a client should perform a GPG signature check on the repodata. Not operational since pulp_rpm 3.30.0 release. Set these values using 'repo_config' instead.
48
50
  attr_accessor :repo_gpgcheck
49
51
 
50
- # REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operation since pulp_rpm 3.25.0 release
52
+ # REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operational since pulp_rpm 3.25.0 release
51
53
  attr_accessor :sqlite_metadata
52
54
 
53
- # A JSON document describing config.repo file
55
+ # A JSON document describing the config.repo file Pulp should generate for this repo
54
56
  attr_accessor :repo_config
55
57
 
56
58
  # The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
@@ -90,6 +92,7 @@ module PulpRpmClient
90
92
  :'pulp_last_updated' => :'pulp_last_updated',
91
93
  :'repository_version' => :'repository_version',
92
94
  :'repository' => :'repository',
95
+ :'checkpoint' => :'checkpoint',
93
96
  :'checksum_type' => :'checksum_type',
94
97
  :'metadata_checksum_type' => :'metadata_checksum_type',
95
98
  :'package_checksum_type' => :'package_checksum_type',
@@ -116,6 +119,7 @@ module PulpRpmClient
116
119
  :'pulp_last_updated' => :'Time',
117
120
  :'repository_version' => :'String',
118
121
  :'repository' => :'String',
122
+ :'checkpoint' => :'Boolean',
119
123
  :'checksum_type' => :'PackageChecksumTypeEnum',
120
124
  :'metadata_checksum_type' => :'PackageChecksumTypeEnum',
121
125
  :'package_checksum_type' => :'PackageChecksumTypeEnum',
@@ -131,8 +135,6 @@ module PulpRpmClient
131
135
  # List of attributes with nullable: true
132
136
  def self.openapi_nullable
133
137
  Set.new([
134
- :'gpgcheck',
135
- :'repo_gpgcheck',
136
138
  :'repo_config',
137
139
  :'layout'
138
140
  ])
@@ -177,6 +179,10 @@ module PulpRpmClient
177
179
  self.repository = attributes[:'repository']
178
180
  end
179
181
 
182
+ if attributes.key?(:'checkpoint')
183
+ self.checkpoint = attributes[:'checkpoint']
184
+ end
185
+
180
186
  if attributes.key?(:'checksum_type')
181
187
  self.checksum_type = attributes[:'checksum_type']
182
188
  end
@@ -254,11 +260,15 @@ module PulpRpmClient
254
260
  # Custom attribute writer method with validation
255
261
  # @param [Object] gpgcheck Value to be assigned
256
262
  def gpgcheck=(gpgcheck)
257
- if !gpgcheck.nil? && gpgcheck > 1
263
+ if gpgcheck.nil?
264
+ fail ArgumentError, 'gpgcheck cannot be nil'
265
+ end
266
+
267
+ if gpgcheck > 1
258
268
  fail ArgumentError, 'invalid value for "gpgcheck", must be smaller than or equal to 1.'
259
269
  end
260
270
 
261
- if !gpgcheck.nil? && gpgcheck < 0
271
+ if gpgcheck < 0
262
272
  fail ArgumentError, 'invalid value for "gpgcheck", must be greater than or equal to 0.'
263
273
  end
264
274
 
@@ -268,11 +278,15 @@ module PulpRpmClient
268
278
  # Custom attribute writer method with validation
269
279
  # @param [Object] repo_gpgcheck Value to be assigned
270
280
  def repo_gpgcheck=(repo_gpgcheck)
271
- if !repo_gpgcheck.nil? && repo_gpgcheck > 1
281
+ if repo_gpgcheck.nil?
282
+ fail ArgumentError, 'repo_gpgcheck cannot be nil'
283
+ end
284
+
285
+ if repo_gpgcheck > 1
272
286
  fail ArgumentError, 'invalid value for "repo_gpgcheck", must be smaller than or equal to 1.'
273
287
  end
274
288
 
275
- if !repo_gpgcheck.nil? && repo_gpgcheck < 0
289
+ if repo_gpgcheck < 0
276
290
  fail ArgumentError, 'invalid value for "repo_gpgcheck", must be greater than or equal to 0.'
277
291
  end
278
292
 
@@ -290,6 +304,7 @@ module PulpRpmClient
290
304
  pulp_last_updated == o.pulp_last_updated &&
291
305
  repository_version == o.repository_version &&
292
306
  repository == o.repository &&
307
+ checkpoint == o.checkpoint &&
293
308
  checksum_type == o.checksum_type &&
294
309
  metadata_checksum_type == o.metadata_checksum_type &&
295
310
  package_checksum_type == o.package_checksum_type &&
@@ -310,7 +325,7 @@ module PulpRpmClient
310
325
  # Calculates hash code according to all attributes.
311
326
  # @return [Integer] Hash code
312
327
  def hash
313
- [pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config, compression_type, layout].hash
328
+ [pulp_href, prn, pulp_created, pulp_last_updated, repository_version, repository, checkpoint, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata, repo_config, compression_type, layout].hash
314
329
  end
315
330
 
316
331
  # Builds the object from hash