pulp_ansible_client 0.11.0.dev1636946173 → 0.11.0.dev1638328524

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.

Potentially problematic release.


This version of pulp_ansible_client might be problematic. Click here for more details.

Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  4. data/docs/AnsibleGitRemote.md +30 -28
  5. data/docs/AnsibleGitRemoteResponse.md +28 -26
  6. data/docs/AnsibleRoleResponse.md +2 -2
  7. data/docs/CollectionVersionResponse.md +4 -0
  8. data/docs/PatchedansibleGitRemote.md +30 -28
  9. data/docs/UnpaginatedCollectionVersionResponse.md +5 -1
  10. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +16 -0
  11. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -0
  12. data/lib/pulp_ansible_client/api/pulp_ansible_artifacts_collections_v3_api.rb +16 -0
  13. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +38 -0
  14. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +34 -0
  15. data/lib/pulp_ansible_client/models/ansible_collection.rb +38 -0
  16. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +191 -0
  17. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +27 -0
  18. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -16
  19. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +336 -153
  20. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +153 -143
  21. data/lib/pulp_ansible_client/models/ansible_role.rb +57 -0
  22. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +158 -0
  23. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  24. data/lib/pulp_ansible_client/models/collection_one_shot.rb +60 -0
  25. data/lib/pulp_ansible_client/models/collection_version_response.rb +19 -1
  26. data/lib/pulp_ansible_client/models/galaxy_collection.rb +38 -0
  27. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +30 -0
  28. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +30 -0
  29. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +183 -0
  30. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +323 -148
  31. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +150 -0
  32. data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +22 -4
  33. data/lib/pulp_ansible_client/version.rb +1 -1
  34. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  35. data/spec/models/ansible_git_remote_response_spec.rb +22 -16
  36. data/spec/models/ansible_git_remote_spec.rb +24 -18
  37. data/spec/models/ansible_role_response_spec.rb +2 -2
  38. data/spec/models/collection_version_response_spec.rb +12 -0
  39. data/spec/models/patchedansible_git_remote_spec.rb +24 -18
  40. data/spec/models/unpaginated_collection_version_response_spec.rb +12 -0
  41. metadata +70 -70
@@ -300,6 +300,46 @@ module PulpAnsibleClient
300
300
  # @return Array for valid properties with the reasons
301
301
  def list_invalid_properties
302
302
  invalid_properties = Array.new
303
+ if !@name.nil? && @name.to_s.length < 1
304
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
305
+ end
306
+
307
+ if !@url.nil? && @url.to_s.length < 1
308
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
309
+ end
310
+
311
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
312
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
313
+ end
314
+
315
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
316
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
317
+ end
318
+
319
+ if !@client_key.nil? && @client_key.to_s.length < 1
320
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
321
+ end
322
+
323
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
324
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
325
+ end
326
+
327
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
328
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
329
+ end
330
+
331
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
332
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
333
+ end
334
+
335
+ if !@username.nil? && @username.to_s.length < 1
336
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
337
+ end
338
+
339
+ if !@password.nil? && @password.to_s.length < 1
340
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
341
+ end
342
+
303
343
  if !@download_concurrency.nil? && @download_concurrency < 1
304
344
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
305
345
  end
@@ -320,30 +360,155 @@ module PulpAnsibleClient
320
360
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
321
361
  end
322
362
 
363
+ if !@requirements_file.nil? && @requirements_file.to_s.length < 1
364
+ invalid_properties.push('invalid value for "requirements_file", the character length must be great than or equal to 1.')
365
+ end
366
+
323
367
  if !@auth_url.nil? && @auth_url.to_s.length > 255
324
368
  invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
325
369
  end
326
370
 
371
+ if !@auth_url.nil? && @auth_url.to_s.length < 1
372
+ invalid_properties.push('invalid value for "auth_url", the character length must be great than or equal to 1.')
373
+ end
374
+
327
375
  if !@token.nil? && @token.to_s.length > 2000
328
376
  invalid_properties.push('invalid value for "token", the character length must be smaller than or equal to 2000.')
329
377
  end
330
378
 
379
+ if !@token.nil? && @token.to_s.length < 1
380
+ invalid_properties.push('invalid value for "token", the character length must be great than or equal to 1.')
381
+ end
382
+
331
383
  invalid_properties
332
384
  end
333
385
 
334
386
  # Check to see if the all the properties in the model are valid
335
387
  # @return true if the model is valid
336
388
  def valid?
389
+ return false if !@name.nil? && @name.to_s.length < 1
390
+ return false if !@url.nil? && @url.to_s.length < 1
391
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
392
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
393
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
394
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
395
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
396
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
397
+ return false if !@username.nil? && @username.to_s.length < 1
398
+ return false if !@password.nil? && @password.to_s.length < 1
337
399
  return false if !@download_concurrency.nil? && @download_concurrency < 1
338
400
  return false if !@total_timeout.nil? && @total_timeout < 0.0
