pulp_deb_client 3.3.0 → 3.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -6
  3. data/docs/ContentGenericContentsApi.md +4 -2
  4. data/docs/ContentInstallerFileIndicesApi.md +1 -1
  5. data/docs/ContentInstallerPackagesApi.md +4 -2
  6. data/docs/ContentPackageIndicesApi.md +1 -1
  7. data/docs/ContentPackageReleaseComponentsApi.md +1 -1
  8. data/docs/ContentPackagesApi.md +3 -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/ContentSourceIndicesApi.md +1 -1
  14. data/docs/ContentSourcePackagesApi.md +1 -1
  15. data/docs/ContentSourceReleaseComponentsApi.md +1 -1
  16. data/docs/DebCopyApi.md +1 -1
  17. data/docs/DebGenericContent.md +3 -1
  18. data/docs/DebInstallerPackage.md +3 -1
  19. data/docs/DebPackage.md +2 -0
  20. data/docs/DistributionsAptApi.md +1 -1
  21. data/docs/PublicationsAptApi.md +1 -1
  22. data/docs/PublicationsVerbatimApi.md +1 -1
  23. data/docs/RemotesAptApi.md +1 -1
  24. data/docs/RepositoriesAptApi.md +1 -1
  25. data/docs/RepositoriesAptVersionsApi.md +1 -1
  26. data/lib/pulp_deb_client/api/content_generic_contents_api.rb +7 -0
  27. data/lib/pulp_deb_client/api/content_installer_packages_api.rb +7 -0
  28. data/lib/pulp_deb_client/api/content_packages_api.rb +7 -0
  29. data/lib/pulp_deb_client/configuration.rb +2 -2
  30. data/lib/pulp_deb_client/models/deb_apt_remote.rb +20 -20
  31. data/lib/pulp_deb_client/models/deb_apt_remote_response.rb +20 -20
  32. data/lib/pulp_deb_client/models/deb_generic_content.rb +29 -4
  33. data/lib/pulp_deb_client/models/deb_installer_package.rb +29 -4
  34. data/lib/pulp_deb_client/models/deb_package.rb +26 -1
  35. data/lib/pulp_deb_client/models/patcheddeb_apt_remote.rb +20 -20
  36. data/lib/pulp_deb_client/version.rb +1 -1
  37. data/spec/api/content_generic_contents_api_spec.rb +1 -0
  38. data/spec/api/content_installer_packages_api_spec.rb +1 -0
  39. data/spec/api/content_packages_api_spec.rb +1 -0
  40. data/spec/configuration_spec.rb +3 -3
  41. data/spec/models/deb_generic_content_spec.rb +6 -0
  42. data/spec/models/deb_installer_package_spec.rb +6 -0
  43. data/spec/models/deb_package_spec.rb +6 -0
  44. metadata +85 -85
@@ -334,20 +334,20 @@ module PulpDebClient
334
334
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
335
335
  end
336
336
 
337
- if !@total_timeout.nil? && @total_timeout < 0.0
338
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
337
+ if !@total_timeout.nil? && @total_timeout < 0
338
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
339
339
  end
340
340
 
341
- if !@connect_timeout.nil? && @connect_timeout < 0.0
342
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
341
+ if !@connect_timeout.nil? && @connect_timeout < 0
342
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
343
343
  end
344
344
 
345
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
346
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
345
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
346
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
347
347
  end
348
348
 
349
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
350
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
349
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
350
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
351
351
  end
352
352
 
353
353
  if @distributions.nil?
@@ -363,10 +363,10 @@ module PulpDebClient
363
363
  return false if @name.nil?
364
364
  return false if @url.nil?
365
365
  return false if !@download_concurrency.nil? && @download_concurrency < 1
366
- return false if !@total_timeout.nil? && @total_timeout < 0.0
367
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
368
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
369
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
366
+ return false if !@total_timeout.nil? && @total_timeout < 0
367
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
368
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
369
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
370
370
  return false if @distributions.nil?
371
371
  true
372
372
  end
@@ -384,8 +384,8 @@ module PulpDebClient
384
384
  # Custom attribute writer method with validation
385
385
  # @param [Object] total_timeout Value to be assigned
386
386
  def total_timeout=(total_timeout)
387
- if !total_timeout.nil? && total_timeout < 0.0
388
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
387
+ if !total_timeout.nil? && total_timeout < 0
388
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
389
389
  end
390
390
 
391
391
  @total_timeout = total_timeout
