pulp_deb_client 2.14.1 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/ContentGenericContentsApi.md +1 -1
  4. data/docs/ContentInstallerFileIndicesApi.md +1 -1
  5. data/docs/ContentInstallerPackagesApi.md +1 -1
  6. data/docs/ContentPackageIndicesApi.md +1 -1
  7. data/docs/ContentPackageReleaseComponentsApi.md +1 -1
  8. data/docs/ContentPackagesApi.md +1 -1
  9. data/docs/ContentReleaseArchitecturesApi.md +1 -1
  10. data/docs/ContentReleaseComponentsApi.md +1 -1
  11. data/docs/ContentReleaseFilesApi.md +1 -1
  12. data/docs/ContentReleasesApi.md +1 -1
  13. data/docs/DebAptRemote.md +1 -1
  14. data/docs/DebAptRemoteResponse.md +1 -1
  15. data/docs/DebAptRepository.md +3 -3
  16. data/docs/DebAptRepositoryResponse.md +3 -3
  17. data/docs/DebPackageIndex.md +2 -2
  18. data/docs/DebPackageIndexResponse.md +2 -2
  19. data/docs/DistributionsAptApi.md +1 -1
  20. data/docs/PatcheddebAptRemote.md +1 -1
  21. data/docs/PatcheddebAptRepository.md +3 -3
  22. data/docs/PublicationsAptApi.md +1 -1
  23. data/docs/PublicationsVerbatimApi.md +1 -1
  24. data/docs/RemotesAptApi.md +1 -1
  25. data/docs/RepositoriesAptApi.md +1 -1
  26. data/docs/RepositoriesAptVersionsApi.md +1 -1
  27. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +4 -0
  28. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +4 -0
  29. data/lib/pulp_deb_client/api/content_packages_api.rb +4 -0
  30. data/lib/pulp_deb_client/configuration.rb +2 -2
  31. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +38 -0
  32. data/lib/pulp_deb_client/models/deb_apt_remote.rb +223 -1
  33. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +1 -1
  34. data/lib/pulp_deb_client/models/deb_apt_repository.rb +51 -16
  35. data/lib/pulp_deb_client/models/deb_apt_repository_response.rb +17 -16
  36. data/lib/pulp_deb_client/models/deb_base_package.rb +15 -0
  37. data/lib/pulp_deb_client/models/deb_generic_content.rb +19 -0
  38. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +53 -0
  39. data/lib/pulp_deb_client/models/deb_package_index.rb +41 -6
  40. data/lib/pulp_deb_client/models/deb_package_index_response.rb +0 -10
  41. data/lib/pulp_deb_client/models/deb_release.rb +57 -0
  42. data/lib/pulp_deb_client/models/deb_release_architecture.rb +19 -0
  43. data/lib/pulp_deb_client/models/deb_release_component.rb +19 -0
  44. data/lib/pulp_deb_client/models/deb_release_file.rb +64 -0
  45. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +30 -0
  46. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +211 -1
  47. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +47 -16
  48. data/lib/pulp_deb_client/version.rb +1 -1
  49. data/pulp_deb_client.gemspec +1 -1
  50. data/spec/configuration_spec.rb +3 -3
  51. data/spec/models/deb_apt_repository_response_spec.rb +1 -1
  52. data/spec/models/deb_apt_repository_spec.rb +1 -1
  53. data/spec/models/patcheddeb_apt_repository_spec.rb +1 -1
  54. metadata +63 -57
@@ -74,7 +74,7 @@ module PulpDebClient
74
74
  # Headers for aiohttp.Clientsession
75
75
  attr_accessor :headers
76
76
 
77
- # Limits total download rate in requests per second
77
+ # Limits requests per second for each concurrent downloader
78
78
  attr_accessor :rate_limit
79
79
 
80
80
  # Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax.
@@ -337,10 +337,50 @@ module PulpDebClient
337
337
  invalid_properties.push('invalid value for "name", name cannot be nil.')
338
338
  end
339
339
 
340
+ if @name.to_s.length < 1
341
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
342
+ end
343
+
340
344
  if @url.nil?
