pulp_container_client 2.22.0 → 2.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +5 -5
  4. data/docs/ContainerContainerDistributionResponse.md +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +5 -5
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
  9. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
  11. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +45 -45
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +52 -52
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +45 -45
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +52 -52
  16. data/lib/pulp_container_client/models/container_container_pull_through_remote.rb +20 -20
  17. data/lib/pulp_container_client/models/container_container_pull_through_remote_response.rb +20 -20
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +43 -43
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +50 -50
  20. data/lib/pulp_container_client/models/container_container_remote.rb +20 -20
  21. data/lib/pulp_container_client/models/container_container_remote_response.rb +20 -20
  22. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +36 -36
  23. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +36 -36
  24. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_remote.rb +20 -20
  25. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +43 -43
  26. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +20 -20
  27. data/lib/pulp_container_client/version.rb +1 -1
  28. data/spec/models/container_container_distribution_response_spec.rb +9 -9
  29. data/spec/models/container_container_distribution_spec.rb +5 -5
  30. data/spec/models/container_container_pull_through_distribution_response_spec.rb +9 -9
  31. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  32. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  33. data/spec/models/container_container_push_repository_spec.rb +4 -4
  34. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  35. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  36. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  37. metadata +64 -64
@@ -310,20 +310,20 @@ module PulpContainerClient
310
310
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
311
311
  end
312
312
 
313
- if !@total_timeout.nil? && @total_timeout < 0
314
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
313
+ if !@total_timeout.nil? && @total_timeout < 0.0
314
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
315
315
  end
316
316
 
317
- if !@connect_timeout.nil? && @connect_timeout < 0
318
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
317
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
318
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
319
319
  end
320
320
 
321
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
322
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
321
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
322
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
323
323
  end
324
324
 
325
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
326
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
325
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
326
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
327
327
  end
328
328
 
329
329
  if @upstream_name.nil?
@@ -339,10 +339,10 @@ module PulpContainerClient
339
339
  return false if @name.nil?
340
340
  return false if @url.nil?
341
341
  return false if !@download_concurrency.nil? && @download_concurrency < 1
342
- return false if !@total_timeout.nil? && @total_timeout < 0
343
- return false if !@connect_timeout.nil? && @connect_timeout < 0
344
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
345
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
342
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
343
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
344
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
345
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
346
346
  return false if @upstream_name.nil?
347
347
  true
348
348
  end
@@ -360,8 +360,8 @@ module PulpContainerClient
360
360
  # Custom attribute writer method with validation
361
361
  # @param [Object] total_timeout Value to be assigned
362
362
  def total_timeout=(total_timeout)
363
- if !total_timeout.nil? && total_timeout < 0
364
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
363
+ if !total_timeout.nil? && total_timeout < 0.0
364
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
365
365
  end
366
366
 
367
367
  @total_timeout = total_timeout
@@ -370,8 +370,8 @@ module PulpContainerClient
370
370
  # Custom attribute writer method with validation
371
371
  # @param [Object] connect_timeout Value to be assigned
372
372
  def connect_timeout=(connect_timeout)
373
- if !connect_timeout.nil? && connect_timeout < 0
374
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
373
+ if !connect_timeout.nil? && connect_timeout < 0.0
374
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
375
375
  end
376
376
 
377
377
  @connect_timeout = connect_timeout
@@ -380,8 +380,8 @@ module PulpContainerClient
380
380
  # Custom attribute writer method with validation
381
381
  # @param [Object] sock_connect_timeout Value to be assigned
382
382
  def sock_connect_timeout=(sock_connect_timeout)
383
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
384
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
383
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
384
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
385
385
  end
386
386
 
387
387
  @sock_connect_timeout = sock_connect_timeout
@@ -390,8 +390,8 @@ module PulpContainerClient
390
390
  # Custom attribute writer method with validation
391
391
  # @param [Object] sock_read_timeout Value to be assigned
392
392
  def sock_read_timeout=(sock_read_timeout)
393
- if !sock_read_timeout.nil? && sock_read_timeout < 0
394
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
393
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
394
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
395
395
  end
396
396
 
397
397
  @sock_read_timeout = sock_read_timeout
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
+ # A unique name. Ex, `rawhide` and `stable`.
19
+ attr_accessor :name
20
+
21
+ # The latest RepositoryVersion for this Repository will be served.
22
+ attr_accessor :repository
23
+
18
24
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
25
  attr_accessor :base_path
20
26
 
21
27
  attr_accessor :pulp_labels