@@ -394,8 +394,8 @@ module PulpDebClient
394
394
  # Custom attribute writer method with validation
395
395
  # @param [Object] connect_timeout Value to be assigned
396
396
  def connect_timeout=(connect_timeout)
397
- if !connect_timeout.nil? && connect_timeout < 0.0
398
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
397
+ if !connect_timeout.nil? && connect_timeout < 0
398
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
399
399
  end
400
400
 
401
401
  @connect_timeout = connect_timeout
@@ -404,8 +404,8 @@ module PulpDebClient
404
404
  # Custom attribute writer method with validation
405
405
  # @param [Object] sock_connect_timeout Value to be assigned
406
406
  def sock_connect_timeout=(sock_connect_timeout)
407
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
408
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
407
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
408
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
409
409
  end
410
410
 
411
411
  @sock_connect_timeout = sock_connect_timeout
@@ -414,8 +414,8 @@ module PulpDebClient
414
414
  # Custom attribute writer method with validation
415
415
  # @param [Object] sock_read_timeout Value to be assigned
416
416
  def sock_read_timeout=(sock_read_timeout)
417
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
418
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
417
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
418
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
419
419
  end
420
420
 
421
421
  @sock_read_timeout = sock_read_timeout
@@ -30,6 +30,9 @@ module PulpDebClient
30
30
  # An uncommitted upload that may be turned into the content unit.
31
31
  attr_accessor :upload
32
32
 
33
+ # A url that Pulp can download and turn into the content unit.
34
+ attr_accessor :file_url
35
+
33
36
  # Attribute mapping from ruby-style variable name to JSON key.
34
37
  def self.attribute_map
35
38
  {
@@ -37,7 +40,8 @@ module PulpDebClient
37
40
  :'artifact' => :'artifact',
38
41
  :'relative_path' => :'relative_path',
39
42
  :'file' => :'file',
40
- :'upload' => :'upload'
43
+ :'upload' => :'upload',
44
+ :'file_url' => :'file_url'
41
45
  }
42
46
  end
43
47
 
@@ -48,7 +52,8 @@ module PulpDebClient
48
52
  :'artifact' => :'String',
49
53
  :'relative_path' => :'String',
50
54
  :'file' => :'File',
51
- :'upload' => :'String'
55
+ :'upload' => :'String',
56
+ :'file_url' => :'String'
52
57
  }
53
58
  end
54
59
 
@@ -92,6 +97,10 @@ module PulpDebClient
92
97
  if attributes.key?(:'upload')
93
98
  self.upload = attributes[:'upload']
94
99
  end
100
+
101
+ if attributes.key?(:'file_url')
102
+ self.file_url = attributes[:'file_url']
103
+ end
95
104
  end
96
105
 
97
106
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -106,6 +115,10 @@ module PulpDebClient
106
115
  invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
107
116
  end
108
117
 
118
+ if !@file_url.nil? && @file_url.to_s.length < 1
119
+ invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
120
+ end
121
+
109
122
  invalid_properties
110
123
  end
111
124
 
@@ -114,6 +127,7 @@ module PulpDebClient
114
127
  def valid?
115
128
  return false if @relative_path.nil?
116
129
  return false if @relative_path.to_s.length < 1
130
+ return false if !@file_url.nil? && @file_url.to_s.length < 1
117
131
  true
118
132
  end
119
133
 
@@ -131,6 +145,16 @@ module PulpDebClient
131
145
  @relative_path = relative_path
132
146
  end
133
147
 
148
+ # Custom attribute writer method with validation
149
+ # @param [Object] file_url Value to be assigned
150
+ def file_url=(file_url)
151
+ if !file_url.nil? && file_url.to_s.length < 1
152
+ fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
153
+ end
154
+
155
+ @file_url = file_url
156
+ end
157
+
134
158
  # Checks equality by comparing each attribute.
135
159
  # @param [Object] Object to be compared
136
160
  def ==(o)
@@ -140,7 +164,8 @@ module PulpDebClient
140
164
  artifact == o.artifact &&
141
165
  relative_path == o.relative_path &&
142
166
  file == o.file &&
143
- upload == o.upload
167
+ upload == o.upload &&
168
+ file_url == o.file_url
144
169
  end
145
170
 
146
171
  # @see the `==` method
@@ -152,7 +177,7 @@ module PulpDebClient
152
177
  # Calculates hash code according to all attributes.
153
178
  # @return [Integer] Hash code
154
179
  def hash
