pulp_rpm_client 3.26.1 → 3.27.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ContentPackagesApi.md +1 -1
- data/docs/Copy.md +1 -1
- data/docs/PatchedrpmRpmRepository.md +5 -1
- data/docs/PrunePackages.md +21 -0
- data/docs/RpmModulemd.md +3 -3
- data/docs/RpmModulemdDefaults.md +1 -1
- data/docs/RpmModulemdDefaultsResponse.md +1 -1
- data/docs/RpmModulemdResponse.md +3 -3
- data/docs/RpmPackageCategoryResponse.md +3 -3
- data/docs/RpmPackageEnvironmentResponse.md +4 -4
- data/docs/RpmPackageGroupResponse.md +3 -3
- data/docs/RpmPackageLangpacksResponse.md +1 -1
- data/docs/RpmPackageResponse.md +10 -10
- data/docs/RpmPruneApi.md +61 -0
- data/docs/RpmRpmPublication.md +1 -1
- data/docs/RpmRpmPublicationResponse.md +1 -1
- data/docs/RpmRpmRepository.md +5 -1
- data/docs/RpmRpmRepositoryResponse.md +5 -1
- data/docs/RpmUpdateCollection.md +1 -1
- data/docs/RpmUpdateCollectionResponse.md +1 -1
- data/lib/pulp_rpm_client/api/content_packages_api.rb +2 -2
- data/lib/pulp_rpm_client/api/rpm_prune_api.rb +84 -0
- data/lib/pulp_rpm_client/models/copy.rb +1 -1
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +40 -2
- data/lib/pulp_rpm_client/models/prune_packages.rb +254 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +4 -4
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +10 -10
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +40 -2
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +40 -2
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +2 -0
- data/spec/api/content_packages_api_spec.rb +1 -1
- data/spec/api/rpm_prune_api_spec.rb +46 -0
- data/spec/models/patchedrpm_rpm_repository_spec.rb +12 -0
- data/spec/models/prune_packages_spec.rb +53 -0
- data/spec/models/rpm_rpm_repository_response_spec.rb +12 -0
- data/spec/models/rpm_rpm_repository_spec.rb +12 -0
- metadata +90 -82
@@ -35,6 +35,12 @@ module PulpRpmClient
|
|
35
35
|
# A reference to an associated signing service.
|
36
36
|
attr_accessor :metadata_signing_service
|
37
37
|
|
38
|
+
# A reference to an associated package signing service.
|
39
|
+
attr_accessor :package_signing_service
|
40
|
+
|
41
|
+
# 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.
|
42
|
+
attr_accessor :package_signing_fingerprint
|
43
|
+
|
38
44
|
# 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.
|
39
45
|
attr_accessor :retain_package_versions
|
40
46
|
|
@@ -69,6 +75,8 @@ module PulpRpmClient
|
|
69
75
|
:'remote' => :'remote',
|
70
76
|
:'autopublish' => :'autopublish',
|
71
77
|
:'metadata_signing_service' => :'metadata_signing_service',
|
78
|
+
:'package_signing_service' => :'package_signing_service',
|
79
|
+
:'package_signing_fingerprint' => :'package_signing_fingerprint',
|
72
80
|
:'retain_package_versions' => :'retain_package_versions',
|
73
81
|
:'checksum_type' => :'checksum_type',
|
74
82
|
:'metadata_checksum_type' => :'metadata_checksum_type',
|
@@ -90,13 +98,15 @@ module PulpRpmClient
|
|
90
98
|
:'remote' => :'String',
|
91
99
|
:'autopublish' => :'Boolean',
|
92
100
|
:'metadata_signing_service' => :'String',
|
101
|
+
:'package_signing_service' => :'String',
|
102
|
+
:'package_signing_fingerprint' => :'String',
|
93
103
|
:'retain_package_versions' => :'Integer',
|
94
104
|
:'checksum_type' => :'PackageChecksumTypeEnum',
|
95
105
|
:'metadata_checksum_type' => :'PackageChecksumTypeEnum',
|
96
106
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
97
107
|
:'gpgcheck' => :'Integer',
|
98
108
|
:'repo_gpgcheck' => :'Integer',
|
99
|
-
:'repo_config' => :'
|
109
|
+
:'repo_config' => :'AnyType',
|
100
110
|
:'compression_type' => :'CompressionTypeEnum'
|
101
111
|
}
|
102
112
|
end
|
@@ -108,6 +118,7 @@ module PulpRpmClient
|
|
108
118
|
:'retain_repo_versions',
|
109
119
|
:'remote',
|
110
120
|
:'metadata_signing_service',
|
121
|
+
:'package_signing_service',
|
111
122
|
:'checksum_type',
|
112
123
|
:'metadata_checksum_type',
|
113
124
|
:'package_checksum_type',
|
@@ -164,6 +175,16 @@ module PulpRpmClient
|
|
164
175
|
self.metadata_signing_service = attributes[:'metadata_signing_service']
|
165
176
|
end
|
166
177
|
|
178
|
+
if attributes.key?(:'package_signing_service')
|
179
|
+
self.package_signing_service = attributes[:'package_signing_service']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'package_signing_fingerprint')
|
183
|
+
self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
|
184
|
+
else
|
185
|
+
self.package_signing_fingerprint = ''
|
186
|
+
end
|
187
|
+
|
167
188
|
if attributes.key?(:'retain_package_versions')
|
168
189
|
self.retain_package_versions = attributes[:'retain_package_versions']
|
169
190
|
end
|
@@ -213,6 +234,10 @@ module PulpRpmClient
|
|
213
234
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
214
235
|
end
|
215
236
|
|
237
|
+
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
238
|
+
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
|
239
|
+
end
|
240
|
+
|
216
241
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
217
242
|
invalid_properties.push('invalid value for "retain_package_versions", must be greater than or equal to 0.')
|
218
243
|
end
|
@@ -242,6 +267,7 @@ module PulpRpmClient
|
|
242
267
|
return false if !@name.nil? && @name.to_s.length < 1
|
243
268
|
return false if !@description.nil? && @description.to_s.length < 1
|
244
269
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
270
|
+
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
245
271
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
246
272
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
247
273
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
@@ -280,6 +306,16 @@ module PulpRpmClient
|
|
280
306
|
@retain_repo_versions = retain_repo_versions
|
281
307
|
end
|
282
308
|
|
309
|
+
# Custom attribute writer method with validation
|
310
|
+
# @param [Object] package_signing_fingerprint Value to be assigned
|
311
|
+
def package_signing_fingerprint=(package_signing_fingerprint)
|
312
|
+
if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 40
|
313
|
+
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
|
314
|
+
end
|
315
|
+
|
316
|
+
@package_signing_fingerprint = package_signing_fingerprint
|
317
|
+
end
|
318
|
+
|
283
319
|
# Custom attribute writer method with validation
|
284
320
|
# @param [Object] retain_package_versions Value to be assigned
|
285
321
|
def retain_package_versions=(retain_package_versions)
|
@@ -330,6 +366,8 @@ module PulpRpmClient
|
|
330
366
|
remote == o.remote &&
|
331
367
|
autopublish == o.autopublish &&
|
332
368
|
metadata_signing_service == o.metadata_signing_service &&
|
369
|
+
package_signing_service == o.package_signing_service &&
|
370
|
+
package_signing_fingerprint == o.package_signing_fingerprint &&
|
333
371
|
retain_package_versions == o.retain_package_versions &&
|
334
372
|
checksum_type == o.checksum_type &&
|
335
373
|
metadata_checksum_type == o.metadata_checksum_type &&
|
@@ -349,7 +387,7 @@ module PulpRpmClient
|
|
349
387
|
# Calculates hash code according to all attributes.
|
350
388
|
# @return [Integer] Hash code
|
351
389
|
def hash
|
352
|
-
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, repo_config, compression_type].hash
|
390
|
+
[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].hash
|
353
391
|
end
|
354
392
|
|
355
393
|
# Builds the object from hash
|
@@ -0,0 +1,254 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpRpmClient
|
16
|
+
# Serializer for prune-old-Packages operation.
|
17
|
+
class PrunePackages
|
18
|
+
# Will prune old packages from the specified list of repos. Use ['*'] to specify all repos. Will prune based on the specified repositories' latest_versions.
|
19
|
+
attr_accessor :repo_hrefs
|
20
|
+
|
21
|
+
# Prune packages introduced *prior-to* this many days ago. Default is 14. A value of 0 implies 'keep latest package only.'
|
22
|
+
attr_accessor :keep_days
|
23
|
+
|
24
|
+
# Determine what would-be-pruned and log the list of packages. Intended as a debugging aid.
|
25
|
+
attr_accessor :dry_run
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'repo_hrefs' => :'repo_hrefs',
|
31
|
+
:'keep_days' => :'keep_days',
|
32
|
+
:'dry_run' => :'dry_run'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'repo_hrefs' => :'Array<String>',
|
40
|
+
:'keep_days' => :'Integer',
|
41
|
+
:'dry_run' => :'Boolean'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpRpmClient::PrunePackages` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpRpmClient::PrunePackages`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
+
end
|
63
|
+
h[k.to_sym] = v
|
64
|
+
}
|
65
|
+
|
66
|
+
if attributes.key?(:'repo_hrefs')
|
67
|
+
if (value = attributes[:'repo_hrefs']).is_a?(Array)
|
68
|
+
self.repo_hrefs = value
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'keep_days')
|
73
|
+
self.keep_days = attributes[:'keep_days']
|
74
|
+
else
|
75
|
+
self.keep_days = 14
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'dry_run')
|
79
|
+
self.dry_run = attributes[:'dry_run']
|
80
|
+
else
|
81
|
+
self.dry_run = false
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
86
|
+
# @return Array for valid properties with the reasons
|
87
|
+
def list_invalid_properties
|
88
|
+
invalid_properties = Array.new
|
89
|
+
if @repo_hrefs.nil?
|
90
|
+
invalid_properties.push('invalid value for "repo_hrefs", repo_hrefs cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
if !@keep_days.nil? && @keep_days < 0
|
94
|
+
invalid_properties.push('invalid value for "keep_days", must be greater than or equal to 0.')
|
95
|
+
end
|
96
|
+
|
97
|
+
invalid_properties
|
98
|
+
end
|
99
|
+
|
100
|
+
# Check to see if the all the properties in the model are valid
|
101
|
+
# @return true if the model is valid
|
102
|
+
def valid?
|
103
|
+
return false if @repo_hrefs.nil?
|
104
|
+
return false if !@keep_days.nil? && @keep_days < 0
|
105
|
+
true
|
106
|
+
end
|
107
|
+
|
108
|
+
# Custom attribute writer method with validation
|
109
|
+
# @param [Object] keep_days Value to be assigned
|
110
|
+
def keep_days=(keep_days)
|
111
|
+
if !keep_days.nil? && keep_days < 0
|
112
|
+
fail ArgumentError, 'invalid value for "keep_days", must be greater than or equal to 0.'
|
113
|
+
end
|
114
|
+
|
115
|
+
@keep_days = keep_days
|
116
|
+
end
|
117
|
+
|
118
|
+
# Checks equality by comparing each attribute.
|
119
|
+
# @param [Object] Object to be compared
|
120
|
+
def ==(o)
|
121
|
+
return true if self.equal?(o)
|
122
|
+
self.class == o.class &&
|
123
|
+
repo_hrefs == o.repo_hrefs &&
|
124
|
+
keep_days == o.keep_days &&
|
125
|
+
dry_run == o.dry_run
|
126
|
+
end
|
127
|
+
|
128
|
+
# @see the `==` method
|
129
|
+
# @param [Object] Object to be compared
|
130
|
+
def eql?(o)
|
131
|
+
self == o
|
132
|
+
end
|
133
|
+
|
134
|
+
# Calculates hash code according to all attributes.
|
135
|
+
# @return [Integer] Hash code
|
136
|
+
def hash
|
137
|
+
[repo_hrefs, keep_days, dry_run].hash
|
138
|
+
end
|
139
|
+
|
140
|
+
# Builds the object from hash
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
142
|
+
# @return [Object] Returns the model itself
|
143
|
+
def self.build_from_hash(attributes)
|
144
|
+
new.build_from_hash(attributes)
|
145
|
+
end
|
146
|
+
|
147
|
+
# Builds the object from hash
|
148
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
149
|
+
# @return [Object] Returns the model itself
|
150
|
+
def build_from_hash(attributes)
|
151
|
+
return nil unless attributes.is_a?(Hash)
|
152
|
+
self.class.openapi_types.each_pair do |key, type|
|
153
|
+
if type =~ /\AArray<(.*)>/i
|
154
|
+
# check to ensure the input is an array given that the attribute
|
155
|
+
# is documented as an array but the input is not
|
156
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
157
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
158
|
+
end
|
159
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
160
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
161
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
162
|
+
end
|
163
|
+
|
164
|
+
self
|
165
|
+
end
|
166
|
+
|
167
|
+
# Deserializes the data based on type
|
168
|
+
# @param string type Data type
|
169
|
+
# @param string value Value to be deserialized
|
170
|
+
# @return [Object] Deserialized data
|
171
|
+
def _deserialize(type, value)
|
172
|
+
case type.to_sym
|
173
|
+
when :DateTime
|
174
|
+
DateTime.parse(value)
|
175
|
+
when :Date
|
176
|
+
Date.parse(value)
|
177
|
+
when :String
|
178
|
+
value.to_s
|
179
|
+
when :Integer
|
180
|
+
value.to_i
|
181
|
+
when :Float
|
182
|
+
value.to_f
|
183
|
+
when :Boolean
|
184
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
185
|
+
true
|
186
|
+
else
|
187
|
+
false
|
188
|
+
end
|
189
|
+
when :Object
|
190
|
+
# generic object (usually a Hash), return directly
|
191
|
+
value
|
192
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
193
|
+
inner_type = Regexp.last_match[:inner_type]
|
194
|
+
value.map { |v| _deserialize(inner_type, v) }
|
195
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
196
|
+
k_type = Regexp.last_match[:k_type]
|
197
|
+
v_type = Regexp.last_match[:v_type]
|
198
|
+
{}.tap do |hash|
|
199
|
+
value.each do |k, v|
|
200
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
else # model
|
204
|
+
PulpRpmClient.const_get(type).build_from_hash(value)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the string representation of the object
|
209
|
+
# @return [String] String presentation of the object
|
210
|
+
def to_s
|
211
|
+
to_hash.to_s
|
212
|
+
end
|
213
|
+
|
214
|
+
# to_body is an alias to to_hash (backward compatibility)
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
216
|
+
def to_body
|
217
|
+
to_hash
|
218
|
+
end
|
219
|
+
|
220
|
+
# Returns the object in the form of hash
|
221
|
+
# @return [Hash] Returns the object in the form of hash
|
222
|
+
def to_hash
|
223
|
+
hash = {}
|
224
|
+
self.class.attribute_map.each_pair do |attr, param|
|
225
|
+
value = self.send(attr)
|
226
|
+
if value.nil?
|
227
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
228
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
229
|
+
end
|
230
|
+
|
231
|
+
hash[param] = _to_hash(value)
|
232
|
+
end
|
233
|
+
hash
|
234
|
+
end
|
235
|
+
|
236
|
+
# Outputs non-array value in the form of hash
|
237
|
+
# For object, use to_hash. Otherwise, just return the value
|
238
|
+
# @param [Object] value Any valid value
|
239
|
+
# @return [Hash] Returns the value in the form of hash
|
240
|
+
def _to_hash(value)
|
241
|
+
if value.is_a?(Array)
|
242
|
+
value.compact.map { |v| _to_hash(v) }
|
243
|
+
elsif value.is_a?(Hash)
|
244
|
+
{}.tap do |hash|
|
245
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
246
|
+
end
|
247
|
+
elsif value.respond_to? :to_hash
|
248
|
+
value.to_hash
|
249
|
+
else
|
250
|
+
value
|
251
|
+
end
|
252
|
+
end
|
253
|
+
end
|
254
|
+
end
|
@@ -83,11 +83,11 @@ module PulpRpmClient
|
|
83
83
|
:'static_context' => :'Boolean',
|
84
84
|
:'context' => :'String',
|
85
85
|
:'arch' => :'String',
|
86
|
-
:'artifacts' => :'
|
87
|
-
:'dependencies' => :'
|
86
|
+
:'artifacts' => :'AnyType',
|
87
|
+
:'dependencies' => :'AnyType',
|
88
88
|
:'packages' => :'Array<String>',
|
89
89
|
:'snippet' => :'String',
|
90
|
-
:'profiles' => :'
|
90
|
+
:'profiles' => :'AnyType',
|
91
91
|
:'description' => :'String'
|
92
92
|
}
|
93
93
|
end
|
@@ -88,10 +88,10 @@ module PulpRpmClient
|
|
88
88
|
:'static_context' => :'Boolean',
|
89
89
|
:'context' => :'String',
|
90
90
|
:'arch' => :'String',
|
91
|
-
:'artifacts' => :'
|
92
|
-
:'dependencies' => :'
|
91
|
+
:'artifacts' => :'AnyType',
|
92
|
+
:'dependencies' => :'AnyType',
|
93
93
|
:'packages' => :'Array<String>',
|
94
|
-
:'profiles' => :'
|
94
|
+
:'profiles' => :'AnyType',
|
95
95
|
:'description' => :'String'
|
96
96
|
}
|
97
97
|
end
|
@@ -74,9 +74,9 @@ module PulpRpmClient
|
|
74
74
|
:'name' => :'String',
|
75
75
|
:'description' => :'String',
|
76
76
|
:'display_order' => :'Integer',
|
77
|
-
:'group_ids' => :'
|
78
|
-
:'desc_by_lang' => :'
|
79
|
-
:'name_by_lang' => :'
|
77
|
+
:'group_ids' => :'AnyType',
|
78
|
+
:'desc_by_lang' => :'AnyType',
|
79
|
+
:'name_by_lang' => :'AnyType',
|
80
80
|
:'digest' => :'String'
|
81
81
|
}
|
82
82
|
end
|
@@ -78,10 +78,10 @@ module PulpRpmClient
|
|
78
78
|
:'name' => :'String',
|
79
79
|
:'description' => :'String',
|
80
80
|
:'display_order' => :'Integer',
|
81
|
-
:'group_ids' => :'
|
82
|
-
:'option_ids' => :'
|
83
|
-
:'desc_by_lang' => :'
|
84
|
-
:'name_by_lang' => :'
|
81
|
+
:'group_ids' => :'AnyType',
|
82
|
+
:'option_ids' => :'AnyType',
|
83
|
+
:'desc_by_lang' => :'AnyType',
|
84
|
+
:'name_by_lang' => :'AnyType',
|
85
85
|
:'digest' => :'String'
|
86
86
|
}
|
87
87
|
end
|
@@ -88,10 +88,10 @@ module PulpRpmClient
|
|
88
88
|
:'display_order' => :'Integer',
|
89
89
|
:'name' => :'String',
|
90
90
|
:'description' => :'String',
|
91
|
-
:'packages' => :'
|
91
|
+
:'packages' => :'AnyType',
|
92
92
|
:'biarch_only' => :'Boolean',
|
93
|
-
:'desc_by_lang' => :'
|
94
|
-
:'name_by_lang' => :'
|
93
|
+
:'desc_by_lang' => :'AnyType',
|
94
|
+
:'name_by_lang' => :'AnyType',
|
95
95
|
:'digest' => :'String'
|
96
96
|
}
|
97
97
|
end
|
@@ -227,16 +227,16 @@ module PulpRpmClient
|
|
227
227
|
:'summary' => :'String',
|
228
228
|
:'description' => :'String',
|
229
229
|
:'url' => :'String',
|
230
|
-
:'changelogs' => :'
|
231
|
-
:'files' => :'
|
232
|
-
:'requires' => :'
|
233
|
-
:'provides' => :'
|
234
|
-
:'conflicts' => :'
|
235
|
-
:'obsoletes' => :'
|
236
|
-
:'suggests' => :'
|
237
|
-
:'enhances' => :'
|
238
|
-
:'recommends' => :'
|
239
|
-
:'supplements' => :'
|
230
|
+
:'changelogs' => :'AnyType',
|
231
|
+
:'files' => :'AnyType',
|
232
|
+
:'requires' => :'AnyType',
|
233
|
+
:'provides' => :'AnyType',
|
234
|
+
:'conflicts' => :'AnyType',
|
235
|
+
:'obsoletes' => :'AnyType',
|
236
|
+
:'suggests' => :'AnyType',
|
237
|
+
:'enhances' => :'AnyType',
|
238
|
+
:'recommends' => :'AnyType',
|
239
|
+
:'supplements' => :'AnyType',
|
240
240
|
:'location_base' => :'String',
|
241
241
|
:'location_href' => :'String',
|
242
242
|
:'rpm_buildhost' => :'String',
|
@@ -66,7 +66,7 @@ module PulpRpmClient
|
|
66
66
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
67
67
|
:'gpgcheck' => :'Integer',
|
68
68
|
:'repo_gpgcheck' => :'Integer',
|
69
|
-
:'repo_config' => :'
|
69
|
+
:'repo_config' => :'AnyType',
|
70
70
|
:'compression_type' => :'CompressionTypeEnum'
|
71
71
|
}
|
72
72
|
end
|
@@ -35,6 +35,12 @@ module PulpRpmClient
|
|
35
35
|
# A reference to an associated signing service.
|
36
36
|
attr_accessor :metadata_signing_service
|
37
37
|
|
38
|
+
# A reference to an associated package signing service.
|
39
|
+
attr_accessor :package_signing_service
|
40
|
+
|
41
|
+
# 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.
|
42
|
+
attr_accessor :package_signing_fingerprint
|
43
|
+
|
38
44
|
# 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.
|
39
45
|
attr_accessor :retain_package_versions
|
40
46
|
|
@@ -69,6 +75,8 @@ module PulpRpmClient
|
|
69
75
|
:'remote' => :'remote',
|
70
76
|
:'autopublish' => :'autopublish',
|
71
77
|
:'metadata_signing_service' => :'metadata_signing_service',
|
78
|
+
:'package_signing_service' => :'package_signing_service',
|
79
|
+
:'package_signing_fingerprint' => :'package_signing_fingerprint',
|
72
80
|
:'retain_package_versions' => :'retain_package_versions',
|
73
81
|
:'checksum_type' => :'checksum_type',
|
74
82
|
:'metadata_checksum_type' => :'metadata_checksum_type',
|
@@ -90,13 +98,15 @@ module PulpRpmClient
|
|
90
98
|
:'remote' => :'String',
|
91
99
|
:'autopublish' => :'Boolean',
|
92
100
|
:'metadata_signing_service' => :'String',
|
101
|
+
:'package_signing_service' => :'String',
|
102
|
+
:'package_signing_fingerprint' => :'String',
|
93
103
|
:'retain_package_versions' => :'Integer',
|
94
104
|
:'checksum_type' => :'PackageChecksumTypeEnum',
|
95
105
|
:'metadata_checksum_type' => :'PackageChecksumTypeEnum',
|
96
106
|
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
97
107
|
:'gpgcheck' => :'Integer',
|
98
108
|
:'repo_gpgcheck' => :'Integer',
|
99
|
-
:'repo_config' => :'
|
109
|
+
:'repo_config' => :'AnyType',
|
100
110
|
:'compression_type' => :'CompressionTypeEnum'
|
101
111
|
}
|
102
112
|
end
|
@@ -108,6 +118,7 @@ module PulpRpmClient
|
|
108
118
|
:'retain_repo_versions',
|
109
119
|
:'remote',
|
110
120
|
:'metadata_signing_service',
|
121
|
+
:'package_signing_service',
|
111
122
|
:'checksum_type',
|
112
123
|
:'metadata_checksum_type',
|
113
124
|
:'package_checksum_type',
|
@@ -164,6 +175,16 @@ module PulpRpmClient
|
|
164
175
|
self.metadata_signing_service = attributes[:'metadata_signing_service']
|
165
176
|
end
|
166
177
|
|
178
|
+
if attributes.key?(:'package_signing_service')
|
179
|
+
self.package_signing_service = attributes[:'package_signing_service']
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'package_signing_fingerprint')
|
183
|
+
self.package_signing_fingerprint = attributes[:'package_signing_fingerprint']
|
184
|
+
else
|
185
|
+
self.package_signing_fingerprint = ''
|
186
|
+
end
|
187
|
+
|
167
188
|
if attributes.key?(:'retain_package_versions')
|
168
189
|
self.retain_package_versions = attributes[:'retain_package_versions']
|
169
190
|
end
|
@@ -217,6 +238,10 @@ module PulpRpmClient
|
|
217
238
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
218
239
|
end
|
219
240
|
|
241
|
+
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
242
|
+
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
|
243
|
+
end
|
244
|
+
|
220
245
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
221
246
|
invalid_properties.push('invalid value for "retain_package_versions", must be greater than or equal to 0.')
|
222
247
|
end
|
@@ -247,6 +272,7 @@ module PulpRpmClient
|
|
247
272
|
return false if @name.to_s.length < 1
|
248
273
|
return false if !@description.nil? && @description.to_s.length < 1
|
249
274
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
275
|
+
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
250
276
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
251
277
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
252
278
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
@@ -289,6 +315,16 @@ module PulpRpmClient
|
|
289
315
|
@retain_repo_versions = retain_repo_versions
|
290
316
|
end
|
291
317
|
|
318
|
+
# Custom attribute writer method with validation
|
319
|
+
# @param [Object] package_signing_fingerprint Value to be assigned
|
320
|
+
def package_signing_fingerprint=(package_signing_fingerprint)
|
321
|
+
if !package_signing_fingerprint.nil? && package_signing_fingerprint.to_s.length > 40
|
322
|
+
fail ArgumentError, 'invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.'
|
323
|
+
end
|
324
|
+
|
325
|
+
@package_signing_fingerprint = package_signing_fingerprint
|
326
|
+
end
|
327
|
+
|
292
328
|
# Custom attribute writer method with validation
|
293
329
|
# @param [Object] retain_package_versions Value to be assigned
|
294
330
|
def retain_package_versions=(retain_package_versions)
|
@@ -339,6 +375,8 @@ module PulpRpmClient
|
|
339
375
|
remote == o.remote &&
|
340
376
|
autopublish == o.autopublish &&
|
341
377
|
metadata_signing_service == o.metadata_signing_service &&
|
378
|
+
package_signing_service == o.package_signing_service &&
|
379
|
+
package_signing_fingerprint == o.package_signing_fingerprint &&
|
342
380
|
retain_package_versions == o.retain_package_versions &&
|
343
381
|
checksum_type == o.checksum_type &&
|
344
382
|
metadata_checksum_type == o.metadata_checksum_type &&
|
@@ -358,7 +396,7 @@ module PulpRpmClient
|
|
358
396
|
# Calculates hash code according to all attributes.
|
359
397
|
# @return [Integer] Hash code
|
360
398
|
def hash
|
361
|
-
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, checksum_type, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, repo_config, compression_type].hash
|
399
|
+
[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].hash
|
362
400
|
end
|
363
401
|
|
364
402
|
# Builds the object from hash
|