22
28
 
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
25
-
26
29
  # An optional content-guard. If none is specified, a default one will be used.
27
30
  attr_accessor :content_guard
28
31
 
29
- # A unique name. Ex, `rawhide` and `stable`.
30
- attr_accessor :name
31
-
32
32
  # Whether this distribution should be shown in the content app.
33
33
  attr_accessor :hidden
34
34
 
@@ -44,11 +44,11 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
+ :'name' => :'name',
48
+ :'repository' => :'repository',
47
49
  :'base_path' => :'base_path',
48
50
  :'pulp_labels' => :'pulp_labels',
49
- :'repository' => :'repository',
50
51
  :'content_guard' => :'content_guard',
51
- :'name' => :'name',
52
52
  :'hidden' => :'hidden',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
@@ -59,11 +59,11 @@ module PulpContainerClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
+ :'name' => :'String',
63
+ :'repository' => :'String',
62
64
  :'base_path' => :'String',
63
65
  :'pulp_labels' => :'Hash<String, String>',
64
- :'repository' => :'String',
65
66
  :'content_guard' => :'String',
66
- :'name' => :'String',
67
67
  :'hidden' => :'Boolean',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
@@ -95,6 +95,14 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
+ if attributes.key?(:'name')
99
+ self.name = attributes[:'name']
100
+ end
101
+
102
+ if attributes.key?(:'repository')
103
+ self.repository = attributes[:'repository']
104
+ end
105
+
98
106
  if attributes.key?(:'base_path')
99
107
  self.base_path = attributes[:'base_path']
100
108
  end
@@ -105,18 +113,10 @@ module PulpContainerClient
105
113
  end
106
114
  end
107
115
 
108
- if attributes.key?(:'repository')
109
- self.repository = attributes[:'repository']
110
- end
111
-
112
116
  if attributes.key?(:'content_guard')
113
117
  self.content_guard = attributes[:'content_guard']
114
118
  end
115
119
 
116
- if attributes.key?(:'name')
117
- self.name = attributes[:'name']
118
- end
119
-
120
120
  if attributes.key?(:'hidden')
121
121
  self.hidden = attributes[:'hidden']
122
122
  else
@@ -140,14 +140,14 @@ module PulpContainerClient
140
140
  # @return Array for valid properties with the reasons
141
141
  def list_invalid_properties
142
142
  invalid_properties = Array.new
143
- if !@base_path.nil? && @base_path.to_s.length < 1
144
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
145
- end
146
-
147
143
  if !@name.nil? && @name.to_s.length < 1
148
144
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
149
145
  end
150
146
 
147
+ if !@base_path.nil? && @base_path.to_s.length < 1
148
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
149
+ end
150
+
151
151
  if !@description.nil? && @description.to_s.length < 1
152
152
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
153
153
  end
@@ -158,22 +158,12 @@ module PulpContainerClient
158
158
  # Check to see if the all the properties in the model are valid
159
159
  # @return true if the model is valid
160
160
  def valid?
161
- return false if !@base_path.nil? && @base_path.to_s.length < 1
162
161
  return false if !@name.nil? && @name.to_s.length < 1
162
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
163
163
  return false if !@description.nil? && @description.to_s.length < 1
164
164
  true
165
165
  end
166
166
 
167
- # Custom attribute writer method with validation
168
- # @param [Object] base_path Value to be assigned
169
- def base_path=(base_path)
170
- if !base_path.nil? && base_path.to_s.length < 1
171
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
172
- end
173
-
174
- @base_path = base_path
175
- end
176
-
177
167
  # Custom attribute writer method with validation
178
168
  # @param [Object] name Value to be assigned
179
169
  def name=(name)
@@ -184,6 +174,16 @@ module PulpContainerClient
184
174
  @name = name
185
175
  end
186
176
 
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] base_path Value to be assigned
179
+ def base_path=(base_path)
180
+ if !base_path.nil? && base_path.to_s.length < 1
181
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
182
+ end
183
+
184
+ @base_path = base_path
185
+ end
186
+
187
187
  # Custom attribute writer method with validation
188
188
  # @param [Object] description Value to be assigned
189
189
  def description=(description)
@@ -199,11 +199,11 @@ module PulpContainerClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
+ name == o.name &&
203
+ repository == o.repository &&
202
204
  base_path == o.base_path &&
203
205
  pulp_labels == o.pulp_labels &&
204
- repository == o.repository &&
205
206
  content_guard == o.content_guard &&
206
- name == o.name &&
207
207
  hidden == o.hidden &&