341
345
  invalid_properties.push('invalid value for "url", url cannot be nil.')
342
346
  end
343
347
 
348
+ if @url.to_s.length < 1
349
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
350
+ end
351
+
352
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
353
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
354
+ end
355
+
356
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
357
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
358
+ end
359
+
360
+ if !@client_key.nil? && @client_key.to_s.length < 1
361
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
362
+ end
363
+
364
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
365
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
366
+ end
367
+
368
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
369
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
370
+ end
371
+
372
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
373
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
374
+ end
375
+
376
+ if !@username.nil? && @username.to_s.length < 1
377
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
378
+ end
379
+
380
+ if !@password.nil? && @password.to_s.length < 1
381
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
382
+ end
383
+
344
384
  if !@download_concurrency.nil? && @download_concurrency < 1
345
385
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
346
386
  end
@@ -365,6 +405,22 @@ module PulpDebClient
365
405
  invalid_properties.push('invalid value for "distributions", distributions cannot be nil.')
366
406
  end
367
407
 
408
+ if @distributions.to_s.length < 1
409
+ invalid_properties.push('invalid value for "distributions", the character length must be great than or equal to 1.')
410
+ end
411
+
412
+ if !@components.nil? && @components.to_s.length < 1
413
+ invalid_properties.push('invalid value for "components", the character length must be great than or equal to 1.')
414
+ end
415
+
416
+ if !@architectures.nil? && @architectures.to_s.length < 1
417
+ invalid_properties.push('invalid value for "architectures", the character length must be great than or equal to 1.')
418
+ end
419
+
420
+ if !@gpgkey.nil? && @gpgkey.to_s.length < 1
421
+ invalid_properties.push('invalid value for "gpgkey", the character length must be great than or equal to 1.')
422
+ end
423
+
368
424
  invalid_properties
369
425
  end
370
426
 
@@ -372,16 +428,138 @@ module PulpDebClient
372
428
  # @return true if the model is valid
373
429
  def valid?
374
430
  return false if @name.nil?
431
+ return false if @name.to_s.length < 1
375
432
  return false if @url.nil?
433
+ return false if @url.to_s.length < 1
434
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
435
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
436
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
437
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
438
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
439
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
440
+ return false if !@username.nil? && @username.to_s.length < 1
441
+ return false if !@password.nil? && @password.to_s.length < 1
376
442
  return false if !@download_concurrency.nil? && @download_concurrency < 1
377
443
  return false if !@total_timeout.nil? && @total_timeout < 0.0
378
444
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
379
445
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
380
446
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
381
447
  return false if @distributions.nil?
448
+ return false if @distributions.to_s.length < 1
449
+ return false if !@components.nil? && @components.to_s.length < 1
450
+ return false if !@architectures.nil? && @architectures.to_s.length < 1
451
+ return false if !@gpgkey.nil? && @gpgkey.to_s.length < 1
382
452
  true
383
453
  end
384
454
 