155
- [repository, artifact, relative_path, file, upload].hash
180
+ [repository, artifact, relative_path, file, upload, file_url].hash
156
181
  end
157
182
 
158
183
  # Builds the object from hash
@@ -30,6 +30,9 @@ module PulpDebClient
30
30
  # An uncommitted upload that may be turned into the content unit.
31
31
  attr_accessor :upload
32
32
 
33
+ # A url that Pulp can download and turn into the content unit.
34
+ attr_accessor :file_url
35
+
33
36
  # Attribute mapping from ruby-style variable name to JSON key.
34
37
  def self.attribute_map
35
38
  {
@@ -37,7 +40,8 @@ module PulpDebClient
37
40
  :'artifact' => :'artifact',
38
41
  :'relative_path' => :'relative_path',
39
42
  :'file' => :'file',
40
- :'upload' => :'upload'
43
+ :'upload' => :'upload',
44
+ :'file_url' => :'file_url'
41
45
  }
42
46
  end
43
47
 
@@ -48,7 +52,8 @@ module PulpDebClient
48
52
  :'artifact' => :'String',
49
53
  :'relative_path' => :'String',
50
54
  :'file' => :'File',
51
- :'upload' => :'String'
55
+ :'upload' => :'String',
56
+ :'file_url' => :'String'
52
57
  }
53
58
  end
54
59
 
@@ -92,6 +97,10 @@ module PulpDebClient
92
97
  if attributes.key?(:'upload')
93
98
  self.upload = attributes[:'upload']
94
99
  end
100
+
101
+ if attributes.key?(:'file_url')
102
+ self.file_url = attributes[:'file_url']
103
+ end
95
104
  end
96
105
 
97
106
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -102,6 +111,10 @@ module PulpDebClient
102
111
  invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
103
112
  end
104
113
 
114
+ if !@file_url.nil? && @file_url.to_s.length < 1
115
+ invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
116
+ end
117
+
105
118
  invalid_properties
106
119
  end
107
120
 
@@ -109,6 +122,7 @@ module PulpDebClient
109
122
  # @return true if the model is valid
110
123
  def valid?
111
124
  return false if !@relative_path.nil? && @relative_path.to_s.length < 1
125
+ return false if !@file_url.nil? && @file_url.to_s.length < 1
112
126
  true
113
127
  end
114
128
 
@@ -122,6 +136,16 @@ module PulpDebClient
122
136
  @relative_path = relative_path
123
137
  end
124
138
 
139
+ # Custom attribute writer method with validation
140
+ # @param [Object] file_url Value to be assigned
141
+ def file_url=(file_url)
142
+ if !file_url.nil? && file_url.to_s.length < 1
143
+ fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
144
+ end
145
+
146
+ @file_url = file_url
147
+ end
148
+
125
149
  # Checks equality by comparing each attribute.
126
150
  # @param [Object] Object to be compared
127
151
  def ==(o)
@@ -131,7 +155,8 @@ module PulpDebClient
131
155
  artifact == o.artifact &&
132
156
  relative_path == o.relative_path &&
133
157
  file == o.file &&
134
- upload == o.upload
158
+ upload == o.upload &&
159
+ file_url == o.file_url
135
160
  end
136
161
 
137
162
  # @see the `==` method
@@ -143,7 +168,7 @@ module PulpDebClient
143
168
  # Calculates hash code according to all attributes.
144
169
  # @return [Integer] Hash code
145
170
  def hash
146
- [repository, artifact, relative_path, file, upload].hash
171
+ [repository, artifact, relative_path, file, upload, file_url].hash
147
172
  end
148
173
 
149
174
  # Builds the object from hash
@@ -30,6 +30,9 @@ module PulpDebClient
30
30
  # An uncommitted upload that may be turned into the content unit.
31
31
  attr_accessor :upload
32
32
 
33
+ # A url that Pulp can download and turn into the content unit.
34
+ attr_accessor :file_url
35
+
33
36
  # Name of the distribution.
34
37
  attr_accessor :distribution
35
38
 
@@ -44,6 +47,7 @@ module PulpDebClient
44
47
  :'relative_path' => :'relative_path',
45
48
  :'file' => :'file',
46
49
  :'upload' => :'upload',
50
+ :'file_url' => :'file_url',
47
51
  :'distribution' => :'distribution',
48
52
  :'component' => :'component'
49
53
  }
@@ -57,6 +61,7 @@ module PulpDebClient
57
61
  :'relative_path' => :'String',
