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
@@ -75,6 +75,10 @@ module PulpDebClient
75
75
  invalid_properties.push('invalid value for "component", component cannot be nil.')
76
76
  end
77
77
 
78
+ if @component.to_s.length < 1
79
+ invalid_properties.push('invalid value for "component", 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 @component.nil?
93
+ return false if @component.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] component Value to be assigned
100
+ def component=(component)
101
+ if component.nil?
102
+ fail ArgumentError, 'component cannot be nil'
103
+ end
104
+
105
+ if component.to_s.length < 1
106
+ fail ArgumentError, 'invalid value for "component", the character length must be great than or equal to 1.'
107
+ end
108
+
109
+ @component = component
110
+ end
111
+
93
112
  # Checks equality by comparing each attribute.
94
113
  # @param [Object] Object to be compared
95
114
  def ==(o)
@@ -102,10 +102,26 @@ module PulpDebClient
102
102
  invalid_properties.push('invalid value for "artifacts", artifacts cannot be nil.')
103
103
  end
104
104
 
105
+ if !@codename.nil? && @codename.to_s.length < 1
106
+ invalid_properties.push('invalid value for "codename", the character length must be great than or equal to 1.')
107
+ end
108
+
109
+ if !@suite.nil? && @suite.to_s.length < 1
110
+ invalid_properties.push('invalid value for "suite", the character length must be great than or equal to 1.')
111
+ end
112
+
105
113
  if @distribution.nil?
106
114
  invalid_properties.push('invalid value for "distribution", distribution cannot be nil.')
107
115
  end
108
116
 
117
+ if @distribution.to_s.length < 1
118
+ invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
119
+ end
120
+
121
+ if !@relative_path.nil? && @relative_path.to_s.length < 1
122
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
123
+ end
124
+
109
125
  invalid_properties
110
126
  end
111
127
 
@@ -113,10 +129,58 @@ module PulpDebClient
113
129
  # @return true if the model is valid
114
130
  def valid?
115
131
  return false if @artifacts.nil?
132
+ return false if !@codename.nil? && @codename.to_s.length < 1
133
+ return false if !@suite.nil? && @suite.to_s.length < 1
116
134
  return false if @distribution.nil?
135
+ return false if @distribution.to_s.length < 1
136
+ return false if !@relative_path.nil? && @relative_path.to_s.length < 1
117
137
  true
118
138
  end
119
139
 
140
+ # Custom attribute writer method with validation
141
+ # @param [Object] codename Value to be assigned
142
+ def codename=(codename)
143
+ if !codename.nil? && codename.to_s.length < 1
144
+ fail ArgumentError, 'invalid value for "codename", the character length must be great than or equal to 1.'
145
+ end
146
+
147
+ @codename = codename
148
+ end
149
+
150
+ # Custom attribute writer method with validation
151
+ # @param [Object] suite Value to be assigned
152
+ def suite=(suite)
153
+ if !suite.nil? && suite.to_s.length < 1
154
+ fail ArgumentError, 'invalid value for "suite", the character length must be great than or equal to 1.'
155
+ end
156
+
157
+ @suite = suite
158
+ end
159
+
160
+ # Custom attribute writer method with validation
161
+ # @param [Object] distribution Value to be assigned
162
+ def distribution=(distribution)
163
+ if distribution.nil?
164
+ fail ArgumentError, 'distribution cannot be nil'
165
+ end
166
+
167
+ if distribution.to_s.length < 1
168
+ fail ArgumentError, 'invalid value for "distribution", the character length must be great than or equal to 1.'
169
+ end
170
+
171
+ @distribution = distribution
172
+ end
173
+
174
+ # Custom attribute writer method with validation
175
+ # @param [Object] relative_path Value to be assigned
176
+ def relative_path=(relative_path)
177
+ if !relative_path.nil? && relative_path.to_s.length < 1
178
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
179
+ end
180
+
181
+ @relative_path = relative_path
182
+ end
183
+
120
184
  # Checks equality by comparing each attribute.
121
185
  # @param [Object] Object to be compared
122
186
  def ==(o)
@@ -109,15 +109,45 @@ module PulpDebClient
109
109
  # @return Array for valid properties with the reasons
110
110
  def list_invalid_properties
111
111
  invalid_properties = Array.new
112
+ if !@base_path.nil? && @base_path.to_s.length < 1
113
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
114
+ end
115
+
116
+ if !@name.nil? && @name.to_s.length < 1
117
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
118
+ end
119
+
112
120
  invalid_properties
113
121
  end
114
122
 
115
123
  # Check to see if the all the properties in the model are valid
116
124
  # @return true if the model is valid
117
125
  def valid?
126
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
127
+ return false if !@name.nil? && @name.to_s.length < 1
118
128
  true
119
129
  end
120
130
 
131
+ # Custom attribute writer method with validation
132
+ # @param [Object] base_path Value to be assigned
133
+ def base_path=(base_path)
134
+ if !base_path.nil? && base_path.to_s.length < 1
135
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
136
+ end
137
+
138
+ @base_path = base_path
139
+ end
140
+
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] name Value to be assigned
143
+ def name=(name)
144
+ if !name.nil? && name.to_s.length < 1
145
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
146
+ end
147
+
148
+ @name = name
149
+ end
150
+
121
151
  # Checks equality by comparing each attribute.
122
152
  # @param [Object] Object to be compared
123
153
  def ==(o)
@@ -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.
@@ -333,6 +333,46 @@ module PulpDebClient
333
333
  # @return Array for valid properties with the reasons
334
334
  def list_invalid_properties
335
335
  invalid_properties = Array.new
336
+ if !@name.nil? && @name.to_s.length < 1
337
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
338
+ end
339
+
340
+ if !@url.nil? && @url.to_s.length < 1
341
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
342
+ end
343
+
344
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
345
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
346
+ end
347
+
348
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
349
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
350
+ end
351
+
352
+ if !@client_key.nil? && @client_key.to_s.length < 1
353
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
354
+ end
355
+
356
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
357
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
358
+ end
359
+
360
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
361
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
362
+ end
363
+
364
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
365
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
366
+ end
367
+
368
+ if !@username.nil? && @username.to_s.length < 1
369
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
370
+ end
371
+
372
+ if !@password.nil? && @password.to_s.length < 1
373
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
374
+ end
375
+
336
376
  if !@download_concurrency.nil? && @download_concurrency < 1
337
377
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
338
378
  end
@@ -353,20 +393,150 @@ module PulpDebClient
353
393
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
354
394
  end
355
395
 
396
+ if !@distributions.nil? && @distributions.to_s.length < 1
397
+ invalid_properties.push('invalid value for "distributions", the character length must be great than or equal to 1.')
398
+ end
399
+
400
+ if !@components.nil? && @components.to_s.length < 1
401
+ invalid_properties.push('invalid value for "components", the character length must be great than or equal to 1.')
402
+ end
403
+
404
+ if !@architectures.nil? && @architectures.to_s.length < 1
405
+ invalid_properties.push('invalid value for "architectures", the character length must be great than or equal to 1.')
406
+ end
407
+
408
+ if !@gpgkey.nil? && @gpgkey.to_s.length < 1
409
+ invalid_properties.push('invalid value for "gpgkey", the character length must be great than or equal to 1.')
410
+ end
411
+
356
412
  invalid_properties
357
413
  end
358
414
 
359
415
  # Check to see if the all the properties in the model are valid
360
416
  # @return true if the model is valid
361
417
  def valid?
418
+ return false if !@name.nil? && @name.to_s.length < 1
419
+ return false if !@url.nil? && @url.to_s.length < 1
420
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
421
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
422
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
423
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
424
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
425
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
426
+ return false if !@username.nil? && @username.to_s.length < 1
427
+ return false if !@password.nil? && @password.to_s.length < 1
362
428
  return false if !@download_concurrency.nil? && @download_concurrency < 1
363
429
  return false if !@total_timeout.nil? && @total_timeout < 0.0
364
430
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
365
431
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
366
432
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
433
+ return false if !@distributions.nil? && @distributions.to_s.length < 1
434
+ return false if !@components.nil? && @components.to_s.length < 1
435
+ return false if !@architectures.nil? && @architectures.to_s.length < 1
436
+ return false if !@gpgkey.nil? && @gpgkey.to_s.length < 1
367
437
  true
368
438
  end
369
439
 
440
+ # Custom attribute writer method with validation
441
+ # @param [Object] name Value to be assigned
442
+ def name=(name)
443
+ if !name.nil? && name.to_s.length < 1
444
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
445
+ end
446
+
447
+ @name = name
448
+ end
449
+
450
+ # Custom attribute writer method with validation
451
+ # @param [Object] url Value to be assigned
452
+ def url=(url)
453
+ if !url.nil? && url.to_s.length < 1
454
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
455
+ end
456
+
457
+ @url = url
458
+ end
459
+
460
+ # Custom attribute writer method with validation
461
+ # @param [Object] ca_cert Value to be assigned
462
+ def ca_cert=(ca_cert)
463
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
464
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
465
+ end
466
+
467
+ @ca_cert = ca_cert
468
+ end
469
+
470
+ # Custom attribute writer method with validation
471
+ # @param [Object] client_cert Value to be assigned
472
+ def client_cert=(client_cert)
473
+ if !client_cert.nil? && client_cert.to_s.length < 1
474
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
475
+ end
476
+
477
+ @client_cert = client_cert
478
+ end
479
+
480
+ # Custom attribute writer method with validation
481
+ # @param [Object] client_key Value to be assigned
482
+ def client_key=(client_key)
483
+ if !client_key.nil? && client_key.to_s.length < 1
484
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
485
+ end
486
+
487
+ @client_key = client_key
488
+ end
489
+
490
+ # Custom attribute writer method with validation
491
+ # @param [Object] proxy_url Value to be assigned
492
+ def proxy_url=(proxy_url)
493
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
494
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
495
+ end
496
+
497
+ @proxy_url = proxy_url
498
+ end
499
+
500
+ # Custom attribute writer method with validation
501
+ # @param [Object] proxy_username Value to be assigned
502
+ def proxy_username=(proxy_username)
503
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
504
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
505
+ end
506
+
507
+ @proxy_username = proxy_username
508
+ end
509
+
510
+ # Custom attribute writer method with validation
511
+ # @param [Object] proxy_password Value to be assigned
512
+ def proxy_password=(proxy_password)
513
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
514
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
515
+ end
516
+
517
+ @proxy_password = proxy_password
518
+ end
519
+
520
+ # Custom attribute writer method with validation
521
+ # @param [Object] username Value to be assigned
522
+ def username=(username)
523
+ if !username.nil? && username.to_s.length < 1
524
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
525
+ end
526
+
527
+ @username = username
528
+ end
529
+
530
+ # Custom attribute writer method with validation
531
+ # @param [Object] password Value to be assigned
532
+ def password=(password)
533
+ if !password.nil? && password.to_s.length < 1
534
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
535
+ end
536
+
537
+ @password = password
538
+ end
539
+
370
540
  # Custom attribute writer method with validation
371
541
  # @param [Object] download_concurrency Value to be assigned
372
542
  def download_concurrency=(download_concurrency)
@@ -417,6 +587,46 @@ module PulpDebClient
417
587
  @sock_read_timeout = sock_read_timeout
418
588
  end
419
589
 
590
+ # Custom attribute writer method with validation
591
+ # @param [Object] distributions Value to be assigned
592
+ def distributions=(distributions)
593
+ if !distributions.nil? && distributions.to_s.length < 1
594
+ fail ArgumentError, 'invalid value for "distributions", the character length must be great than or equal to 1.'
595
+ end
596
+
597
+ @distributions = distributions
598
+ end
599
+
600
+ # Custom attribute writer method with validation
601
+ # @param [Object] components Value to be assigned
602
+ def components=(components)
603
+ if !components.nil? && components.to_s.length < 1
604
+ fail ArgumentError, 'invalid value for "components", the character length must be great than or equal to 1.'
605
+ end
606
+
607
+ @components = components
608
+ end
609
+
610
+ # Custom attribute writer method with validation
611
+ # @param [Object] architectures Value to be assigned
612
+ def architectures=(architectures)
613
+ if !architectures.nil? && architectures.to_s.length < 1
614
+ fail ArgumentError, 'invalid value for "architectures", the character length must be great than or equal to 1.'
615
+ end
616
+
617
+ @architectures = architectures
618
+ end
619
+
620
+ # Custom attribute writer method with validation
621
+ # @param [Object] gpgkey Value to be assigned
622
+ def gpgkey=(gpgkey)
623
+ if !gpgkey.nil? && gpgkey.to_s.length < 1
624
+ fail ArgumentError, 'invalid value for "gpgkey", the character length must be great than or equal to 1.'
625
+ end
626
+
627
+ @gpgkey = gpgkey
628
+ end
629
+
420
630
  # Checks equality by comparing each attribute.
421
631
  # @param [Object] Object to be compared
422
632
  def ==(o)
@@ -100,6 +100,14 @@ module PulpDebClient
100
100
  # @return Array for valid properties with the reasons
101
101
  def list_invalid_properties
102
102
  invalid_properties = Array.new
103
+ if !@name.nil? && @name.to_s.length < 1
104
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
105
+ end
106
+
107
+ if !@description.nil? && @description.to_s.length < 1
108
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
109
+ end
110
+
103
111
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
104
112
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
105
113
  end
@@ -110,10 +118,32 @@ module PulpDebClient
110
118
  # Check to see if the all the properties in the model are valid
111
119
  # @return true if the model is valid
112
120
  def valid?
121
+ return false if !@name.nil? && @name.to_s.length < 1
122
+ return false if !@description.nil? && @description.to_s.length < 1
113
123
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
124
  true
115
125
  end
116
126
 
127
+ # Custom attribute writer method with validation
128
+ # @param [Object] name Value to be assigned
129
+ def name=(name)
130
+ if !name.nil? && name.to_s.length < 1
131
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
132
+ end
133
+
134
+ @name = name
135
+ end
136
+
137
+ # Custom attribute writer method with validation
138
+ # @param [Object] description Value to be assigned
139
+ def description=(description)
140
+ if !description.nil? && description.to_s.length < 1
141
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
142
+ end
143
+
144
+ @description = description
145
+ end
146
+
117
147
  # Custom attribute writer method with validation
118
148
  # @param [Object] retain_repo_versions Value to be assigned
119
149
  def retain_repo_versions=(retain_repo_versions)
@@ -13,22 +13,21 @@ OpenAPI Generator version: 4.3.1
13
13
  require 'date'
14
14
 
15
15
  module PulpDebClient
16
- # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
- class RepositoryVersion
18
- # A repository version whose content was used as the initial set of content for this repository version
19
- attr_accessor :base_version
16
+ class Repair
17
+ # Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
18
+ attr_accessor :verify_checksums
20
19
 
21
20
  # Attribute mapping from ruby-style variable name to JSON key.
22
21
  def self.attribute_map
23
22
  {
24
- :'base_version' => :'base_version'
23
+ :'verify_checksums' => :'verify_checksums'
25
24
  }
26
25
  end
27
26
 
28
27
  # Attribute type mapping.
29
28
  def self.openapi_types
30
29
  {
31
- :'base_version' => :'String'
30
+ :'verify_checksums' => :'Boolean'
32
31
  }
33
32
  end
34
33
 
@@ -42,19 +41,21 @@ module PulpDebClient
42
41
  # @param [Hash] attributes Model attributes in the form of hash
43
42
  def initialize(attributes = {})
44
43
  if (!attributes.is_a?(Hash))
45
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::RepositoryVersion` initialize method"
44
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDebClient::Repair` initialize method"
46
45
  end
47
46
 
48
47
  # check to see if the attribute exists and convert string to symbol for hash key