455
+ # Custom attribute writer method with validation
456
+ # @param [Object] name Value to be assigned
457
+ def name=(name)
458
+ if name.nil?
459
+ fail ArgumentError, 'name cannot be nil'
460
+ end
461
+
462
+ if name.to_s.length < 1
463
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
464
+ end
465
+
466
+ @name = name
467
+ end
468
+
469
+ # Custom attribute writer method with validation
470
+ # @param [Object] url Value to be assigned
471
+ def url=(url)
472
+ if url.nil?
473
+ fail ArgumentError, 'url cannot be nil'
474
+ end
475
+
476
+ if url.to_s.length < 1
477
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
478
+ end
479
+
480
+ @url = url
481
+ end
482
+
483
+ # Custom attribute writer method with validation
484
+ # @param [Object] ca_cert Value to be assigned
485
+ def ca_cert=(ca_cert)
486
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
487
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
488
+ end
489
+
490
+ @ca_cert = ca_cert
491
+ end
492
+
493
+ # Custom attribute writer method with validation
494
+ # @param [Object] client_cert Value to be assigned
495
+ def client_cert=(client_cert)
496
+ if !client_cert.nil? && client_cert.to_s.length < 1
497
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
498
+ end
499
+
500
+ @client_cert = client_cert
501
+ end
502
+
503
+ # Custom attribute writer method with validation
504
+ # @param [Object] client_key Value to be assigned
505
+ def client_key=(client_key)
506
+ if !client_key.nil? && client_key.to_s.length < 1
507
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
508
+ end
509
+
510
+ @client_key = client_key
511
+ end
512
+
513
+ # Custom attribute writer method with validation
514
+ # @param [Object] proxy_url Value to be assigned
515
+ def proxy_url=(proxy_url)
516
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
517
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
518
+ end
519
+
520
+ @proxy_url = proxy_url
521
+ end
522
+
523
+ # Custom attribute writer method with validation
524
+ # @param [Object] proxy_username Value to be assigned
525
+ def proxy_username=(proxy_username)
526
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
527
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
528
+ end
529
+
530
+ @proxy_username = proxy_username
531
+ end
532
+
533
+ # Custom attribute writer method with validation
534
+ # @param [Object] proxy_password Value to be assigned
535
+ def proxy_password=(proxy_password)
536
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
537
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
538
+ end
539
+
540
+ @proxy_password = proxy_password
541
+ end
542
+
543
+ # Custom attribute writer method with validation
544
+ # @param [Object] username Value to be assigned
545
+ def username=(username)
546
+ if !username.nil? && username.to_s.length < 1
547
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
548
+ end
549
+
550
+ @username = username
551
+ end
552
+
553
+ # Custom attribute writer method with validation
554
+ # @param [Object] password Value to be assigned
555
+ def password=(password)
556
+ if !password.nil? && password.to_s.length < 1
557
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
558
+ end
559
+
560
+ @password = password
561
+ end
562
+
385
563
  # Custom attribute writer method with validation
386
564
  # @param [Object] download_concurrency Value to be assigned
387
565
  def download_concurrency=(download_concurrency)
@@ -432,6 +610,50 @@ module PulpDebClient
432
610
  @sock_read_timeout = sock_read_timeout
433
611
  end
434
612
 
613
+ # Custom attribute writer method with validation
614
+ # @param [Object] distributions Value to be assigned
615
+ def distributions=(distributions)
616
+ if distributions.nil?
617
+ fail ArgumentError, 'distributions cannot be nil'
618
+ end
619
+
620
+ if distributions.to_s.length < 1
621
+ fail ArgumentError, 'invalid value for "distributions", the character length must be great than or equal to 1.'
622
+ end
623
+
624
+ @distributions = distributions
625
+ end
626
+
627
+ # Custom attribute writer method with validation
628
+ # @param [Object] components Value to be assigned
629
+ def components=(components)
630
+ if !components.nil? && components.to_s.length < 1
631
+ fail ArgumentError, 'invalid value for "components", the character length must be great than or equal to 1.'
632
+ end
633
+
634
+ @components = components
635
+ end
636
+
637
+ # Custom attribute writer method with validation
638
+ # @param [Object] architectures Value to be assigned
639
+ def architectures=(architectures)
640
+ if !architectures.nil? && architectures.to_s.length < 1
641
+ fail ArgumentError, 'invalid value for "architectures", the character length must be great than or equal to 1.'
642
+ end
643
+
644
+ @architectures = architectures
645
+ end
646
+
647
+ # Custom attribute writer method with validation
648
+ # @param [Object] gpgkey Value to be assigned
649
+ def gpgkey=(gpgkey)
650
+ if !gpgkey.nil? && gpgkey.to_s.length < 1
651
+ fail ArgumentError, 'invalid value for "gpgkey", the character length must be great than or equal to 1.'
652
+ end
653
+
654
+ @gpgkey = gpgkey
655
+ end
656
+
435
657
  # Checks equality by comparing each attribute.
436
658
  # @param [Object] Object to be compared
437
659
  def ==(o)
@@ -67,7 +67,7 @@ module PulpDebClient
67
67
  # Headers for aiohttp.Clientsession
68
68
  attr_accessor :headers
69
69
 
70
- # Limits total download rate in requests per second
70
+ # Limits requests per second for each concurrent downloader
71
71
  attr_accessor :rate_limit
72
72
 
73
73
  # Whitespace separated list of distributions to sync. The distribution is the path from the repository root to the \"Release\" file you want to access. This is often, but not always, equal to either the codename or the suite of the release you want to sync. If the repository you are trying to sync uses \"flat repository format\", the distribution must end with a \"/\". Based on \"/etc/apt/sources.list\" syntax.
@@ -24,8 +24,9 @@ module PulpDebClient
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 :retained_versions
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
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -34,7 +35,7 @@ module PulpDebClient
34
35
  :'pulp_labels' => :'pulp_labels',
35
36
  :'name' => :'name',
36
37
  :'description' => :'description',
37
- :'retained_versions' => :'retained_versions',
38
+ :'retain_repo_versions' => :'retain_repo_versions',
38
39
  :'remote' => :'remote'
39
40
  }
40
41
  end
@@ -45,7 +46,7 @@ module PulpDebClient
45
46
  :'pulp_labels' => :'Object',
46
47
  :'name' => :'String',
47
48
  :'description' => :'String',
48
- :'retained_versions' => :'Integer',
49
+ :'retain_repo_versions' => :'Integer',
49
50
  :'remote' => :'String'
50
51
  }
51
52
  end
@@ -54,7 +55,7 @@ module PulpDebClient
54
55
  def self.openapi_nullable
55
56
  Set.new([
56
57
  :'description',
57
- :'retained_versions',
58
+ :'retain_repo_versions',
58
59
  :'remote'
59
60
  ])
60
61
  end
@@ -86,8 +87,8 @@ module PulpDebClient
86
87
  self.description = attributes[:'description']
87
88
  end
88
89
 
89
- if attributes.key?(:'retained_versions')
90
- self.retained_versions = attributes[:'retained_versions']
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
91
92
  end
92
93
 
93
94
  if attributes.key?(:'remote')
@@ -103,8 +104,16 @@ module PulpDebClient
103
104
  invalid_properties.push('invalid value for "name", name cannot be nil.')
104
105
  end
105
106
 
106
- if !@retained_versions.nil? && @retained_versions < 1
107
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
107
+ if @name.to_s.length < 1
108
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
109
+ end
110
+
111
+ if !@description.nil? && @description.to_s.length < 1
112
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
113
+ end
114
+
115
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
116
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
108
117
  end
109
118
 
110
119
  invalid_properties
@@ -114,18 +123,44 @@ module PulpDebClient
114
123
  # @return true if the model is valid
115
124
  def valid?
116
125
  return false if @name.nil?
117
- return false if !@retained_versions.nil? && @retained_versions < 1
126
+ return false if @name.to_s.length < 1
127
+ return false if !@description.nil? && @description.to_s.length < 1
128
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
129
  true
119
130
  end
120
131
 
121
132
  # Custom attribute writer method with validation
122
- # @param [Object] retained_versions Value to be assigned
123
- def retained_versions=(retained_versions)
124
- if !retained_versions.nil? && retained_versions < 1
125
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
133
+ # @param [Object] name Value to be assigned
134
+ def name=(name)
135
+ if name.nil?
136
+ fail ArgumentError, 'name cannot be nil'
137
+ end
138
+
139
+ if name.to_s.length < 1
140
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
141
+ end
142
+
143
+ @name = name
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] description Value to be assigned
148
+ def description=(description)
149
+ if !description.nil? && description.to_s.length < 1
150
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
151
+ end
152
+
153
+ @description = description
154
+ end
155
+
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] retain_repo_versions Value to be assigned
158
+ def retain_repo_versions=(retain_repo_versions)
159
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
160
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
126
161
  end
127
162
 
128
- @retained_versions = retained_versions
163
+ @retain_repo_versions = retain_repo_versions
129
164
  end
130
165
 
131
166
  # Checks equality by comparing each attribute.
@@ -136,7 +171,7 @@ module PulpDebClient
136
171
  pulp_labels == o.pulp_labels &&
137
172
  name == o.name &&
138
173
  description == o.description &&