58
62
  :'file' => :'File',
59
63
  :'upload' => :'String',
64
+ :'file_url' => :'String',
60
65
  :'distribution' => :'String',
61
66
  :'component' => :'String'
62
67
  }
@@ -103,6 +108,10 @@ module PulpDebClient
103
108
  self.upload = attributes[:'upload']
104
109
  end
105
110
 
111
+ if attributes.key?(:'file_url')
112
+ self.file_url = attributes[:'file_url']
113
+ end
114
+
106
115
  if attributes.key?(:'distribution')
107
116
  self.distribution = attributes[:'distribution']
108
117
  end
@@ -120,6 +129,10 @@ module PulpDebClient
120
129
  invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
121
130
  end
122
131
 
132
+ if !@file_url.nil? && @file_url.to_s.length < 1
133
+ invalid_properties.push('invalid value for "file_url", the character length must be great than or equal to 1.')
134
+ end
135
+
123
136
  if !@distribution.nil? && @distribution.to_s.length < 1
124
137
  invalid_properties.push('invalid value for "distribution", the character length must be great than or equal to 1.')
125
138
  end
@@ -135,6 +148,7 @@ module PulpDebClient
135
148
  # @return true if the model is valid
136
149
  def valid?
137
150
  return false if !@relative_path.nil? && @relative_path.to_s.length < 1
151
+ return false if !@file_url.nil? && @file_url.to_s.length < 1
138
152
  return false if !@distribution.nil? && @distribution.to_s.length < 1
139
153
  return false if !@component.nil? && @component.to_s.length < 1
140
154
  true
@@ -150,6 +164,16 @@ module PulpDebClient
150
164
  @relative_path = relative_path
151
165
  end
152
166
 
167
+ # Custom attribute writer method with validation
168
+ # @param [Object] file_url Value to be assigned
169
+ def file_url=(file_url)
170
+ if !file_url.nil? && file_url.to_s.length < 1
171
+ fail ArgumentError, 'invalid value for "file_url", the character length must be great than or equal to 1.'
172
+ end
173
+
174
+ @file_url = file_url
175
+ end
176
+
153
177
  # Custom attribute writer method with validation
154
178
  # @param [Object] distribution Value to be assigned
155
179
  def distribution=(distribution)
@@ -180,6 +204,7 @@ module PulpDebClient
180
204
  relative_path == o.relative_path &&
181
205
  file == o.file &&
182
206
  upload == o.upload &&
207
+ file_url == o.file_url &&
183
208
  distribution == o.distribution &&
184
209
  component == o.component
185
210
  end
@@ -193,7 +218,7 @@ module PulpDebClient
193
218
  # Calculates hash code according to all attributes.
194
219
  # @return [Integer] Hash code
195
220
  def hash
196
- [repository, artifact, relative_path, file, upload, distribution, component].hash
221
+ [repository, artifact, relative_path, file, upload, file_url, distribution, component].hash
197
222
  end
198
223
 
199
224
  # Builds the object from hash
@@ -379,20 +379,20 @@ module PulpDebClient
379
379
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
380
380
  end
381
381
 
382
- if !@total_timeout.nil? && @total_timeout < 0.0
383
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
382
+ if !@total_timeout.nil? && @total_timeout < 0
383
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
384
384
  end
385
385
 
386
- if !@connect_timeout.nil? && @connect_timeout < 0.0
387
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
386
+ if !@connect_timeout.nil? && @connect_timeout < 0
387
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
388
388
  end
389
389
 
390
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
391
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
390
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
391
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
392
392
  end
393
393
 
394
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
395
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
394
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
395
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
396
396
  end
397
397
 
398
398
  if !@distributions.nil? && @distributions.to_s.length < 1
@@ -428,10 +428,10 @@ module PulpDebClient
428
428
  return false if !@username.nil? && @username.to_s.length < 1
429
429
  return false if !@password.nil? && @password.to_s.length < 1
430
430
  return false if !@download_concurrency.nil? && @download_concurrency < 1
431
- return false if !@total_timeout.nil? && @total_timeout < 0.0
432
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
433
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
434
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
431
+ return false if !@total_timeout.nil? && @total_timeout < 0
432
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
433
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
434
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
435
435
  return false if !@distributions.nil? && @distributions.to_s.length < 1
436
436
  return false if !@components.nil? && @components.to_s.length < 1
437
437
  return false if !@architectures.nil? && @architectures.to_s.length < 1