208
208
  repository_version == o.repository_version &&
209
209
  private == o.private &&
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  # Calculates hash code according to all attributes.
220
220
  # @return [Integer] Hash code
221
221
  def hash
222
- [base_path, pulp_labels, repository, content_guard, name, hidden, repository_version, private, description].hash
222
+ [name, repository, base_path, pulp_labels, content_guard, hidden, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class PatchedcontainerContainerPullThroughDistribution
18
+ # A unique name. Ex, `rawhide` and `stable`.
19
+ attr_accessor :name
20
+
21
+ # The latest RepositoryVersion for this Repository will be served.
22
+ attr_accessor :repository
23
+
18
24
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
19
25
  attr_accessor :base_path
20
26
 
21
27
  attr_accessor :pulp_labels
22
28
 
23
- # The latest RepositoryVersion for this Repository will be served.
24
- attr_accessor :repository
25
-
26
29
  # An optional content-guard. If none is specified, a default one will be used.
27
30
  attr_accessor :content_guard
28
31
 
29
- # A unique name. Ex, `rawhide` and `stable`.
30
- attr_accessor :name
31
-
32
32
  # Whether this distribution should be shown in the content app.
33
33
  attr_accessor :hidden
34
34
 
@@ -47,11 +47,11 @@ module PulpContainerClient
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
+ :'name' => :'name',
51
+ :'repository' => :'repository',
50
52
  :'base_path' => :'base_path',
51
53
  :'pulp_labels' => :'pulp_labels',
52
- :'repository' => :'repository',
53
54
  :'content_guard' => :'content_guard',
54
- :'name' => :'name',
55
55
  :'hidden' => :'hidden',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
@@ -63,11 +63,11 @@ module PulpContainerClient
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
+ :'name' => :'String',
67
+ :'repository' => :'String',
66
68
  :'base_path' => :'String',
67
69
  :'pulp_labels' => :'Hash<String, String>',
68
- :'repository' => :'String',
69
70
  :'content_guard' => :'String',
70
- :'name' => :'String',
71
71
  :'hidden' => :'Boolean',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
@@ -99,6 +99,14 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
+ if attributes.key?(:'name')
103
+ self.name = attributes[:'name']
104
+ end
105
+
106
+ if attributes.key?(:'repository')
107
+ self.repository = attributes[:'repository']
108
+ end
109
+
102
110
  if attributes.key?(:'base_path')
103
111
  self.base_path = attributes[:'base_path']
104
112
  end
@@ -109,18 +117,10 @@ module PulpContainerClient
109
117
  end
110
118
  end
111
119
 
112
- if attributes.key?(:'repository')
113
- self.repository = attributes[:'repository']
114
- end
115
-
116
120
  if attributes.key?(:'content_guard')
117
121
  self.content_guard = attributes[:'content_guard']
118
122
  end
119
123
 
120
- if attributes.key?(:'name')
121
- self.name = attributes[:'name']
122
- end
123
-
124
124
  if attributes.key?(:'hidden')
125
125
  self.hidden = attributes[:'hidden']
126
126
  else
@@ -150,14 +150,14 @@ module PulpContainerClient
150
150
  # @return Array for valid properties with the reasons
151
151
  def list_invalid_properties
152
152
  invalid_properties = Array.new
153
- if !@base_path.nil? && @base_path.to_s.length < 1
154
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
155
- end
156
-
157
153
  if !@name.nil? && @name.to_s.length < 1
158
154
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
159
155
  end
160
156
 
157
+ if !@base_path.nil? && @base_path.to_s.length < 1
158
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
159
+ end
160
+
161
161
  if !@description.nil? && @description.to_s.length < 1
162
162
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
163
163
  end
@@ -168,22 +168,12 @@ module PulpContainerClient
168
168
  # Check to see if the all the properties in the model are valid
169
169
  # @return true if the model is valid
170
170
  def valid?
171
- return false if !@base_path.nil? && @base_path.to_s.length < 1
172
171
  return false if !@name.nil? && @name.to_s.length < 1
172
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
173
173
  return false if !@description.nil? && @description.to_s.length < 1
174
174
  true
175
175
  end
176
176
 
177
- # Custom attribute writer method with validation
178
- # @param [Object] base_path Value to be assigned
179
- def base_path=(base_path)
180
- if !base_path.nil? && base_path.to_s.length < 1
181
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
182
- end
183
-
184
- @base_path = base_path
185
- end
186
-
187
177
  # Custom attribute writer method with validation
188
178
  # @param [Object] name Value to be assigned
189
179
  def name=(name)
@@ -194,6 +184,16 @@ module PulpContainerClient
194
184
  @name = name
195
185
  end
196
186
 
187
+ # Custom attribute writer method with validation
188
+ # @param [Object] base_path Value to be assigned
189
+ def base_path=(base_path)
190
+ if !base_path.nil? && base_path.to_s.length < 1
191
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
192
+ end
193
+
194
+ @base_path = base_path
195
+ end
196
+
197
197
  # Custom attribute writer method with validation
198
198
  # @param [Object] description Value to be assigned
199
199
  def description=(description)
@@ -209,11 +209,11 @@ module PulpContainerClient
209
209
  def ==(o)
210
210
  return true if self.equal?(o)
211
211
  self.class == o.class &&
212
+ name == o.name &&
213
+ repository == o.repository &&
212
214
  base_path == o.base_path &&
213
215
  pulp_labels == o.pulp_labels &&
214
- repository == o.repository &&
215
216
  content_guard == o.content_guard &&
216
- name == o.name &&
217
217
  hidden == o.hidden &&
218
218
  remote == o.remote &&
219
219
  distributions == o.distributions &&
@@ -230,7 +230,7 @@ module PulpContainerClient
230
230
  # Calculates hash code according to all attributes.
231
231
  # @return [Integer] Hash code
232
232
  def hash
233
- [base_path, pulp_labels, repository, content_guard, name, hidden, remote, distributions, private, description].hash
233
+ [name, repository, base_path, pulp_labels, content_guard, hidden, remote, distributions, private, description].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash
@@ -327,20 +327,20 @@ module PulpContainerClient
327
327
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
328
328
  end
329
329
 
330
- if !@total_timeout.nil? && @total_timeout < 0
331
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
330
+ if !@total_timeout.nil? && @total_timeout < 0.0
331
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
332
332
  end
333
333
 
334
- if !@connect_timeout.nil? && @connect_timeout < 0
335
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
334
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
335
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
336
336
  end
337
337
 
338
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
339
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
338
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
339
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
340
340
  end
341
341
 
342
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
343
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
342
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
343
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
344
344
  end
345
345
 
346
346
  invalid_properties
@@ -360,10 +360,10 @@ module PulpContainerClient
360
360
  return false if !@username.nil? && @username.to_s.length < 1
361
361
  return false if !@password.nil? && @password.to_s.length < 1
362
362
  return false if !@download_concurrency.nil? && @download_concurrency < 1
363
- return false if !@total_timeout.nil? && @total_timeout < 0
364
- return false if !@connect_timeout.nil? && @connect_timeout < 0
365
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
366
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
363
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
364
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
365
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
366
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
367
367
  true
368
368
  end
369
369
 
@@ -480,8 +480,8 @@ module PulpContainerClient
480
480
  # Custom attribute writer method with validation
481
481
  # @param [Object] total_timeout Value to be assigned
482
482
  def total_timeout=(total_timeout)
483
- if !total_timeout.nil? && total_timeout < 0
484
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
483
+ if !total_timeout.nil? && total_timeout < 0.0
484
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
485
485
  end
486
486
 
487
487
  @total_timeout = total_timeout
@@ -490,8 +490,8 @@ module PulpContainerClient
490
490
  # Custom attribute writer method with validation
491
491
  # @param [Object] connect_timeout Value to be assigned
492
492
  def connect_timeout=(connect_timeout)
493
- if !connect_timeout.nil? && connect_timeout < 0
494
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
493
+ if !connect_timeout.nil? && connect_timeout < 0.0
494
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
495
495
  end
496
496
 
497
497
  @connect_timeout = connect_timeout
@@ -500,8 +500,8 @@ module PulpContainerClient
500
500
  # Custom attribute writer method with validation
501
501
  # @param [Object] sock_connect_timeout Value to be assigned
502
502
  def sock_connect_timeout=(sock_connect_timeout)
503
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
504
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
503
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
504
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
505
505
  end
506
506
 
507
507
  @sock_connect_timeout = sock_connect_timeout
@@ -510,8 +510,8 @@ module PulpContainerClient
510
510
  # Custom attribute writer method with validation
511
511
  # @param [Object] sock_read_timeout Value to be assigned
512
512
  def sock_read_timeout=(sock_read_timeout)
513
- if !sock_read_timeout.nil? && sock_read_timeout < 0
514
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
513
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
514
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
515
515
  end
516
516
 
517
517
  @sock_read_timeout = sock_read_timeout