pulp_rpm_client 3.4.2 → 3.5.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.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/docs/ContentAdvisoriesApi.md +2 -6
- data/docs/ContentModulemdDefaultsApi.md +2 -2
- data/docs/ContentModulemdsApi.md +2 -2
- data/docs/ContentPackagesApi.md +2 -2
- data/docs/RpmPackageCategory.md +1 -3
- data/docs/RpmPackageEnvironment.md +1 -5
- data/docs/RpmPackageGroup.md +1 -3
- data/docs/RpmRepoMetadataFile.md +2 -0
- data/docs/RpmRpmRemote.md +3 -1
- data/docs/RpmRpmRepository.md +3 -1
- data/docs/RpmUpdateCollection.md +2 -0
- data/docs/RpmUpdateRecord.md +0 -2
- data/lib/pulp_rpm_client/api/content_advisories_api.rb +3 -17
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +3 -3
- data/lib/pulp_rpm_client/api/content_packages_api.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_package_category.rb +4 -16
- data/lib/pulp_rpm_client/models/rpm_package_environment.rb +4 -28
- data/lib/pulp_rpm_client/models/rpm_package_group.rb +4 -16
- data/lib/pulp_rpm_client/models/rpm_repo_metadata_file.rb +35 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +30 -4
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +30 -5
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +16 -1
- data/lib/pulp_rpm_client/models/rpm_update_record.rb +1 -11
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/api/content_advisories_api_spec.rb +0 -2
- data/spec/api/content_modulemd_defaults_api_spec.rb +1 -1
- data/spec/api/content_modulemds_api_spec.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +1 -1
- data/spec/models/rpm_package_category_spec.rb +0 -6
- data/spec/models/rpm_package_environment_spec.rb +0 -12
- data/spec/models/rpm_package_group_spec.rb +0 -6
- data/spec/models/rpm_repo_metadata_file_spec.rb +6 -0
- data/spec/models/rpm_rpm_remote_spec.rb +6 -0
- data/spec/models/rpm_rpm_repository_spec.rb +6 -0
- data/spec/models/rpm_update_collection_spec.rb +6 -0
- data/spec/models/rpm_update_record_spec.rb +0 -6
- metadata +45 -45
@@ -52,9 +52,6 @@ module PulpRpmClient
|
|
52
52
|
# PackageGroup digest.
|
53
53
|
attr_accessor :digest
|
54
54
|
|
55
|
-
# Packages related to this PackageGroup.
|
56
|
-
attr_accessor :related_packages
|
57
|
-
|
58
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
59
56
|
def self.attribute_map
|
60
57
|
{
|
@@ -70,8 +67,7 @@ module PulpRpmClient
|
|
70
67
|
:'biarch_only' => :'biarch_only',
|
71
68
|
:'desc_by_lang' => :'desc_by_lang',
|
72
69
|
:'name_by_lang' => :'name_by_lang',
|
73
|
-
:'digest' => :'digest'
|
74
|
-
:'related_packages' => :'related_packages'
|
70
|
+
:'digest' => :'digest'
|
75
71
|
}
|
76
72
|
end
|
77
73
|
|
@@ -90,8 +86,7 @@ module PulpRpmClient
|
|
90
86
|
:'biarch_only' => :'Boolean',
|
91
87
|
:'desc_by_lang' => :'Object',
|
92
88
|
:'name_by_lang' => :'Object',
|
93
|
-
:'digest' => :'String'
|
94
|
-
:'related_packages' => :'Array<String>'
|
89
|
+
:'digest' => :'String'
|
95
90
|
}
|
96
91
|
end
|
97
92
|
|
@@ -167,12 +162,6 @@ module PulpRpmClient
|
|
167
162
|
if attributes.key?(:'digest')
|
168
163
|
self.digest = attributes[:'digest']
|
169
164
|
end
|
170
|
-
|
171
|
-
if attributes.key?(:'related_packages')
|
172
|
-
if (value = attributes[:'related_packages']).is_a?(Array)
|
173
|
-
self.related_packages = value
|
174
|
-
end
|
175
|
-
end
|
176
165
|
end
|
177
166
|
|
178
167
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -283,8 +272,7 @@ module PulpRpmClient
|
|
283
272
|
biarch_only == o.biarch_only &&
|
284
273
|
desc_by_lang == o.desc_by_lang &&
|
285
274
|
name_by_lang == o.name_by_lang &&
|
286
|
-
digest == o.digest
|
287
|
-
related_packages == o.related_packages
|
275
|
+
digest == o.digest
|
288
276
|
end
|
289
277
|
|
290
278
|
# @see the `==` method
|
@@ -296,7 +284,7 @@ module PulpRpmClient
|
|
296
284
|
# Calculates hash code according to all attributes.
|
297
285
|
# @return [Integer] Hash code
|
298
286
|
def hash
|
299
|
-
[pulp_href, pulp_created, id, default, user_visible, display_order, name, description, packages, biarch_only, desc_by_lang, name_by_lang, digest
|
287
|
+
[pulp_href, pulp_created, id, default, user_visible, display_order, name, description, packages, biarch_only, desc_by_lang, name_by_lang, digest].hash
|
300
288
|
end
|
301
289
|
|
302
290
|
# Builds the object from hash
|
@@ -22,6 +22,9 @@ module PulpRpmClient
|
|
22
22
|
# Artifact file representing the physical content
|
23
23
|
attr_accessor :artifact
|
24
24
|
|
25
|
+
# Relative path of the file.
|
26
|
+
attr_accessor :relative_path
|
27
|
+
|
25
28
|
# Metadata type.
|
26
29
|
attr_accessor :data_type
|
27
30
|
|
@@ -40,6 +43,7 @@ module PulpRpmClient
|
|
40
43
|
:'pulp_href' => :'pulp_href',
|
41
44
|
:'pulp_created' => :'pulp_created',
|
42
45
|
:'artifact' => :'artifact',
|
46
|
+
:'relative_path' => :'relative_path',
|
43
47
|
:'data_type' => :'data_type',
|
44
48
|
:'checksum_type' => :'checksum_type',
|
45
49
|
:'checksum' => :'checksum',
|
@@ -53,6 +57,7 @@ module PulpRpmClient
|
|
53
57
|
:'pulp_href' => :'String',
|
54
58
|
:'pulp_created' => :'DateTime',
|
55
59
|
:'artifact' => :'String',
|
60
|
+
:'relative_path' => :'String',
|
56
61
|
:'data_type' => :'String',
|
57
62
|
:'checksum_type' => :'String',
|
58
63
|
:'checksum' => :'String',
|
@@ -93,6 +98,10 @@ module PulpRpmClient
|
|
93
98
|
self.artifact = attributes[:'artifact']
|
94
99
|
end
|
95
100
|
|
101
|
+
if attributes.key?(:'relative_path')
|
102
|
+
self.relative_path = attributes[:'relative_path']
|
103
|
+
end
|
104
|
+
|
96
105
|
if attributes.key?(:'data_type')
|
97
106
|
self.data_type = attributes[:'data_type']
|
98
107
|
end
|
@@ -114,6 +123,14 @@ module PulpRpmClient
|
|
114
123
|
# @return Array for valid properties with the reasons
|
115
124
|
def list_invalid_properties
|
116
125
|
invalid_properties = Array.new
|
126
|
+
if @relative_path.nil?
|
127
|
+
invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
|
128
|
+
end
|
129
|
+
|
130
|
+
if @relative_path.to_s.length < 1
|
131
|
+
invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
|
132
|
+
end
|
133
|
+
|
117
134
|
if @data_type.nil?
|
118
135
|
invalid_properties.push('invalid value for "data_type", data_type cannot be nil.')
|
119
136
|
end
|
@@ -148,6 +165,8 @@ module PulpRpmClient
|
|
148
165
|
# Check to see if the all the properties in the model are valid
|
149
166
|
# @return true if the model is valid
|
150
167
|
def valid?
|
168
|
+
return false if @relative_path.nil?
|
169
|
+
return false if @relative_path.to_s.length < 1
|
151
170
|
return false if @data_type.nil?
|
152
171
|
return false if @data_type.to_s.length < 1
|
153
172
|
return false if @checksum_type.nil?
|
@@ -158,6 +177,20 @@ module PulpRpmClient
|
|
158
177
|
true
|
159
178
|
end
|
160
179
|
|
180
|
+
# Custom attribute writer method with validation
|
181
|
+
# @param [Object] relative_path Value to be assigned
|
182
|
+
def relative_path=(relative_path)
|
183
|
+
if relative_path.nil?
|
184
|
+
fail ArgumentError, 'relative_path cannot be nil'
|
185
|
+
end
|
186
|
+
|
187
|
+
if relative_path.to_s.length < 1
|
188
|
+
fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
|
189
|
+
end
|
190
|
+
|
191
|
+
@relative_path = relative_path
|
192
|
+
end
|
193
|
+
|
161
194
|
# Custom attribute writer method with validation
|
162
195
|
# @param [Object] data_type Value to be assigned
|
163
196
|
def data_type=(data_type)
|
@@ -218,6 +251,7 @@ module PulpRpmClient
|
|
218
251
|
pulp_href == o.pulp_href &&
|
219
252
|
pulp_created == o.pulp_created &&
|
220
253
|
artifact == o.artifact &&
|
254
|
+
relative_path == o.relative_path &&
|
221
255
|
data_type == o.data_type &&
|
222
256
|
checksum_type == o.checksum_type &&
|
223
257
|
checksum == o.checksum &&
|
@@ -233,7 +267,7 @@ module PulpRpmClient
|
|
233
267
|
# Calculates hash code according to all attributes.
|
234
268
|
# @return [Integer] Hash code
|
235
269
|
def hash
|
236
|
-
[pulp_href, pulp_created, artifact, data_type, checksum_type, checksum, sha256].hash
|
270
|
+
[pulp_href, pulp_created, artifact, relative_path, data_type, checksum_type, checksum, sha256].hash
|
237
271
|
end
|
238
272
|
|
239
273
|
# Builds the object from hash
|
@@ -55,6 +55,9 @@ module PulpRpmClient
|
|
55
55
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
56
56
|
attr_accessor :policy
|
57
57
|
|
58
|
+
# Authentication token for SLES repositories.
|
59
|
+
attr_accessor :sles_auth_token
|
60
|
+
|
58
61
|
class EnumAttributeValidator
|
59
62
|
attr_reader :datatype
|
60
63
|
attr_reader :allowable_values
|
@@ -93,7 +96,8 @@ module PulpRpmClient
|
|
93
96
|
:'password' => :'password',
|
94
97
|
:'pulp_last_updated' => :'pulp_last_updated',
|
95
98
|
:'download_concurrency' => :'download_concurrency',
|
96
|
-
:'policy' => :'policy'
|
99
|
+
:'policy' => :'policy',
|
100
|
+
:'sles_auth_token' => :'sles_auth_token'
|
97
101
|
}
|
98
102
|
end
|
99
103
|
|
@@ -113,7 +117,8 @@ module PulpRpmClient
|
|
113
117
|
:'password' => :'String',
|
114
118
|
:'pulp_last_updated' => :'DateTime',
|
115
119
|
:'download_concurrency' => :'Integer',
|
116
|
-
:'policy' => :'String'
|
120
|
+
:'policy' => :'String',
|
121
|
+
:'sles_auth_token' => :'String'
|
117
122
|
}
|
118
123
|
end
|
119
124
|
|
@@ -126,6 +131,7 @@ module PulpRpmClient
|
|
126
131
|
:'proxy_url',
|
127
132
|
:'username',
|
128
133
|
:'password',
|
134
|
+
:'sles_auth_token'
|
129
135
|
])
|
130
136
|
end
|
131
137
|
|
@@ -201,6 +207,10 @@ module PulpRpmClient
|
|
201
207
|
else
|
202
208
|
self.policy = 'immediate'
|
203
209
|
end
|
210
|
+
|
211
|
+
if attributes.key?(:'sles_auth_token')
|
212
|
+
self.sles_auth_token = attributes[:'sles_auth_token']
|
213
|
+
end
|
204
214
|
end
|
205
215
|
|
206
216
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -251,6 +261,10 @@ module PulpRpmClient
|
|
251
261
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
252
262
|
end
|
253
263
|
|
264
|
+
if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
|
265
|
+
invalid_properties.push('invalid value for "sles_auth_token", the character length must be great than or equal to 1.')
|
266
|
+
end
|
267
|
+
|
254
268
|
invalid_properties
|
255
269
|
end
|
256
270
|
|
@@ -270,6 +284,7 @@ module PulpRpmClient
|
|
270
284
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
271
285
|
policy_validator = EnumAttributeValidator.new('String', ["immediate", "on_demand", "streamed"])
|
272
286
|
return false unless policy_validator.valid?(@policy)
|
287
|
+
return false if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
|
273
288
|
true
|
274
289
|
end
|
275
290
|
|
@@ -381,6 +396,16 @@ module PulpRpmClient
|
|
381
396
|
@policy = policy
|
382
397
|
end
|
383
398
|
|
399
|
+
# Custom attribute writer method with validation
|
400
|
+
# @param [Object] sles_auth_token Value to be assigned
|
401
|
+
def sles_auth_token=(sles_auth_token)
|
402
|
+
if !sles_auth_token.nil? && sles_auth_token.to_s.length < 1
|
403
|
+
fail ArgumentError, 'invalid value for "sles_auth_token", the character length must be great than or equal to 1.'
|
404
|
+
end
|
405
|
+
|
406
|
+
@sles_auth_token = sles_auth_token
|
407
|
+
end
|
408
|
+
|
384
409
|
# Checks equality by comparing each attribute.
|
385
410
|
# @param [Object] Object to be compared
|
386
411
|
def ==(o)
|
@@ -399,7 +424,8 @@ module PulpRpmClient
|
|
399
424
|
password == o.password &&
|
400
425
|
pulp_last_updated == o.pulp_last_updated &&
|
401
426
|
download_concurrency == o.download_concurrency &&
|
402
|
-
policy == o.policy
|
427
|
+
policy == o.policy &&
|
428
|
+
sles_auth_token == o.sles_auth_token
|
403
429
|
end
|
404
430
|
|
405
431
|
# @see the `==` method
|
@@ -411,7 +437,7 @@ module PulpRpmClient
|
|
411
437
|
# Calculates hash code according to all attributes.
|
412
438
|
# @return [Integer] Hash code
|
413
439
|
def hash
|
414
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy].hash
|
440
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, sles_auth_token].hash
|
415
441
|
end
|
416
442
|
|
417
443
|
# Builds the object from hash
|
@@ -32,6 +32,9 @@ module PulpRpmClient
|
|
32
32
|
# A reference to an associated signing service.
|
33
33
|
attr_accessor :metadata_signing_service
|
34
34
|
|
35
|
+
# 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.
|
36
|
+
attr_accessor :retain_package_versions
|
37
|
+
|
35
38
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
39
|
def self.attribute_map
|
37
40
|
{
|
@@ -41,7 +44,8 @@ module PulpRpmClient
|
|
41
44
|
:'latest_version_href' => :'latest_version_href',
|
42
45
|
:'name' => :'name',
|
43
46
|
:'description' => :'description',
|
44
|
-
:'metadata_signing_service' => :'metadata_signing_service'
|
47
|
+
:'metadata_signing_service' => :'metadata_signing_service',
|
48
|
+
:'retain_package_versions' => :'retain_package_versions'
|
45
49
|
}
|
46
50
|
end
|
47
51
|
|
@@ -54,7 +58,8 @@ module PulpRpmClient
|
|
54
58
|
:'latest_version_href' => :'String',
|
55
59
|
:'name' => :'String',
|
56
60
|
:'description' => :'String',
|
57
|
-
:'metadata_signing_service' => :'String'
|
61
|
+
:'metadata_signing_service' => :'String',
|
62
|
+
:'retain_package_versions' => :'Integer'
|
58
63
|
}
|
59
64
|
end
|
60
65
|
|
@@ -62,7 +67,7 @@ module PulpRpmClient
|
|
62
67
|
def self.openapi_nullable
|
63
68
|
Set.new([
|
64
69
|
:'description',
|
65
|
-
:'metadata_signing_service'
|
70
|
+
:'metadata_signing_service',
|
66
71
|
])
|
67
72
|
end
|
68
73
|
|
@@ -108,6 +113,10 @@ module PulpRpmClient
|
|
108
113
|
if attributes.key?(:'metadata_signing_service')
|
109
114
|
self.metadata_signing_service = attributes[:'metadata_signing_service']
|
110
115
|
end
|
116
|
+
|
117
|
+
if attributes.key?(:'retain_package_versions')
|
118
|
+
self.retain_package_versions = attributes[:'retain_package_versions']
|
119
|
+
end
|
111
120
|
end
|
112
121
|
|
113
122
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -126,6 +135,10 @@ module PulpRpmClient
|
|
126
135
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
127
136
|
end
|
128
137
|
|
138
|
+
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
139
|
+
invalid_properties.push('invalid value for "retain_package_versions", must be greater than or equal to 0.')
|
140
|
+
end
|
141
|
+
|
129
142
|
invalid_properties
|
130
143
|
end
|
131
144
|
|
@@ -135,6 +148,7 @@ module PulpRpmClient
|
|
135
148
|
return false if @name.nil?
|
136
149
|
return false if @name.to_s.length < 1
|
137
150
|
return false if !@description.nil? && @description.to_s.length < 1
|
151
|
+
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
138
152
|
true
|
139
153
|
end
|
140
154
|
|
@@ -162,6 +176,16 @@ module PulpRpmClient
|
|
162
176
|
@description = description
|
163
177
|
end
|
164
178
|
|
179
|
+
# Custom attribute writer method with validation
|
180
|
+
# @param [Object] retain_package_versions Value to be assigned
|
181
|
+
def retain_package_versions=(retain_package_versions)
|
182
|
+
if !retain_package_versions.nil? && retain_package_versions < 0
|
183
|
+
fail ArgumentError, 'invalid value for "retain_package_versions", must be greater than or equal to 0.'
|
184
|
+
end
|
185
|
+
|
186
|
+
@retain_package_versions = retain_package_versions
|
187
|
+
end
|
188
|
+
|
165
189
|
# Checks equality by comparing each attribute.
|
166
190
|
# @param [Object] Object to be compared
|
167
191
|
def ==(o)
|
@@ -173,7 +197,8 @@ module PulpRpmClient
|
|
173
197
|
latest_version_href == o.latest_version_href &&
|
174
198
|
name == o.name &&
|
175
199
|
description == o.description &&
|
176
|
-
metadata_signing_service == o.metadata_signing_service
|
200
|
+
metadata_signing_service == o.metadata_signing_service &&
|
201
|
+
retain_package_versions == o.retain_package_versions
|
177
202
|
end
|
178
203
|
|
179
204
|
# @see the `==` method
|
@@ -185,7 +210,7 @@ module PulpRpmClient
|
|
185
210
|
# Calculates hash code according to all attributes.
|
186
211
|
# @return [Integer] Hash code
|
187
212
|
def hash
|
188
|
-
[pulp_href, pulp_created, versions_href, latest_version_href, name, description, metadata_signing_service].hash
|
213
|
+
[pulp_href, pulp_created, versions_href, latest_version_href, name, description, metadata_signing_service, retain_package_versions].hash
|
189
214
|
end
|
190
215
|
|
191
216
|
# Builds the object from hash
|
@@ -21,6 +21,9 @@ module PulpRpmClient
|
|
21
21
|
# Collection short name.
|
22
22
|
attr_accessor :shortname
|
23
23
|
|
24
|
+
# Collection modular NSVCA.
|
25
|
+
attr_accessor :_module
|
26
|
+
|
24
27
|
# List of packages
|
25
28
|
attr_accessor :packages
|
26
29
|
|
@@ -29,6 +32,7 @@ module PulpRpmClient
|
|
29
32
|
{
|
30
33
|
:'name' => :'name',
|
31
34
|
:'shortname' => :'shortname',
|
35
|
+
:'_module' => :'module',
|
32
36
|
:'packages' => :'packages'
|
33
37
|
}
|
34
38
|
end
|
@@ -38,6 +42,7 @@ module PulpRpmClient
|
|
38
42
|
{
|
39
43
|
:'name' => :'String',
|
40
44
|
:'shortname' => :'String',
|
45
|
+
:'_module' => :'Object',
|
41
46
|
:'packages' => :'Array<Hash<String, String>>'
|
42
47
|
}
|
43
48
|
end
|
@@ -71,6 +76,10 @@ module PulpRpmClient
|
|
71
76
|
self.shortname = attributes[:'shortname']
|
72
77
|
end
|
73
78
|
|
79
|
+
if attributes.key?(:'_module')
|
80
|
+
self._module = attributes[:'_module']
|
81
|
+
end
|
82
|
+
|
74
83
|
if attributes.key?(:'packages')
|
75
84
|
if (value = attributes[:'packages']).is_a?(Array)
|
76
85
|
self.packages = value
|
@@ -90,6 +99,10 @@ module PulpRpmClient
|
|
90
99
|
invalid_properties.push('invalid value for "shortname", shortname cannot be nil.')
|
91
100
|
end
|
92
101
|
|
102
|
+
if @_module.nil?
|
103
|
+
invalid_properties.push('invalid value for "_module", _module cannot be nil.')
|
104
|
+
end
|
105
|
+
|
93
106
|
invalid_properties
|
94
107
|
end
|
95
108
|
|
@@ -98,6 +111,7 @@ module PulpRpmClient
|
|
98
111
|
def valid?
|
99
112
|
return false if @name.nil?
|
100
113
|
return false if @shortname.nil?
|
114
|
+
return false if @_module.nil?
|
101
115
|
true
|
102
116
|
end
|
103
117
|
|
@@ -108,6 +122,7 @@ module PulpRpmClient
|
|
108
122
|
self.class == o.class &&
|
109
123
|
name == o.name &&
|
110
124
|
shortname == o.shortname &&
|
125
|
+
_module == o._module &&
|
111
126
|
packages == o.packages
|
112
127
|
end
|
113
128
|
|
@@ -120,7 +135,7 @@ module PulpRpmClient
|
|
120
135
|
# Calculates hash code according to all attributes.
|
121
136
|
# @return [Integer] Hash code
|
122
137
|
def hash
|
123
|
-
[name, shortname, packages].hash
|
138
|
+
[name, shortname, _module, packages].hash
|
124
139
|
end
|
125
140
|
|
126
141
|
# Builds the object from hash
|
@@ -19,9 +19,6 @@ module PulpRpmClient
|
|
19
19
|
# Timestamp of creation.
|
20
20
|
attr_accessor :pulp_created
|
21
21
|
|
22
|
-
# Artifact file representing the physical content
|
23
|
-
attr_accessor :artifact
|
24
|
-
|
25
22
|
# Update id (short update name, e.g. RHEA-2013:1777)
|
26
23
|
attr_accessor :id
|
27
24
|
|
@@ -81,7 +78,6 @@ module PulpRpmClient
|
|
81
78
|
{
|
82
79
|
:'pulp_href' => :'pulp_href',
|
83
80
|
:'pulp_created' => :'pulp_created',
|
84
|
-
:'artifact' => :'artifact',
|
85
81
|
:'id' => :'id',
|
86
82
|
:'updated_date' => :'updated_date',
|
87
83
|
:'description' => :'description',
|
@@ -108,7 +104,6 @@ module PulpRpmClient
|
|
108
104
|
{
|
109
105
|
:'pulp_href' => :'String',
|
110
106
|
:'pulp_created' => :'DateTime',
|
111
|
-
:'artifact' => :'String',
|
112
107
|
:'id' => :'String',
|
113
108
|
:'updated_date' => :'String',
|
114
109
|
:'description' => :'String',
|
@@ -159,10 +154,6 @@ module PulpRpmClient
|
|
159
154
|
self.pulp_created = attributes[:'pulp_created']
|
160
155
|
end
|
161
156
|
|
162
|
-
if attributes.key?(:'artifact')
|
163
|
-
self.artifact = attributes[:'artifact']
|
164
|
-
end
|
165
|
-
|
166
157
|
if attributes.key?(:'id')
|
167
158
|
self.id = attributes[:'id']
|
168
159
|
end
|
@@ -305,7 +296,6 @@ module PulpRpmClient
|
|
305
296
|
self.class == o.class &&
|
306
297
|
pulp_href == o.pulp_href &&
|
307
298
|
pulp_created == o.pulp_created &&
|
308
|
-
artifact == o.artifact &&
|
309
299
|
id == o.id &&
|
310
300
|
updated_date == o.updated_date &&
|
311
301
|
description == o.description &&
|
@@ -335,7 +325,7 @@ module PulpRpmClient
|
|
335
325
|
# Calculates hash code according to all attributes.
|
336
326
|
# @return [Integer] Hash code
|
337
327
|
def hash
|
338
|
-
[pulp_href, pulp_created,
|
328
|
+
[pulp_href, pulp_created, id, updated_date, description, issued_date, fromstr, status, title, summary, version, type, severity, solution, release, rights, pushcount, pkglist, references, reboot_suggested].hash
|
339
329
|
end
|
340
330
|
|
341
331
|
# Builds the object from hash
|
@@ -35,9 +35,7 @@ describe 'ContentAdvisoriesApi' do
|
|
35
35
|
# unit tests for create
|
36
36
|
# Create an update record
|
37
37
|
# Trigger an asynchronous task to create content,optionally create new repository version.
|
38
|
-
# @param relative_path Path where the artifact is located relative to distributions base_path
|
39
38
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @option opts [String] :artifact Artifact file representing the physical content
|
41
39
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
42
40
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
43
41
|
# @return [AsyncOperationResponse]
|
@@ -59,10 +59,10 @@ describe 'ContentModulemdDefaultsApi' do
|
|
59
59
|
# @option opts [String] :module__in Filter results where module is in a comma-separated list of values
|
60
60
|
# @option opts [String] :stream Filter results where stream matches value
|
61
61
|
# @option opts [String] :stream__in Filter results where stream is in a comma-separated list of values
|
62
|
-
# @option opts [String] :sha256
|
63
62
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
64
63
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
65
64
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
65
|
+
# @option opts [String] :sha256
|
66
66
|
# @option opts [Integer] :limit Number of results to return per page.
|
67
67
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
68
68
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -64,10 +64,10 @@ describe 'ContentModulemdsApi' do
|
|
64
64
|
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
65
65
|
# @option opts [String] :stream Filter results where stream matches value
|
66
66
|
# @option opts [String] :stream__in Filter results where stream is in a comma-separated list of values
|
67
|
-
# @option opts [String] :sha256
|
68
67
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
69
68
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
70
69
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
70
|
+
# @option opts [String] :sha256
|
71
71
|
# @option opts [Integer] :limit Number of results to return per page.
|
72
72
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
73
73
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -72,10 +72,10 @@ describe 'ContentPackagesApi' do
|
|
72
72
|
# @option opts [String] :checksum_type Filter results where checksum_type matches value
|
73
73
|
# @option opts [String] :checksum_type__in Filter results where checksum_type is in a comma-separated list of values
|
74
74
|
# @option opts [String] :checksum_type__ne Filter results where checksum_type not equal to value
|
75
|
-
# @option opts [String] :sha256
|
76
75
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
77
76
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
78
77
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
78
|
+
# @option opts [String] :sha256
|
79
79
|
# @option opts [Integer] :limit Number of results to return per page.
|
80
80
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
81
81
|
# @option opts [String] :fields A list of fields to include in the response.
|
@@ -98,16 +98,4 @@ describe 'RpmPackageEnvironment' do
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
-
describe 'test attribute "packagegroups"' do
|
102
|
-
it 'should work' do
|
103
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
-
end
|
105
|
-
end
|
106
|
-
|
107
|
-
describe 'test attribute "optionalgroups"' do
|
108
|
-
it 'should work' do
|
109
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
101
|
end
|
@@ -110,10 +110,4 @@ describe 'RpmPackageGroup' do
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
describe 'test attribute "related_packages"' do
|
114
|
-
it 'should work' do
|
115
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
-
end
|
117
|
-
end
|
118
|
-
|
119
113
|
end
|
@@ -50,6 +50,12 @@ describe 'RpmRepoMetadataFile' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
+
describe 'test attribute "relative_path"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
53
59
|
describe 'test attribute "data_type"' do
|
54
60
|
it 'should work' do
|
55
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -44,6 +44,12 @@ describe 'RpmUpdateCollection' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
+
describe 'test attribute "_module"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
47
53
|
describe 'test attribute "packages"' do
|
48
54
|
it 'should work' do
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -44,12 +44,6 @@ describe 'RpmUpdateRecord' do
|
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "artifact"' do
|
48
|
-
it 'should work' do
|
49
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
-
end
|
51
|
-
end
|
52
|
-
|
53
47
|
describe 'test attribute "id"' do
|
54
48
|
it 'should work' do
|
55
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|