139
- retained_versions == o.retained_versions &&
174
+ retain_repo_versions == o.retain_repo_versions &&
140
175
  remote == o.remote
141
176
  end
142
177
 
@@ -149,7 +184,7 @@ module PulpDebClient
149
184
  # Calculates hash code according to all attributes.
150
185
  # @return [Integer] Hash code
151
186
  def hash
152
- [pulp_labels, name, description, retained_versions, remote].hash
187
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
153
188
  end
154
189
 
155
190
  # Builds the object from hash
@@ -33,8 +33,9 @@ module PulpDebClient
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 :retained_versions
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
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,7 +48,7 @@ module PulpDebClient
47
48
  :'latest_version_href' => :'latest_version_href',
48
49
  :'name' => :'name',
49
50
  :'description' => :'description',
50
- :'retained_versions' => :'retained_versions',
51
+ :'retain_repo_versions' => :'retain_repo_versions',
51
52
  :'remote' => :'remote'
52
53
  }
53
54
  end
@@ -62,7 +63,7 @@ module PulpDebClient
62
63
  :'latest_version_href' => :'String',
63
64
  :'name' => :'String',
64
65
  :'description' => :'String',
65
- :'retained_versions' => :'Integer',
66
+ :'retain_repo_versions' => :'Integer',
66
67
  :'remote' => :'String'
67
68
  }
68
69
  end
@@ -71,7 +72,7 @@ module PulpDebClient
71
72
  def self.openapi_nullable
72
73
  Set.new([
73
74
  :'description',
74
- :'retained_versions',
75
+ :'retain_repo_versions',
75
76
  :'remote'
76
77
  ])
77
78
  end
@@ -119,8 +120,8 @@ module PulpDebClient
119
120
  self.description = attributes[:'description']
120
121
  end
121
122
 
122
- if attributes.key?(:'retained_versions')
123
- self.retained_versions = attributes[:'retained_versions']
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
124
125
  end
125
126
 
126
127
  if attributes.key?(:'remote')
@@ -136,8 +137,8 @@ module PulpDebClient
136
137
  invalid_properties.push('invalid value for "name", name cannot be nil.')
137
138
  end
138
139
 
139
- if !@retained_versions.nil? && @retained_versions < 1
140
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
140
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
141
142
  end
142
143
 
143
144
  invalid_properties
@@ -147,18 +148,18 @@ module PulpDebClient
147
148
  # @return true if the model is valid
148
149
  def valid?
149
150
  return false if @name.nil?
150
- return false if !@retained_versions.nil? && @retained_versions < 1
151
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
151
152
  true
152
153
  end
153
154
 
154
155
  # Custom attribute writer method with validation
155
- # @param [Object] retained_versions Value to be assigned
156
- def retained_versions=(retained_versions)
157
- if !retained_versions.nil? && retained_versions < 1
158
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
156
+ # @param [Object] retain_repo_versions Value to be assigned
157
+ def retain_repo_versions=(retain_repo_versions)
158
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
159
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
159
160
  end
160
161
 
161
- @retained_versions = retained_versions
162
+ @retain_repo_versions = retain_repo_versions
162
163
  end
163
164
 
164
165
  # Checks equality by comparing each attribute.
@@ -173,7 +174,7 @@ module PulpDebClient
173
174
  latest_version_href == o.latest_version_href &&
174
175
  name == o.name &&
175
176
  description == o.description &&
176
- retained_versions == o.retained_versions &&
177
+ retain_repo_versions == o.retain_repo_versions &&
177
178
  remote == o.remote
178
179
  end
179
180
 
@@ -186,7 +187,7 @@ module PulpDebClient
186
187
  # Calculates hash code according to all attributes.
187
188
  # @return [Integer] Hash code
188
189
  def hash
189
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
190
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
190
191
  end
191
192
 
192
193
  # Builds the object from hash
@@ -89,15 +89,30 @@ module PulpDebClient
89
89
  # @return Array for valid properties with the reasons
90
90
  def list_invalid_properties
91
91
  invalid_properties = Array.new