49
48
  attributes = attributes.each_with_object({}) { |(k, v), h|
50
49
  if (!self.class.attribute_map.key?(k.to_sym))
51
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::RepositoryVersion`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDebClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
51
  end
53
52
  h[k.to_sym] = v
54
53
  }
55
54
 
56
- if attributes.key?(:'base_version')
57
- self.base_version = attributes[:'base_version']
55
+ if attributes.key?(:'verify_checksums')
56
+ self.verify_checksums = attributes[:'verify_checksums']
57
+ else
58
+ self.verify_checksums = true
58
59
  end
59
60
  end
60
61
 
@@ -76,7 +77,7 @@ module PulpDebClient
76
77
  def ==(o)
77
78
  return true if self.equal?(o)
78
79
  self.class == o.class &&
79
- base_version == o.base_version
80
+ verify_checksums == o.verify_checksums
80
81
  end
81
82
 
82
83
  # @see the `==` method
@@ -88,7 +89,7 @@ module PulpDebClient
88
89
  # Calculates hash code according to all attributes.
89
90
  # @return [Integer] Hash code
90
91
  def hash
91
- [base_version].hash
92
+ [verify_checksums].hash
92
93
  end
93
94
 
94
95
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpDebClient
14
- VERSION = '2.16.0'
14
+ VERSION = '2.18.0'
15
15
  end
@@ -18,8 +18,8 @@ require 'pulp_deb_client/configuration'
18
18
 
19
19
  # Models
20
20
  require 'pulp_deb_client/models/async_operation_response'
21
- require 'pulp_deb_client/models/content_summary'
22
21
  require 'pulp_deb_client/models/content_summary_response'
22
+ require 'pulp_deb_client/models/copy'
23
23
  require 'pulp_deb_client/models/deb_apt_distribution'
24
24
  require 'pulp_deb_client/models/deb_apt_distribution_response'
25
25
  require 'pulp_deb_client/models/deb_apt_publication'
@@ -67,9 +67,9 @@ require 'pulp_deb_client/models/patcheddeb_apt_distribution'
67
67
  require 'pulp_deb_client/models/patcheddeb_apt_remote'
68
68
  require 'pulp_deb_client/models/patcheddeb_apt_repository'
69
69
  require 'pulp_deb_client/models/policy_enum'
70
+ require 'pulp_deb_client/models/repair'
70
71
  require 'pulp_deb_client/models/repository_add_remove_content'
71
72
  require 'pulp_deb_client/models/repository_sync_url'
72
- require 'pulp_deb_client/models/repository_version'
73
73
  require 'pulp_deb_client/models/repository_version_response'
74
74
 
75
75
  # APIs
@@ -83,6 +83,7 @@ require 'pulp_deb_client/api/content_release_architectures_api'
83
83
  require 'pulp_deb_client/api/content_release_components_api'
84
84
  require 'pulp_deb_client/api/content_release_files_api'
85
85
  require 'pulp_deb_client/api/content_releases_api'
86
+ require 'pulp_deb_client/api/deb_copy_api'
86
87
  require 'pulp_deb_client/api/distributions_apt_api'
87
88
  require 'pulp_deb_client/api/publications_apt_api'
88
89
  require 'pulp_deb_client/api/publications_verbatim_api'
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.license = 'GPL-2.0+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '>= 0.14.0'
30
+ s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PulpDebClient::DebCopyApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'DebCopyApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PulpDebClient::DebCopyApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of DebCopyApi' do
30
+ it 'should create an instance of DebCopyApi' do
31
+ expect(@api_instance).to be_instance_of(PulpDebClient::DebCopyApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for copy_content
36
+ # Copy content
37
+ # Trigger an asynchronous task to copy APT contentfrom one repository into another, creating a newrepository version.
38
+ # @param copy
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [AsyncOperationResponse]
41
+ describe 'copy_content test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -92,7 +92,7 @@ describe 'RepositoriesAptVersionsApi' do
92
92
  # unit tests for repair
93
93
  # Trigger an asynchronous task to repair a repository version.
94
94
  # @param deb_apt_repository_version_href
95
- # @param repository_version
95
+ # @param repair
96
96
  # @param [Hash] opts the optional parameters
97
97
  # @return [AsyncOperationResponse]
98
98
  describe 'repair test' do