339
401
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
340
402
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
341
403
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
404
+ return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
342
405
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
406
+ return false if !@auth_url.nil? && @auth_url.to_s.length < 1
343
407
  return false if !@token.nil? && @token.to_s.length > 2000
408
+ return false if !@token.nil? && @token.to_s.length < 1
344
409
  true
345
410
  end
346
411
 
412
+ # Custom attribute writer method with validation
413
+ # @param [Object] name Value to be assigned
414
+ def name=(name)
415
+ if !name.nil? && name.to_s.length < 1
416
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
417
+ end
418
+
419
+ @name = name
420
+ end
421
+
422
+ # Custom attribute writer method with validation
423
+ # @param [Object] url Value to be assigned
424
+ def url=(url)
425
+ if !url.nil? && url.to_s.length < 1
426
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
427
+ end
428
+
429
+ @url = url
430
+ end
431
+
432
+ # Custom attribute writer method with validation
433
+ # @param [Object] ca_cert Value to be assigned
434
+ def ca_cert=(ca_cert)
435
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
436
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
437
+ end
438
+
439
+ @ca_cert = ca_cert
440
+ end
441
+
442
+ # Custom attribute writer method with validation
443
+ # @param [Object] client_cert Value to be assigned
444
+ def client_cert=(client_cert)
445
+ if !client_cert.nil? && client_cert.to_s.length < 1
446
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
447
+ end
448
+
449
+ @client_cert = client_cert
450
+ end
451
+
452
+ # Custom attribute writer method with validation
453
+ # @param [Object] client_key Value to be assigned
454
+ def client_key=(client_key)
455
+ if !client_key.nil? && client_key.to_s.length < 1
456
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
457
+ end
458
+
459
+ @client_key = client_key
460
+ end
461
+
462
+ # Custom attribute writer method with validation
463
+ # @param [Object] proxy_url Value to be assigned
464
+ def proxy_url=(proxy_url)
465
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
466
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
467
+ end
468
+
469
+ @proxy_url = proxy_url
470
+ end
471
+
472
+ # Custom attribute writer method with validation
473
+ # @param [Object] proxy_username Value to be assigned
474
+ def proxy_username=(proxy_username)
475
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
476
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
477
+ end
478
+
479
+ @proxy_username = proxy_username
480
+ end
481
+
482
+ # Custom attribute writer method with validation
483
+ # @param [Object] proxy_password Value to be assigned
484
+ def proxy_password=(proxy_password)
485
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
486
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
487
+ end
488
+
489
+ @proxy_password = proxy_password
490
+ end
491
+
492
+ # Custom attribute writer method with validation
493
+ # @param [Object] username Value to be assigned
494
+ def username=(username)
495
+ if !username.nil? && username.to_s.length < 1
496
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
497
+ end
498
+
499
+ @username = username
500
+ end
501
+
502
+ # Custom attribute writer method with validation
503
+ # @param [Object] password Value to be assigned
504
+ def password=(password)
505
+ if !password.nil? && password.to_s.length < 1
506
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
507
+ end
508
+
509
+ @password = password
510
+ end
511
+
347
512
  # Custom attribute writer method with validation
348
513
  # @param [Object] download_concurrency Value to be assigned
349
514
  def download_concurrency=(download_concurrency)
@@ -394,6 +559,16 @@ module PulpAnsibleClient
394
559
  @sock_read_timeout = sock_read_timeout
395
560
  end
396
561
 
562
+ # Custom attribute writer method with validation
563
+ # @param [Object] requirements_file Value to be assigned
564
+ def requirements_file=(requirements_file)
565
+ if !requirements_file.nil? && requirements_file.to_s.length < 1
566
+ fail ArgumentError, 'invalid value for "requirements_file", the character length must be great than or equal to 1.'
567
+ end
568
+
569
+ @requirements_file = requirements_file
570
+ end
571
+
397
572
  # Custom attribute writer method with validation
398
573
  # @param [Object] auth_url Value to be assigned
399
574
  def auth_url=(auth_url)
@@ -401,6 +576,10 @@ module PulpAnsibleClient
401
576
  fail ArgumentError, 'invalid value for "auth_url", the character length must be smaller than or equal to 255.'
402
577
  end
403
578
 
579
+ if !auth_url.nil? && auth_url.to_s.length < 1
580
+ fail ArgumentError, 'invalid value for "auth_url", the character length must be great than or equal to 1.'
581
+ end
582
+
404
583
  @auth_url = auth_url
405
584
  end
406
585
 
@@ -411,6 +590,10 @@ module PulpAnsibleClient
411
590
  fail ArgumentError, 'invalid value for "token", the character length must be smaller than or equal to 2000.'
412
591
  end
413
592
 
593
+ if !token.nil? && token.to_s.length < 1
594
+ fail ArgumentError, 'invalid value for "token", the character length must be great than or equal to 1.'
595
+ end
596
+
414
597
  @token = token
415
598
  end
416
599