pulp_rpm_client 3.16.1 → 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 +4 -4
- data/docs/PatchedrpmRpmRemote.md +1 -1
- data/docs/PatchedrpmUlnRemote.md +1 -1
- data/docs/RpmRpmRemote.md +1 -1
- data/docs/RpmRpmRemoteResponse.md +1 -1
- 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/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 +30 -0
- 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 +34 -0
- 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
- metadata +63 -63
@@ -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
|
# Authentication token for SLES repositories.
|
@@ -272,10 +272,50 @@ module PulpRpmClient
|
|
272
272
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
273
273
|
end
|
274
274
|
|
275
|
+
if @name.to_s.length < 1
|
276
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
277
|
+
end
|
278
|
+
|
275
279
|
if @url.nil?
|
276
280
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
277
281
|
end
|
278
282
|
|
283
|
+
if @url.to_s.length < 1
|
284
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
285
|
+
end
|
286
|
+
|
287
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
288
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
289
|
+
end
|
290
|
+
|
291
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
292
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
293
|
+
end
|
294
|
+
|
295
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
296
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
297
|
+
end
|
298
|
+
|
299
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
300
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
301
|
+
end
|
302
|
+
|
303
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
304
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
305
|
+
end
|
306
|
+
|
307
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
308
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
309
|
+
end
|
310
|
+
|
311
|
+
if !@username.nil? && @username.to_s.length < 1
|
312
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
313
|
+
end
|
314
|
+
|
315
|
+
if !@password.nil? && @password.to_s.length < 1
|
316
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
317
|
+
end
|
318
|
+
|
279
319
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
280
320
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
281
321
|
end
|
@@ -296,6 +336,10 @@ module PulpRpmClient
|
|
296
336
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
297
337
|
end
|
298
338
|
|
339
|
+
if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
|
340
|
+
invalid_properties.push('invalid value for "sles_auth_token", the character length must be great than or equal to 1.')
|
341
|
+
end
|
342
|
+
|
299
343
|
invalid_properties
|
300
344
|
end
|
301
345
|
|
@@ -303,15 +347,134 @@ module PulpRpmClient
|
|
303
347
|
# @return true if the model is valid
|
304
348
|
def valid?
|
305
349
|
return false if @name.nil?
|
350
|
+
return false if @name.to_s.length < 1
|
306
351
|
return false if @url.nil?
|
352
|
+
return false if @url.to_s.length < 1
|
353
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
354
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
355
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
356
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
357
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
358
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
359
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
360
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
307
361
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
308
362
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
309
363
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
310
364
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
311
365
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
366
|
+
return false if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
|
312
367
|
true
|
313
368
|
end
|
314
369
|
|
370
|
+
# Custom attribute writer method with validation
|
371
|
+
# @param [Object] name Value to be assigned
|
372
|
+
def name=(name)
|
373
|
+
if name.nil?
|
374
|
+
fail ArgumentError, 'name cannot be nil'
|
375
|
+
end
|
376
|
+
|
377
|
+
if name.to_s.length < 1
|
378
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
379
|
+
end
|
380
|
+
|
381
|
+
@name = name
|
382
|
+
end
|
383
|
+
|
384
|
+
# Custom attribute writer method with validation
|
385
|
+
# @param [Object] url Value to be assigned
|
386
|
+
def url=(url)
|
387
|
+
if url.nil?
|
388
|
+
fail ArgumentError, 'url cannot be nil'
|
389
|
+
end
|
390
|
+
|
391
|
+
if url.to_s.length < 1
|
392
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
393
|
+
end
|
394
|
+
|
395
|
+
@url = url
|
396
|
+
end
|
397
|
+
|
398
|
+
# Custom attribute writer method with validation
|
399
|
+
# @param [Object] ca_cert Value to be assigned
|
400
|
+
def ca_cert=(ca_cert)
|
401
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
402
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
403
|
+
end
|
404
|
+
|
405
|
+
@ca_cert = ca_cert
|
406
|
+
end
|
407
|
+
|
408
|
+
# Custom attribute writer method with validation
|
409
|
+
# @param [Object] client_cert Value to be assigned
|
410
|
+
def client_cert=(client_cert)
|
411
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
412
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
413
|
+
end
|
414
|
+
|
415
|
+
@client_cert = client_cert
|
416
|
+
end
|
417
|
+
|
418
|
+
# Custom attribute writer method with validation
|
419
|
+
# @param [Object] client_key Value to be assigned
|
420
|
+
def client_key=(client_key)
|
421
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
422
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
423
|
+
end
|
424
|
+
|
425
|
+
@client_key = client_key
|
426
|
+
end
|
427
|
+
|
428
|
+
# Custom attribute writer method with validation
|
429
|
+
# @param [Object] proxy_url Value to be assigned
|
430
|
+
def proxy_url=(proxy_url)
|
431
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
432
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
433
|
+
end
|
434
|
+
|
435
|
+
@proxy_url = proxy_url
|
436
|
+
end
|
437
|
+
|
438
|
+
# Custom attribute writer method with validation
|
439
|
+
# @param [Object] proxy_username Value to be assigned
|
440
|
+
def proxy_username=(proxy_username)
|
441
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
442
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
443
|
+
end
|
444
|
+
|
445
|
+
@proxy_username = proxy_username
|
446
|
+
end
|
447
|
+
|
448
|
+
# Custom attribute writer method with validation
|
449
|
+
# @param [Object] proxy_password Value to be assigned
|
450
|
+
def proxy_password=(proxy_password)
|
451
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
452
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
453
|
+
end
|
454
|
+
|
455
|
+
@proxy_password = proxy_password
|
456
|
+
end
|
457
|
+
|
458
|
+
# Custom attribute writer method with validation
|
459
|
+
# @param [Object] username Value to be assigned
|
460
|
+
def username=(username)
|
461
|
+
if !username.nil? && username.to_s.length < 1
|
462
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
463
|
+
end
|
464
|
+
|
465
|
+
@username = username
|
466
|
+
end
|
467
|
+
|
468
|
+
# Custom attribute writer method with validation
|
469
|
+
# @param [Object] password Value to be assigned
|
470
|
+
def password=(password)
|
471
|
+
if !password.nil? && password.to_s.length < 1
|
472
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
473
|
+
end
|
474
|
+
|
475
|
+
@password = password
|
476
|
+
end
|
477
|
+
|
315
478
|
# Custom attribute writer method with validation
|
316
479
|
# @param [Object] download_concurrency Value to be assigned
|
317
480
|
def download_concurrency=(download_concurrency)
|
@@ -362,6 +525,16 @@ module PulpRpmClient
|
|
362
525
|
@sock_read_timeout = sock_read_timeout
|
363
526
|
end
|
364
527
|
|
528
|
+
# Custom attribute writer method with validation
|
529
|
+
# @param [Object] sles_auth_token Value to be assigned
|
530
|
+
def sles_auth_token=(sles_auth_token)
|
531
|
+
if !sles_auth_token.nil? && sles_auth_token.to_s.length < 1
|
532
|
+
fail ArgumentError, 'invalid value for "sles_auth_token", the character length must be great than or equal to 1.'
|
533
|
+
end
|
534
|
+
|
535
|
+
@sles_auth_token = sles_auth_token
|
536
|
+
end
|
537
|
+
|
365
538
|
# Checks equality by comparing each attribute.
|
366
539
|
# @param [Object] Object to be compared
|
367
540
|
def ==(o)
|
@@ -67,7 +67,7 @@ module PulpRpmClient
|
|
67
67
|
# Headers for aiohttp.Clientsession
|
68
68
|
attr_accessor :headers
|
69
69
|
|
70
|
-
# Limits
|
70
|
+
# Limits requests per second for each concurrent downloader
|
71
71
|
attr_accessor :rate_limit
|
72
72
|
|
73
73
|
# Authentication token for SLES repositories.
|
@@ -187,6 +187,14 @@ module PulpRpmClient
|
|
187
187
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
188
188
|
end
|
189
189
|
|
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
|
+
|
190
198
|
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
191
199
|
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
192
200
|
end
|
@@ -218,6 +226,8 @@ module PulpRpmClient
|
|
218
226
|
# @return true if the model is valid
|
219
227
|
def valid?
|
220
228
|
return false if @name.nil?
|
229
|
+
return false if @name.to_s.length < 1
|
230
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
221
231
|
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
222
232
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
223
233
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
@@ -227,6 +237,30 @@ module PulpRpmClient
|
|
227
237
|
true
|
228
238
|
end
|
229
239
|
|
240
|
+
# Custom attribute writer method with validation
|
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
|
+
|
230
264
|
# Custom attribute writer method with validation
|
231
265
|
# @param [Object] retain_repo_versions Value to be assigned
|
232
266
|
def retain_repo_versions=(retain_repo_versions)
|
@@ -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.
|