pulp_deb_client 2.16.0 → 2.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  3. data/docs/Copy.md +21 -0
  4. data/docs/DebAptRemote.md +1 -1
  5. data/docs/DebAptRemoteResponse.md +1 -1
  6. data/docs/DebCopyApi.md +62 -0
  7. data/docs/PatcheddebAptRemote.md +1 -1
  8. data/docs/Repair.md +17 -0
  9. data/docs/RepositoriesAptVersionsApi.md +4 -4
  10. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +4 -0
  11. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +4 -0
  12. data/lib/pulp_deb_client/api/content_packages_api.rb +4 -0
  13. data/lib/pulp_deb_client/api/deb_copy_api.rb +86 -0
  14. data/lib/pulp_deb_client/api/repositories_apt_versions_api.rb +9 -9
  15. data/lib/pulp_deb_client/api_client.rb +1 -4
  16. data/lib/pulp_deb_client/configuration.rb +1 -0
  17. data/lib/pulp_deb_client/models/{content_summary.rb → copy.rb} +33 -42
  18. data/lib/pulp_deb_client/models/deb_apt_distribution.rb +38 -0
  19. data/lib/pulp_deb_client/models/deb_apt_remote.rb +223 -1
  20. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +1 -1
  21. data/lib/pulp_deb_client/models/deb_apt_repository.rb +34 -0
  22. data/lib/pulp_deb_client/models/deb_base_package.rb +15 -0
  23. data/lib/pulp_deb_client/models/deb_generic_content.rb +19 -0
  24. data/lib/pulp_deb_client/models/deb_installer_file_index.rb +53 -0
  25. data/lib/pulp_deb_client/models/deb_package_index.rb +45 -0
  26. data/lib/pulp_deb_client/models/deb_release.rb +57 -0
  27. data/lib/pulp_deb_client/models/deb_release_architecture.rb +19 -0
  28. data/lib/pulp_deb_client/models/deb_release_component.rb +19 -0
  29. data/lib/pulp_deb_client/models/deb_release_file.rb +64 -0
  30. data/lib/pulp_deb_client/models/patcheddeb_apt_distribution.rb +30 -0
  31. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +211 -1
  32. data/lib/pulp_deb_client/models/patcheddeb_apt_repository.rb +30 -0
  33. data/lib/pulp_deb_client/models/{repository_version.rb → repair.rb} +13 -12
  34. data/lib/pulp_deb_client/version.rb +1 -1
  35. data/lib/pulp_deb_client.rb +3 -2
  36. data/pulp_deb_client.gemspec +1 -1
  37. data/spec/api/deb_copy_api_spec.rb +47 -0
  38. data/spec/api/repositories_apt_versions_api_spec.rb +1 -1
  39. data/spec/models/{content_summary_spec.rb → copy_spec.rb} +9 -9
  40. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
  41. metadata +73 -63
  42. data/docs/ContentSummary.md +0 -21
  43. data/docs/RepositoryVersion.md +0 -17
@@ -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.
@@ -104,6 +104,14 @@ module PulpDebClient
104
104
  invalid_properties.push('invalid value for "name", name cannot be nil.')
105
105
  end
106
106
 
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
+
107
115
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
108
116
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
109
117
  end
@@ -115,10 +123,36 @@ module PulpDebClient
115
123
  # @return true if the model is valid
116
124
  def valid?
117
125
  return false if @name.nil?
126
+ return false if @name.to_s.length < 1
127
+ return false if !@description.nil? && @description.to_s.length < 1
118
128
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
119
129
  true
120
130
  end
121
131
 
132
+ # Custom attribute writer method with validation
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
+
122
156
  # Custom attribute writer method with validation
123
157
  # @param [Object] retain_repo_versions Value to be assigned
124
158
  def retain_repo_versions=(retain_repo_versions)
@@ -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)
@@ -106,6 +106,18 @@ module PulpDebClient
106
106
  invalid_properties.push('invalid value for "release", release cannot be nil.')
107
107
  end
108
108
 
109
+ if !@component.nil? && @component.to_s.length < 1
110
+ invalid_properties.push('invalid value for "component", the character length must be great than or equal to 1.')
111
+ end
112
+
113
+ if !@architecture.nil? && @architecture.to_s.length < 1
114
+ invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
115
+ end
116
+
117
+ if !@relative_path.nil? && @relative_path.to_s.length < 1
118
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
119
+ end
120
+
109
121
  invalid_properties
110
122
  end
111
123
 
@@ -114,9 +126,42 @@ module PulpDebClient
114
126
  def valid?
115
127
  return false if @artifacts.nil?
116
128
  return false if @release.nil?
129
+ return false if !@component.nil? && @component.to_s.length < 1
130
+ return false if !@architecture.nil? && @architecture.to_s.length < 1
131
+ return false if !@relative_path.nil? && @relative_path.to_s.length < 1
117
132
  true
118
133
  end
119
134
 
135
+ # Custom attribute writer method with validation
136
+ # @param [Object] component Value to be assigned
137
+ def component=(component)
138
+ if !component.nil? && component.to_s.length < 1
139
+ fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
140
+ end
141
+
142
+ @component = component
143
+ end
144
+
145
+ # Custom attribute writer method with validation
146
+ # @param [Object] architecture Value to be assigned
147
+ def architecture=(architecture)
148
+ if !architecture.nil? && architecture.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @architecture = architecture
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] relative_path Value to be assigned
157
+ def relative_path=(relative_path)
158
+ if !relative_path.nil? && relative_path.to_s.length < 1
159
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
160
+ end
161
+
162
+ @relative_path = relative_path
163
+ end
164
+
120
165
  # Checks equality by comparing each attribute.
121
166
  # @param [Object] Object to be compared
122
167
  def ==(o)
@@ -81,14 +81,26 @@ module PulpDebClient
81
81
  invalid_properties.push('invalid value for "codename", codename cannot be nil.')
82
82
  end
83
83
 
84
+ if @codename.to_s.length < 1
85
+ invalid_properties.push('invalid value for "codename", the character length must be great than or equal to 1.')
86
+ end
87
+
84
88
  if @suite.nil?
85
89
  invalid_properties.push('invalid value for "suite", suite cannot be nil.')
86
90
  end
87
91
 
92
+ if @suite.to_s.length < 1
93
+ invalid_properties.push('invalid value for "suite", the character length must be great than or equal to 1.')
94
+ end
95
+
88
96
  if @distribution.nil?
89
97
  invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
90
98
  end
91
99
 
100
+ if @distribution.to_s.length < 1
101
+ invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
102
+ end
103
+
92
104
  invalid_properties
93
105
  end
94
106
 
@@ -96,11 +108,56 @@ module PulpDebClient
96
108
  # @return true if the model is valid
97
109
  def valid?
98
110
  return false if @codename.nil?
111
+ return false if @codename.to_s.length < 1
99
112
  return false if @suite.nil?
113
+ return false if @suite.to_s.length < 1
100
114
  return false if @distribution.nil?
115
+ return false if @distribution.to_s.length < 1
101
116
  true
102
117
  end
103
118
 
119
+ # Custom attribute writer method with validation
120
+ # @param [Object] codename Value to be assigned
121
+ def codename=(codename)
122
+ if codename.nil?
123
+ fail ArgumentError, 'codename cannot be nil'
124
+ end
125
+
126
+ if codename.to_s.length < 1
127
+ fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
128
+ end
129
+
130
+ @codename = codename
131
+ end
132
+
133
+ # Custom attribute writer method with validation
134
+ # @param [Object] suite Value to be assigned
135
+ def suite=(suite)
136
+ if suite.nil?
137
+ fail ArgumentError, 'suite cannot be nil'
138
+ end
139
+
140
+ if suite.to_s.length < 1
141
+ fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
142
+ end
143
+
144
+ @suite = suite
145
+ end
146
+
147
+ # Custom attribute writer method with validation
148
+ # @param [Object] distribution Value to be assigned
149
+ def distribution=(distribution)
150
+ if distribution.nil?
151
+ fail ArgumentError, 'distribution cannot be nil'
152
+ end
153
+
154
+ if distribution.to_s.length < 1
155
+ fail ArgumentError, 'invalid value for "distribution", the character length must be great than or equal to 1.'
156
+ end
157
+
158
+ @distribution = distribution
159
+ end
160
+
104
161
  # Checks equality by comparing each attribute.
105
162
  # @param [Object] Object to be compared
106
163
  def ==(o)
@@ -75,6 +75,10 @@ module PulpDebClient
75
75
  invalid_properties.push('invalid value for "architecture", architecture cannot be nil.')
76
76
  end
77
77
 
78
+ if @architecture.to_s.length < 1
79
+ invalid_properties.push('invalid value for "architecture", the character length must be great than or equal to 1.')
80
+ end
81
+
78
82
  if @release.nil?
79
83
  invalid_properties.push('invalid value for "release", release cannot be nil.')
80
84
  end
@@ -86,10 +90,25 @@ module PulpDebClient
86
90
  # @return true if the model is valid
87
91
  def valid?
88
92
  return false if @architecture.nil?
93
+ return false if @architecture.to_s.length < 1
89
94
  return false if @release.nil?
90
95
  true
91
96
  end
92
97
 
98
+ # Custom attribute writer method with validation
99
+ # @param [Object] architecture Value to be assigned
100
+ def architecture=(architecture)
101
+ if architecture.nil?
102
+ fail ArgumentError, 'architecture cannot be nil'
103
+ end
104
+
105
+ if architecture.to_s.length < 1
106
+ fail ArgumentError, 'invalid value for "architecture", the character length must be great than or equal to 1.'
107
+ end
108
+
109
+ @architecture = architecture
110
+ end
111
+
93
112
  # Checks equality by comparing each attribute.
94
113
  # @param [Object] Object to be compared
95
114
  def ==(o)