pulp_rpm_client 3.35.2 → 3.35.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ContentAdvisoriesApi.md +2 -0
- data/docs/ContentPackagesApi.md +4 -0
- data/docs/PatchedrpmRpmDistribution.md +2 -0
- data/docs/PatchedrpmRpmRepository.md +2 -0
- data/docs/RepositoriesRpmApi.md +18 -2
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/docs/RpmModulemd.md +2 -0
- data/docs/RpmModulemdDefaults.md +2 -0
- data/docs/RpmModulemdObsolete.md +2 -0
- data/docs/RpmRpmDistribution.md +2 -0
- data/docs/RpmRpmDistributionResponse.md +4 -0
- data/docs/RpmRpmRepository.md +2 -0
- data/docs/RpmRpmRepositoryResponse.md +2 -0
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +6 -0
- data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +27 -3
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +12 -1
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +27 -1
- data/lib/pulp_rpm_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +11 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +11 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_obsolete.rb +11 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +12 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution_response.rb +22 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +27 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +27 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +1 -0
- data/spec/api/content_packages_api_spec.rb +2 -0
- data/spec/api/repositories_rpm_api_spec.rb +9 -1
- data/spec/models/patchedrpm_rpm_distribution_spec.rb +6 -0
- data/spec/models/patchedrpm_rpm_repository_spec.rb +6 -0
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- data/spec/models/rpm_modulemd_defaults_spec.rb +6 -0
- data/spec/models/rpm_modulemd_obsolete_spec.rb +6 -0
- data/spec/models/rpm_modulemd_spec.rb +6 -0
- data/spec/models/rpm_rpm_distribution_response_spec.rb +12 -0
- data/spec/models/rpm_rpm_distribution_spec.rb +6 -0
- data/spec/models/rpm_rpm_repository_response_spec.rb +6 -0
- data/spec/models/rpm_rpm_repository_spec.rb +6 -0
- metadata +78 -78
|
@@ -27,6 +27,9 @@ module PulpRpmClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
@@ -86,6 +89,7 @@ module PulpRpmClient
|
|
|
86
89
|
:'name' => :'name',
|
|
87
90
|
:'description' => :'description',
|
|
88
91
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
92
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
89
93
|
:'remote' => :'remote',
|
|
90
94
|
:'autopublish' => :'autopublish',
|
|
91
95
|
:'metadata_signing_service' => :'metadata_signing_service',
|
|
@@ -111,6 +115,7 @@ module PulpRpmClient
|
|
|
111
115
|
:'name' => :'String',
|
|
112
116
|
:'description' => :'String',
|
|
113
117
|
:'retain_repo_versions' => :'Integer',
|
|
118
|
+
:'retain_checkpoints' => :'Integer',
|
|
114
119
|
:'remote' => :'String',
|
|
115
120
|
:'autopublish' => :'Boolean',
|
|
116
121
|
:'metadata_signing_service' => :'String',
|
|
@@ -129,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',
|
|
@@ -173,6 +179,10 @@ module PulpRpmClient
|
|
|
173
179
|
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
|
174
180
|
end
|
|
175
181
|
|
|
182
|
+
if attributes.key?(:'retain_checkpoints')
|
|
183
|
+
self.retain_checkpoints = attributes[:'retain_checkpoints']
|
|
184
|
+
end
|
|
185
|
+
|
|
176
186
|
if attributes.key?(:'remote')
|
|
177
187
|
self.remote = attributes[:'remote']
|
|
178
188
|
end
|
|
@@ -233,6 +243,10 @@ module PulpRpmClient
|
|
|
233
243
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
234
244
|
end
|
|
235
245
|
|
|
246
|
+
if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
247
|
+
invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
|
|
248
|
+
end
|
|
249
|
+
|
|
236
250
|
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
|
237
251
|
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
|
|
238
252
|
end
|
|
@@ -255,6 +269,7 @@ module PulpRpmClient
|
|
|
255
269
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
256
270
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
257
271
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
272
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
258
273
|
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
|
259
274
|
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length < 1
|
|
260
275
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
|
@@ -295,6 +310,16 @@ module PulpRpmClient
|
|
|
295
310
|
@retain_repo_versions = retain_repo_versions
|
|
296
311
|
end
|
|
297
312
|
|
|
313
|
+
# Custom attribute writer method with validation
|
|
314
|
+
# @param [Object] retain_checkpoints Value to be assigned
|
|
315
|
+
def retain_checkpoints=(retain_checkpoints)
|
|
316
|
+
if !retain_checkpoints.nil? && retain_checkpoints < 1
|
|
317
|
+
fail ArgumentError, 'invalid value for "retain_checkpoints", must be greater than or equal to 1.'
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
@retain_checkpoints = retain_checkpoints
|
|
321
|
+
end
|
|
322
|
+
|
|
298
323
|
# Custom attribute writer method with validation
|
|
299
324
|
# @param [Object] package_signing_fingerprint Value to be assigned
|
|
300
325
|
def package_signing_fingerprint=(package_signing_fingerprint)
|
|
@@ -332,6 +357,7 @@ module PulpRpmClient
|
|
|
332
357
|
name == o.name &&
|
|
333
358
|
description == o.description &&
|
|
334
359
|
retain_repo_versions == o.retain_repo_versions &&
|
|
360
|
+
retain_checkpoints == o.retain_checkpoints &&
|
|
335
361
|
remote == o.remote &&
|
|
336
362
|
autopublish == o.autopublish &&
|
|
337
363
|
metadata_signing_service == o.metadata_signing_service &&
|
|
@@ -353,7 +379,7 @@ module PulpRpmClient
|
|
|
353
379
|
# Calculates hash code according to all attributes.
|
|
354
380
|
# @return [Integer] Hash code
|
|
355
381
|
def hash
|
|
356
|
-
[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
|
|
382
|
+
[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
|
|
357
383
|
end
|
|
358
384
|
|
|
359
385
|
# Builds the object from hash
|
|
@@ -25,12 +25,16 @@ module PulpRpmClient
|
|
|
25
25
|
# A repository version whose content will be used as the initial set of content for the new repository version
|
|
26
26
|
attr_accessor :base_version
|
|
27
27
|
|
|
28
|
+
# 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. Defaults to true.
|
|
29
|
+
attr_accessor :overwrite
|
|
30
|
+
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
32
|
def self.attribute_map
|
|
30
33
|
{
|
|
31
34
|
:'add_content_units' => :'add_content_units',
|
|
32
35
|
:'remove_content_units' => :'remove_content_units',
|
|
33
|
-
:'base_version' => :'base_version'
|
|
36
|
+
:'base_version' => :'base_version',
|
|
37
|
+
:'overwrite' => :'overwrite'
|
|
34
38
|
}
|
|
35
39
|
end
|
|
36
40
|
|
|
@@ -44,7 +48,8 @@ module PulpRpmClient
|
|
|
44
48
|
{
|
|
45
49
|
:'add_content_units' => :'Array<String>',
|
|
46
50
|
:'remove_content_units' => :'Array<String>',
|
|
47
|
-
:'base_version' => :'String'
|
|
51
|
+
:'base_version' => :'String',
|
|
52
|
+
:'overwrite' => :'Boolean'
|
|
48
53
|
}
|
|
49
54
|
end
|
|
50
55
|
|
|
@@ -84,6 +89,12 @@ module PulpRpmClient
|
|
|
84
89
|
if attributes.key?(:'base_version')
|
|
85
90
|
self.base_version = attributes[:'base_version']
|
|
86
91
|
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'overwrite')
|
|
94
|
+
self.overwrite = attributes[:'overwrite']
|
|
95
|
+
else
|
|
96
|
+
self.overwrite = true
|
|
97
|
+
end
|
|
87
98
|
end
|
|
88
99
|
|
|
89
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,7 +119,8 @@ module PulpRpmClient
|
|
|
108
119
|
self.class == o.class &&
|
|
109
120
|
add_content_units == o.add_content_units &&
|
|
110
121
|
remove_content_units == o.remove_content_units &&
|
|
111
|
-
base_version == o.base_version
|
|
122
|
+
base_version == o.base_version &&
|
|
123
|
+
overwrite == o.overwrite
|
|
112
124
|
end
|
|
113
125
|
|
|
114
126
|
# @see the `==` method
|
|
@@ -120,7 +132,7 @@ module PulpRpmClient
|
|
|
120
132
|
# Calculates hash code according to all attributes.
|
|
121
133
|
# @return [Integer] Hash code
|
|
122
134
|
def hash
|
|
123
|
-
[add_content_units, remove_content_units, base_version].hash
|
|
135
|
+
[add_content_units, remove_content_units, base_version, overwrite].hash
|
|
124
136
|
end
|
|
125
137
|
|
|
126
138
|
# 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
|
|
|
@@ -62,6 +65,7 @@ module PulpRpmClient
|
|
|
62
65
|
def self.attribute_map
|
|
63
66
|
{
|
|
64
67
|
:'repository' => :'repository',
|
|
68
|
+
:'overwrite' => :'overwrite',
|
|
65
69
|
:'pulp_labels' => :'pulp_labels',
|
|
66
70
|
:'name' => :'name',
|
|
67
71
|
:'stream' => :'stream',
|
|
@@ -87,6 +91,7 @@ module PulpRpmClient
|
|
|
87
91
|
def self.openapi_types
|
|
88
92
|
{
|
|
89
93
|
:'repository' => :'String',
|
|
94
|
+
:'overwrite' => :'Boolean',
|
|
90
95
|
:'pulp_labels' => :'Hash<String, String>',
|
|
91
96
|
:'name' => :'String',
|
|
92
97
|
:'stream' => :'String',
|
|
@@ -131,6 +136,10 @@ module PulpRpmClient
|
|
|
131
136
|
self.repository = attributes[:'repository']
|
|
132
137
|
end
|
|
133
138
|
|
|
139
|
+
if attributes.key?(:'overwrite')
|
|
140
|
+
self.overwrite = attributes[:'overwrite']
|
|
141
|
+
end
|
|
142
|
+
|
|
134
143
|
if attributes.key?(:'pulp_labels')
|
|
135
144
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
136
145
|
self.pulp_labels = value
|
|
@@ -397,6 +406,7 @@ module PulpRpmClient
|
|
|
397
406
|
return true if self.equal?(o)
|
|
398
407
|
self.class == o.class &&
|
|
399
408
|
repository == o.repository &&
|
|
409
|
+
overwrite == o.overwrite &&
|
|
400
410
|
pulp_labels == o.pulp_labels &&
|
|
401
411
|
name == o.name &&
|
|
402
412
|
stream == o.stream &&
|
|
@@ -421,7 +431,7 @@ module PulpRpmClient
|
|
|
421
431
|
# Calculates hash code according to all attributes.
|
|
422
432
|
# @return [Integer] Hash code
|
|
423
433
|
def hash
|
|
424
|
-
[repository, pulp_labels, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, snippet, profiles, description].hash
|
|
434
|
+
[repository, overwrite, pulp_labels, name, stream, version, static_context, context, arch, artifacts, dependencies, packages, snippet, profiles, description].hash
|
|
425
435
|
end
|
|
426
436
|
|
|
427
437
|
# 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
|
|
|
@@ -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
|
|
@@ -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
|
|
@@ -27,6 +27,9 @@ module PulpRpmClient
|
|
|
27
27
|
# Retain X versions of the repository. Default is null which retains all versions.
|
|
28
28
|
attr_accessor :retain_repo_versions
|
|
29
29
|
|
|
30
|
+
# Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
|
|
31
|
+
attr_accessor :retain_checkpoints
|
|
32
|
+
|
|
30
33
|
# An optional remote to use by default when syncing.
|
|
31
34
|
attr_accessor :remote
|
|
32
35
|
|
|
@@ -86,6 +89,7 @@ module PulpRpmClient
|
|
|
86
89
|
:'name' => :'name',
|
|
87
90
|
:'description' => :'description',
|
|
88
91
|
:'retain_repo_versions' => :'retain_repo_versions',
|
|
92
|
+
:'retain_checkpoints' => :'retain_checkpoints',
|
|
89
93
|
:'remote' => :'remote',
|
|
90
94
|
:'autopublish' => :'autopublish',
|
|
91
95
|
:'metadata_signing_service' => :'metadata_signing_service',
|
|
@@ -111,6 +115,7 @@ module PulpRpmClient
|
|
|
111
115
|
:'name' => :'String',
|
|
112
116
|
:'description' => :'String',
|
|
113
117
|
:'retain_repo_versions' => :'Integer',
|
|
118
|
+
:'retain_checkpoints' => :'Integer',
|
|
114
119
|
:'remote' => :'String',
|
|
115
120
|
:'autopublish' => :'Boolean',
|
|
116
121
|
:'metadata_signing_service' => :'String',
|
|
@@ -129,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,6 +249,10 @@ 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
|
|
|
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
|
+
|
|
242
256
|
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
|
243
257
|
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
|
|
244
258
|
end
|
|
@@ -262,6 +276,7 @@ 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
|
|
279
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
265
280
|
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
|
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
|
|
@@ -302,6 +317,16 @@ 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)
|
|
@@ -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
|
|
|
@@ -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,6 +340,10 @@ 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
|
|
|
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
|
+
|
|
333
347
|
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
|
334
348
|
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
|
|
335
349
|
end
|
|
@@ -363,6 +377,7 @@ 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
|
|
380
|
+
return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
|
|
366
381
|
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
|
367
382
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
|
368
383
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
|
@@ -382,6 +397,16 @@ 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)
|
|
@@ -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
|