92
+ if !@relative_path.nil? && @relative_path.to_s.length < 1
93
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
94
+ end
95
+
92
96
  invalid_properties
93
97
  end
94
98
 
95
99
  # Check to see if the all the properties in the model are valid
96
100
  # @return true if the model is valid
97
101
  def valid?
102
+ return false if !@relative_path.nil? && @relative_path.to_s.length < 1
98
103
  true
99
104
  end
100
105
 
106
+ # Custom attribute writer method with validation
107
+ # @param [Object] relative_path Value to be assigned
108
+ def relative_path=(relative_path)
109
+ if !relative_path.nil? && relative_path.to_s.length < 1
110
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
111
+ end
112
+
113
+ @relative_path = relative_path
114
+ end
115
+
101
116
  # Checks equality by comparing each attribute.
102
117
  # @param [Object] Object to be compared
103
118
  def ==(o)
@@ -93,6 +93,10 @@ module PulpDebClient
93
93
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
94
94
  end
95
95
 
96
+ if @relative_path.to_s.length < 1
97
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
98
+ end
99
+
96
100
  invalid_properties
97
101
  end
98
102
 
@@ -100,9 +104,24 @@ module PulpDebClient
100
104
  # @return true if the model is valid
101
105
  def valid?
102
106
  return false if @relative_path.nil?
107
+ return false if @relative_path.to_s.length < 1
103
108
  true
104
109
  end
105
110
 
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] relative_path Value to be assigned
113
+ def relative_path=(relative_path)
114
+ if relative_path.nil?
115
+ fail ArgumentError, 'relative_path cannot be nil'
116
+ end
117
+
118
+ if relative_path.to_s.length < 1
119
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
120
+ end
121
+
122
+ @relative_path = relative_path
123
+ end
124
+
106
125
  # Checks equality by comparing each attribute.
107
126
  # @param [Object] Object to be compared
108
127
  def ==(o)
@@ -110,10 +110,22 @@ module PulpDebClient
110
110
  invalid_properties.push('invalid value for "component", component cannot be nil.')
111
111
  end
112
112
 
113
+ if @component.to_s.length < 1
114
+ invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
115
+ end
116
+
113
117
  if @architecture.nil?
114
118
  invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
115
119
  end
116
120
 
121
+ if @architecture.to_s.length < 1
122
+ invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
123
+ end
124
+
125
+ if !@relative_path.nil? && @relative_path.to_s.length < 1
126
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
127
+ end
128
+
117
129
  invalid_properties
118
130
  end
119
131
 
@@ -123,10 +135,51 @@ module PulpDebClient
123
135
  return false if @artifacts.nil?
124
136
  return false if @release.nil?
125
137
  return false if @component.nil?
138
+ return false if @component.to_s.length < 1
126
139
  return false if @architecture.nil?
140
+ return false if @architecture.to_s.length < 1
141
+ return false if !@relative_path.nil? && @relative_path.to_s.length < 1
127
142
  true
128
143
  end
129
144
 
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] component Value to be assigned
147
+ def component=(component)
148
+ if component.nil?
149
+ fail ArgumentError, 'component cannot be nil'
150
+ end
151
+
152
+ if component.to_s.length < 1
153
+ fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
154
+ end
155
+
156
+ @component = component
157
+ end
158
+
159
+ # Custom attribute writer method with validation
160
+ # @param [Object] architecture Value to be assigned
161
+ def architecture=(architecture)
162
+ if architecture.nil?
163
+ fail ArgumentError, 'architecture cannot be nil'
164
+ end
165
+
166
+ if architecture.to_s.length < 1
167
+ fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
168
+ end
169
+
170
+ @architecture = architecture
171
+ end
172
+
173
+ # Custom attribute writer method with validation
174
+ # @param [Object] relative_path Value to be assigned
175
+ def relative_path=(relative_path)
176
+ if !relative_path.nil? && relative_path.to_s.length < 1
177
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
178
+ end
179
+
180
+ @relative_path = relative_path
181
+ end
182
+
130
183
  # Checks equality by comparing each attribute.
131
184
  # @param [Object] Object to be compared
132
185
  def ==(o)