@@ -552,8 +552,8 @@ module PulpDebClient
552
552
  # Custom attribute writer method with validation
553
553
  # @param [Object] total_timeout Value to be assigned
554
554
  def total_timeout=(total_timeout)
555
- if !total_timeout.nil? && total_timeout < 0.0
556
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
555
+ if !total_timeout.nil? && total_timeout < 0
556
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
557
557
  end
558
558
 
559
559
  @total_timeout = total_timeout
@@ -562,8 +562,8 @@ module PulpDebClient
562
562
  # Custom attribute writer method with validation
563
563
  # @param [Object] connect_timeout Value to be assigned
564
564
  def connect_timeout=(connect_timeout)
565
- if !connect_timeout.nil? && connect_timeout < 0.0
566
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
565
+ if !connect_timeout.nil? && connect_timeout < 0
566
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
567
567
  end
568
568
 
569
569
  @connect_timeout = connect_timeout
@@ -572,8 +572,8 @@ module PulpDebClient
572
572
  # Custom attribute writer method with validation
573
573
  # @param [Object] sock_connect_timeout Value to be assigned
574
574
  def sock_connect_timeout=(sock_connect_timeout)
575
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
576
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
575
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
576
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
577
577
  end
578
578
 
579
579
  @sock_connect_timeout = sock_connect_timeout
@@ -582,8 +582,8 @@ module PulpDebClient
582
582
  # Custom attribute writer method with validation
583
583
  # @param [Object] sock_read_timeout Value to be assigned
584
584
  def sock_read_timeout=(sock_read_timeout)
585
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
586
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
585
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
586
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
587
587
  end
588
588
 
589
589
  @sock_read_timeout = sock_read_timeout
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpDebClient
14
- VERSION = '3.3.0'
14
+ VERSION = '3.3.1'
15
15
  end
@@ -41,6 +41,7 @@ describe 'ContentGenericContentsApi' do
41
41
  # @option opts [String] :artifact Artifact file representing the physical content
42
42
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
43
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
44
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
44
45
  # @return [AsyncOperationResponse]
45
46
  describe 'create test' do
46
47
  it 'should work' do
@@ -41,6 +41,7 @@ describe 'ContentInstallerPackagesApi' do
41
41
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
42
42
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
43
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
44
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
44
45
  # @return [AsyncOperationResponse]
45
46
  describe 'create test' do
46
47
  it 'should work' do
@@ -41,6 +41,7 @@ describe 'ContentPackagesApi' do
41
41
  # @option opts [String] :relative_path Path where the artifact is located relative to distributions base_path
42
42
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
43
43
  # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
44
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
44
45
  # @option opts [String] :distribution Name of the distribution.
45
46
  # @option opts [String] :component Name of the component.
46
47
  # @return [AsyncOperationResponse]
@@ -18,7 +18,7 @@ describe PulpDebClient::Configuration do
18
18
  before(:each) do
19
19
  # uncomment below to setup host and base_path
20
20
  # require 'URI'
21
- # uri = URI.parse("http://pulp")
21
+ # uri = URI.parse("http://localhost:24817")
22
22
  # PulpDebClient.configure do |c|
23
23
  # c.host = uri.host
24
24
  # c.base_path = uri.path
@@ -28,14 +28,14 @@ describe PulpDebClient::Configuration do
28
28
  describe '#base_url' do
29
29
  it 'should have the default value' do
30
30
  # uncomment below to test default value of the base path
31
- # expect(config.base_url).to eq("http://pulp")
31
+ # expect(config.base_url).to eq("http://localhost:24817")
32
32
  end
33
33
 
34
34
  it 'should remove trailing slashes' do
35
35
  [nil, '', '/', '//'].each do |base_path|
36
36
  config.base_path = base_path
37
37
  # uncomment below to test trailing slashes
38
- # expect(config.base_url).to eq("http://pulp")
38
+ # expect(config.base_url).to eq("http://localhost:24817")
39
39
  end
40
40
  end
41
41
  end
@@ -62,4 +62,10 @@ describe 'DebGenericContent' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "file_url"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  end
@@ -62,4 +62,10 @@ describe 'DebInstallerPackage' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "file_url"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  end
@@ -62,6 +62,12 @@ describe 'DebPackage' do
62
62
  end
63
63
  end
64
64
 
65
+ describe 'test attribute "file_url"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
65
71
  describe 'test attribute "distribution"' do
66
72
  it 'should work' do
67
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers