pulp_rpm_client 3.14.9 → 3.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/docs/ContentAdvisoriesApi.md +1 -1
- data/docs/ContentDistributionTreesApi.md +1 -1
- data/docs/ContentModulemdDefaultsApi.md +1 -1
- data/docs/ContentModulemdsApi.md +1 -1
- data/docs/ContentPackagecategoriesApi.md +1 -1
- data/docs/ContentPackageenvironmentsApi.md +1 -1
- data/docs/ContentPackagegroupsApi.md +1 -1
- data/docs/ContentPackagelangpacksApi.md +1 -1
- data/docs/ContentPackagesApi.md +1 -1
- data/docs/ContentRepoMetadataFilesApi.md +1 -1
- data/docs/DistributionsRpmApi.md +1 -1
- data/docs/PatchedrpmRpmRemote.md +1 -1
- data/docs/PatchedrpmRpmRepository.md +3 -3
- data/docs/PatchedrpmUlnRemote.md +1 -1
- data/docs/PublicationsRpmApi.md +1 -1
- data/docs/RemotesRpmApi.md +1 -1
- data/docs/RemotesUlnApi.md +1 -1
- data/docs/RepositoriesRpmApi.md +1 -1
- data/docs/RepositoriesRpmVersionsApi.md +1 -1
- data/docs/RpmCopyApi.md +1 -1
- data/docs/RpmRpmRemote.md +1 -1
- data/docs/RpmRpmRemoteResponse.md +1 -1
- data/docs/RpmRpmRepository.md +3 -3
- data/docs/RpmRpmRepositoryResponse.md +3 -3
- data/docs/RpmUlnRemote.md +1 -1
- data/docs/RpmUlnRemoteResponse.md +1 -1
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +12 -0
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +24 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +4 -0
- data/lib/pulp_rpm_client/configuration.rb +2 -2
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +30 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +166 -1
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +47 -16
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +166 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +114 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +57 -0
- data/lib/pulp_rpm_client/models/rpm_package.rb +19 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +38 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +174 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +51 -16
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +17 -16
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +182 -1
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/patchedrpm_rpm_repository_spec.rb +1 -1
- data/spec/models/rpm_rpm_repository_response_spec.rb +1 -1
- data/spec/models/rpm_rpm_repository_spec.rb +1 -1
- metadata +2 -2
@@ -24,8 +24,9 @@ module PulpRpmClient
|
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
26
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
|
+
# An optional remote to use by default when syncing.
|
29
30
|
attr_accessor :remote
|
30
31
|
|
31
32
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
@@ -58,7 +59,7 @@ module PulpRpmClient
|
|
58
59
|
:'pulp_labels' => :'pulp_labels',
|
59
60
|
:'name' => :'name',
|
60
61
|
:'description' => :'description',
|
61
|
-
:'
|
62
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
62
63
|
:'remote' => :'remote',
|
63
64
|
:'autopublish' => :'autopublish',
|
64
65
|
:'metadata_signing_service' => :'metadata_signing_service',
|
@@ -77,7 +78,7 @@ module PulpRpmClient
|
|
77
78
|
:'pulp_labels' => :'Object',
|
78
79
|
:'name' => :'String',
|
79
80
|
:'description' => :'String',
|
80
|
-
:'
|
81
|
+
:'retain_repo_versions' => :'Integer',
|
81
82
|
:'remote' => :'String',
|
82
83
|
:'autopublish' => :'Boolean',
|
83
84
|
:'metadata_signing_service' => :'String',
|
@@ -94,7 +95,7 @@ module PulpRpmClient
|
|
94
95
|
def self.openapi_nullable
|
95
96
|
Set.new([
|
96
97
|
:'description',
|
97
|
-
:'
|
98
|
+
:'retain_repo_versions',
|
98
99
|
:'remote',
|
99
100
|
:'metadata_signing_service',
|
100
101
|
:'metadata_checksum_type',
|
@@ -129,8 +130,8 @@ module PulpRpmClient
|
|
129
130
|
self.description = attributes[:'description']
|
130
131
|
end
|
131
132
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
133
|
+
if attributes.key?(:'retain_repo_versions')
|
134
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
134
135
|
end
|
135
136
|
|
136
137
|
if attributes.key?(:'remote')
|
@@ -186,8 +187,16 @@ module PulpRpmClient
|
|
186
187
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
187
188
|
end
|
188
189
|
|
189
|
-
if
|
190
|
-
invalid_properties.push('invalid value for "
|
190
|
+
if @name.to_s.length < 1
|
191
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
192
|
+
end
|
193
|
+
|
194
|
+
if !@description.nil? && @description.to_s.length < 1
|
195
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
196
|
+
end
|
197
|
+
|
198
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
199
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
191
200
|
end
|
192
201
|
|
193
202
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
@@ -217,7 +226,9 @@ module PulpRpmClient
|
|
217
226
|
# @return true if the model is valid
|
218
227
|
def valid?
|
219
228
|
return false if @name.nil?
|
220
|
-
return false if
|
229
|
+
return false if @name.to_s.length < 1
|
230
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
231
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
221
232
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
222
233
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
223
234
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
@@ -227,13 +238,37 @@ module PulpRpmClient
|
|
227
238
|
end
|
228
239
|
|
229
240
|
# Custom attribute writer method with validation
|
230
|
-
# @param [Object]
|
231
|
-
def
|
232
|
-
if
|
233
|
-
fail ArgumentError, '
|
241
|
+
# @param [Object] name Value to be assigned
|
242
|
+
def name=(name)
|
243
|
+
if name.nil?
|
244
|
+
fail ArgumentError, 'name cannot be nil'
|
245
|
+
end
|
246
|
+
|
247
|
+
if name.to_s.length < 1
|
248
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
249
|
+
end
|
250
|
+
|
251
|
+
@name = name
|
252
|
+
end
|
253
|
+
|
254
|
+
# Custom attribute writer method with validation
|
255
|
+
# @param [Object] description Value to be assigned
|
256
|
+
def description=(description)
|
257
|
+
if !description.nil? && description.to_s.length < 1
|
258
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
259
|
+
end
|
260
|
+
|
261
|
+
@description = description
|
262
|
+
end
|
263
|
+
|
264
|
+
# Custom attribute writer method with validation
|
265
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
266
|
+
def retain_repo_versions=(retain_repo_versions)
|
267
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
268
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
234
269
|
end
|
235
270
|
|
236
|
-
@
|
271
|
+
@retain_repo_versions = retain_repo_versions
|
237
272
|
end
|
238
273
|
|
239
274
|
# Custom attribute writer method with validation
|
@@ -282,7 +317,7 @@ module PulpRpmClient
|
|
282
317
|
pulp_labels == o.pulp_labels &&
|
283
318
|
name == o.name &&
|
284
319
|
description == o.description &&
|
285
|
-
|
320
|
+
retain_repo_versions == o.retain_repo_versions &&
|
286
321
|
remote == o.remote &&
|
287
322
|
autopublish == o.autopublish &&
|
288
323
|
metadata_signing_service == o.metadata_signing_service &&
|
@@ -303,7 +338,7 @@ module PulpRpmClient
|
|
303
338
|
# Calculates hash code according to all attributes.
|
304
339
|
# @return [Integer] Hash code
|
305
340
|
def hash
|
306
|
-
[pulp_labels, name, description,
|
341
|
+
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
307
342
|
end
|
308
343
|
|
309
344
|
# Builds the object from hash
|
@@ -33,8 +33,9 @@ module PulpRpmClient
|
|
33
33
|
attr_accessor :description
|
34
34
|
|
35
35
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :retain_repo_versions
|
37
37
|
|
38
|
+
# An optional remote to use by default when syncing.
|
38
39
|
attr_accessor :remote
|
39
40
|
|
40
41
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
@@ -71,7 +72,7 @@ module PulpRpmClient
|
|
71
72
|
:'latest_version_href' => :'latest_version_href',
|
72
73
|
:'name' => :'name',
|
73
74
|
:'description' => :'description',
|
74
|
-
:'
|
75
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
75
76
|
:'remote' => :'remote',
|
76
77
|
:'autopublish' => :'autopublish',
|
77
78
|
:'metadata_signing_service' => :'metadata_signing_service',
|
@@ -94,7 +95,7 @@ module PulpRpmClient
|
|
94
95
|
:'latest_version_href' => :'String',
|
95
96
|
:'name' => :'String',
|
96
97
|
:'description' => :'String',
|
97
|
-
:'
|
98
|
+
:'retain_repo_versions' => :'Integer',
|
98
99
|
:'remote' => :'String',
|
99
100
|
:'autopublish' => :'Boolean',
|
100
101
|
:'metadata_signing_service' => :'String',
|
@@ -111,7 +112,7 @@ module PulpRpmClient
|
|
111
112
|
def self.openapi_nullable
|
112
113
|
Set.new([
|
113
114
|
:'description',
|
114
|
-
:'
|
115
|
+
:'retain_repo_versions',
|
115
116
|
:'remote',
|
116
117
|
:'metadata_signing_service',
|
117
118
|
:'metadata_checksum_type',
|
@@ -162,8 +163,8 @@ module PulpRpmClient
|
|
162
163
|
self.description = attributes[:'description']
|
163
164
|
end
|
164
165
|
|
165
|
-
if attributes.key?(:'
|
166
|
-
self.
|
166
|
+
if attributes.key?(:'retain_repo_versions')
|
167
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
167
168
|
end
|
168
169
|
|
169
170
|
if attributes.key?(:'remote')
|
@@ -219,8 +220,8 @@ module PulpRpmClient
|
|
219
220
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
220
221
|
end
|
221
222
|
|
222
|
-
if !@
|
223
|
-
invalid_properties.push('invalid value for "
|
223
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
224
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
224
225
|
end
|
225
226
|
|
226
227
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
@@ -250,7 +251,7 @@ module PulpRpmClient
|
|
250
251
|
# @return true if the model is valid
|
251
252
|
def valid?
|
252
253
|
return false if @name.nil?
|
253
|
-
return false if !@
|
254
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
254
255
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
255
256
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
256
257
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
@@ -260,13 +261,13 @@ module PulpRpmClient
|
|
260
261
|
end
|
261
262
|
|
262
263
|
# Custom attribute writer method with validation
|
263
|
-
# @param [Object]
|
264
|
-
def
|
265
|
-
if !
|
266
|
-
fail ArgumentError, 'invalid value for "
|
264
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
265
|
+
def retain_repo_versions=(retain_repo_versions)
|
266
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
267
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
267
268
|
end
|
268
269
|
|
269
|
-
@
|
270
|
+
@retain_repo_versions = retain_repo_versions
|
270
271
|
end
|
271
272
|
|
272
273
|
# Custom attribute writer method with validation
|
@@ -319,7 +320,7 @@ module PulpRpmClient
|
|
319
320
|
latest_version_href == o.latest_version_href &&
|
320
321
|
name == o.name &&
|
321
322
|
description == o.description &&
|
322
|
-
|
323
|
+
retain_repo_versions == o.retain_repo_versions &&
|
323
324
|
remote == o.remote &&
|
324
325
|
autopublish == o.autopublish &&
|
325
326
|
metadata_signing_service == o.metadata_signing_service &&
|
@@ -340,7 +341,7 @@ module PulpRpmClient
|
|
340
341
|
# Calculates hash code according to all attributes.
|
341
342
|
# @return [Integer] Hash code
|
342
343
|
def hash
|
343
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description,
|
344
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
344
345
|
end
|
345
346
|
|
346
347
|
# Builds the object from hash
|
@@ -74,7 +74,7 @@ module PulpRpmClient
|
|
74
74
|
# Headers for aiohttp.Clientsession
|
75
75
|
attr_accessor :headers
|
76
76
|
|
77
|
-
# Limits
|
77
|
+
# Limits requests per second for each concurrent downloader
|
78
78
|
attr_accessor :rate_limit
|
79
79
|
|
80
80
|
# Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead.
|
@@ -270,18 +270,58 @@ module PulpRpmClient
|
|
270
270
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
271
271
|
end
|
272
272
|
|
273
|
+
if @name.to_s.length < 1
|
274
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
275
|
+
end
|
276
|
+
|
273
277
|
if @url.nil?
|
274
278
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
275
279
|
end
|
276
280
|
|
281
|
+
if @url.to_s.length < 1
|
282
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
283
|
+
end
|
284
|
+
|
285
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
286
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
287
|
+
end
|
288
|
+
|
289
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
290
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
291
|
+
end
|
292
|
+
|
293
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
294
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
295
|
+
end
|
296
|
+
|
297
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
298
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
299
|
+
end
|
300
|
+
|
301
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
302
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
303
|
+
end
|
304
|
+
|
305
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
306
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
307
|
+
end
|
308
|
+
|
277
309
|
if @username.nil?
|
278
310
|
invalid_properties.push('invalid value for "username", username cannot be nil.')
|
279
311
|
end
|
280
312
|
|
313
|
+
if @username.to_s.length < 1
|
314
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
315
|
+
end
|
316
|
+
|
281
317
|
if @password.nil?
|
282
318
|
invalid_properties.push('invalid value for "password", password cannot be nil.')
|
283
319
|
end
|
284
320
|
|
321
|
+
if @password.to_s.length < 1
|
322
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
323
|
+
end
|
324
|
+
|
285
325
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
286
326
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
287
327
|
end
|
@@ -302,6 +342,10 @@ module PulpRpmClient
|
|
302
342
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
303
343
|
end
|
304
344
|
|
345
|
+
if !@uln_server_base_url.nil? && @uln_server_base_url.to_s.length < 1
|
346
|
+
invalid_properties.push('invalid value for "uln_server_base_url", the character length must be great than or equal to 1.')
|
347
|
+
end
|
348
|
+
|
305
349
|
invalid_properties
|
306
350
|
end
|
307
351
|
|
@@ -309,17 +353,144 @@ module PulpRpmClient
|
|
309
353
|
# @return true if the model is valid
|
310
354
|
def valid?
|
311
355
|
return false if @name.nil?
|
356
|
+
return false if @name.to_s.length < 1
|
312
357
|
return false if @url.nil?
|
358
|
+
return false if @url.to_s.length < 1
|
359
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
360
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
361
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
362
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
363
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
364
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
313
365
|
return false if @username.nil?
|
366
|
+
return false if @username.to_s.length < 1
|
314
367
|
return false if @password.nil?
|
368
|
+
return false if @password.to_s.length < 1
|
315
369
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
316
370
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
317
371
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
318
372
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
319
373
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
374
|
+
return false if !@uln_server_base_url.nil? && @uln_server_base_url.to_s.length < 1
|
320
375
|
true
|
321
376
|
end
|
322
377
|
|
378
|
+
# Custom attribute writer method with validation
|
379
|
+
# @param [Object] name Value to be assigned
|
380
|
+
def name=(name)
|
381
|
+
if name.nil?
|
382
|
+
fail ArgumentError, 'name cannot be nil'
|
383
|
+
end
|
384
|
+
|
385
|
+
if name.to_s.length < 1
|
386
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
387
|
+
end
|
388
|
+
|
389
|
+
@name = name
|
390
|
+
end
|
391
|
+
|
392
|
+
# Custom attribute writer method with validation
|
393
|
+
# @param [Object] url Value to be assigned
|
394
|
+
def url=(url)
|
395
|
+
if url.nil?
|
396
|
+
fail ArgumentError, 'url cannot be nil'
|
397
|
+
end
|
398
|
+
|
399
|
+
if url.to_s.length < 1
|
400
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
401
|
+
end
|
402
|
+
|
403
|
+
@url = url
|
404
|
+
end
|
405
|
+
|
406
|
+
# Custom attribute writer method with validation
|
407
|
+
# @param [Object] ca_cert Value to be assigned
|
408
|
+
def ca_cert=(ca_cert)
|
409
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
410
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
411
|
+
end
|
412
|
+
|
413
|
+
@ca_cert = ca_cert
|
414
|
+
end
|
415
|
+
|
416
|
+
# Custom attribute writer method with validation
|
417
|
+
# @param [Object] client_cert Value to be assigned
|
418
|
+
def client_cert=(client_cert)
|
419
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
420
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
421
|
+
end
|
422
|
+
|
423
|
+
@client_cert = client_cert
|
424
|
+
end
|
425
|
+
|
426
|
+
# Custom attribute writer method with validation
|
427
|
+
# @param [Object] client_key Value to be assigned
|
428
|
+
def client_key=(client_key)
|
429
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
430
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
431
|
+
end
|
432
|
+
|
433
|
+
@client_key = client_key
|
434
|
+
end
|
435
|
+
|
436
|
+
# Custom attribute writer method with validation
|
437
|
+
# @param [Object] proxy_url Value to be assigned
|
438
|
+
def proxy_url=(proxy_url)
|
439
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
440
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
441
|
+
end
|
442
|
+
|
443
|
+
@proxy_url = proxy_url
|
444
|
+
end
|
445
|
+
|
446
|
+
# Custom attribute writer method with validation
|
447
|
+
# @param [Object] proxy_username Value to be assigned
|
448
|
+
def proxy_username=(proxy_username)
|
449
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
450
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
451
|
+
end
|
452
|
+
|
453
|
+
@proxy_username = proxy_username
|
454
|
+
end
|
455
|
+
|
456
|
+
# Custom attribute writer method with validation
|
457
|
+
# @param [Object] proxy_password Value to be assigned
|
458
|
+
def proxy_password=(proxy_password)
|
459
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
460
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
461
|
+
end
|
462
|
+
|
463
|
+
@proxy_password = proxy_password
|
464
|
+
end
|
465
|
+
|
466
|
+
# Custom attribute writer method with validation
|
467
|
+
# @param [Object] username Value to be assigned
|
468
|
+
def username=(username)
|
469
|
+
if username.nil?
|
470
|
+
fail ArgumentError, 'username cannot be nil'
|
471
|
+
end
|
472
|
+
|
473
|
+
if username.to_s.length < 1
|
474
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
475
|
+
end
|
476
|
+
|
477
|
+
@username = username
|
478
|
+
end
|
479
|
+
|
480
|
+
# Custom attribute writer method with validation
|
481
|
+
# @param [Object] password Value to be assigned
|
482
|
+
def password=(password)
|
483
|
+
if password.nil?
|
484
|
+
fail ArgumentError, 'password cannot be nil'
|
485
|
+
end
|
486
|
+
|
487
|
+
if password.to_s.length < 1
|
488
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
489
|
+
end
|
490
|
+
|
491
|
+
@password = password
|
492
|
+
end
|
493
|
+
|
323
494
|
# Custom attribute writer method with validation
|
324
495
|
# @param [Object] download_concurrency Value to be assigned
|
325
496
|
def download_concurrency=(download_concurrency)
|
@@ -370,6 +541,16 @@ module PulpRpmClient
|
|
370
541
|
@sock_read_timeout = sock_read_timeout
|
371
542
|
end
|
372
543
|
|
544
|
+
# Custom attribute writer method with validation
|
545
|
+
# @param [Object] uln_server_base_url Value to be assigned
|
546
|
+
def uln_server_base_url=(uln_server_base_url)
|
547
|
+
if !uln_server_base_url.nil? && uln_server_base_url.to_s.length < 1
|
548
|
+
fail ArgumentError, 'invalid value for "uln_server_base_url", the character length must be great than or equal to 1.'
|
549
|
+
end
|
550
|
+
|
551
|
+
@uln_server_base_url = uln_server_base_url
|
552
|
+
end
|
553
|
+
|
373
554
|
# Checks equality by comparing each attribute.
|
374
555
|
# @param [Object] Object to be compared
|
375
556
|
def ==(o)
|
@@ -73,7 +73,7 @@ module PulpRpmClient
|
|
73
73
|
# Headers for aiohttp.Clientsession
|
74
74
|
attr_accessor :headers
|
75
75
|
|
76
|
-
# Limits
|
76
|
+
# Limits requests per second for each concurrent downloader
|
77
77
|
attr_accessor :rate_limit
|
78
78
|
|
79
79
|
# Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead.
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpRpmClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("
|
21
|
+
# uri = URI.parse("https://pulp")
|
22
22
|
# PulpRpmClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpRpmClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("
|
31
|
+
# expect(config.base_url).to eq("https://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("
|
38
|
+
# expect(config.base_url).to eq("https://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -50,7 +50,7 @@ describe 'PatchedrpmRpmRepository' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "retain_repo_versions"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
@@ -74,7 +74,7 @@ describe 'RpmRpmRepositoryResponse' do
|
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "retain_repo_versions"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
@@ -50,7 +50,7 @@ describe 'RpmRpmRepository' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "retain_repo_versions"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pulp_rpm_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|