pulp_container_client 2.20.4 → 2.20.6

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 +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +12 -12
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
  7. data/docs/ContainerContainerPushRepository.md +4 -4
  8. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  9. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  11. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +54 -54
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +54 -54
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +54 -54
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +54 -54
  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 +35 -35
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +47 -47
  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 +45 -45
  23. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +45 -45
  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 +35 -35
  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 +6 -6
  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 +6 -6
  32. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  33. data/spec/models/container_container_push_repository_spec.rb +3 -3
  34. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  35. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  36. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  37. metadata +65 -65
@@ -301,20 +301,20 @@ module PulpContainerClient
301
301
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
302
302
  end
303
303
 
304
- if !@total_timeout.nil? && @total_timeout < 0
305
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
304
+ if !@total_timeout.nil? && @total_timeout < 0.0
305
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
306
  end
307
307
 
308
- if !@connect_timeout.nil? && @connect_timeout < 0
309
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
308
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
309
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
310
310
  end
311
311
 
312
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
313
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
312
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
313
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
314
314
  end
315
315
 
316
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
317
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
316
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
317
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
318
318
  end
319
319
 
320
320
  if @upstream_name.nil?
@@ -330,10 +330,10 @@ module PulpContainerClient
330
330
  return false if @name.nil?
331
331
  return false if @url.nil?
332
332
  return false if !@download_concurrency.nil? && @download_concurrency < 1
333
- return false if !@total_timeout.nil? && @total_timeout < 0
334
- return false if !@connect_timeout.nil? && @connect_timeout < 0
335
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
336
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
333
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
334
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
335
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
336
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
337
337
  return false if @upstream_name.nil?
338
338
  true
339
339
  end
@@ -351,8 +351,8 @@ module PulpContainerClient
351
351
  # Custom attribute writer method with validation
352
352
  # @param [Object] total_timeout Value to be assigned
353
353
  def total_timeout=(total_timeout)
354
- if !total_timeout.nil? && total_timeout < 0
355
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
354
+ if !total_timeout.nil? && total_timeout < 0.0
355
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
356
356
  end
357
357
 
358
358
  @total_timeout = total_timeout
@@ -361,8 +361,8 @@ module PulpContainerClient
361
361
  # Custom attribute writer method with validation
362
362
  # @param [Object] connect_timeout Value to be assigned
363
363
  def connect_timeout=(connect_timeout)
364
- if !connect_timeout.nil? && connect_timeout < 0
365
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
364
+ if !connect_timeout.nil? && connect_timeout < 0.0
365
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
366
366
  end
367
367
 
368
368
  @connect_timeout = connect_timeout
@@ -371,8 +371,8 @@ module PulpContainerClient
371
371
  # Custom attribute writer method with validation
372
372
  # @param [Object] sock_connect_timeout Value to be assigned
373
373
  def sock_connect_timeout=(sock_connect_timeout)
374
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
375
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
374
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
375
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
376
376
  end
377
377
 
378
378
  @sock_connect_timeout = sock_connect_timeout
@@ -381,8 +381,8 @@ module PulpContainerClient
381
381
  # Custom attribute writer method with validation
382
382
  # @param [Object] sock_read_timeout Value to be assigned
383
383
  def sock_read_timeout=(sock_read_timeout)
384
- if !sock_read_timeout.nil? && sock_read_timeout < 0
385
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
384
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
385
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
386
386
  end
387
387
 
388
388
  @sock_read_timeout = sock_read_timeout
@@ -15,8 +15,11 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- # Whether this distribution should be shown in the content app.
19
- attr_accessor :hidden
18
+ # An optional content-guard. If none is specified, a default one will be used.
19
+ attr_accessor :content_guard
20
+
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
20
23
 
21
24
  # The latest RepositoryVersion for this Repository will be served.
22
25
  attr_accessor :repository
@@ -24,13 +27,10 @@ module PulpContainerClient
24
27
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
28
  attr_accessor :base_path
26
29
 
27
- attr_accessor :pulp_labels
28
-
29
- # A unique name. Ex, `rawhide` and `stable`.
30
- attr_accessor :name
30
+ # Whether this distribution should be shown in the content app.
31
+ attr_accessor :hidden
31
32
 
32
- # An optional content-guard. If none is specified, a default one will be used.
33
- attr_accessor :content_guard
33
+ attr_accessor :pulp_labels
34
34
 
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
@@ -44,12 +44,12 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'hidden' => :'hidden',
47
+ :'content_guard' => :'content_guard',
48
+ :'name' => :'name',
48
49
  :'repository' => :'repository',
49
50
  :'base_path' => :'base_path',
51
+ :'hidden' => :'hidden',
50
52
  :'pulp_labels' => :'pulp_labels',
51
- :'name' => :'name',
52
- :'content_guard' => :'content_guard',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -59,12 +59,12 @@ module PulpContainerClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'hidden' => :'Boolean',
62
+ :'content_guard' => :'String',
63
+ :'name' => :'String',
63
64
  :'repository' => :'String',
64
65
  :'base_path' => :'String',
66
+ :'hidden' => :'Boolean',
65
67
  :'pulp_labels' => :'Hash<String, String>',
66
- :'name' => :'String',
67
- :'content_guard' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,10 +95,12 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'hidden')
99
- self.hidden = attributes[:'hidden']
100
- else
101
- self.hidden = false
98
+ if attributes.key?(:'content_guard')
99
+ self.content_guard = attributes[:'content_guard']
100
+ end
101
+
102
+ if attributes.key?(:'name')
103
+ self.name = attributes[:'name']
102
104
  end
103
105
 
104
106
  if attributes.key?(:'repository')
@@ -109,20 +111,18 @@ module PulpContainerClient
109
111
  self.base_path = attributes[:'base_path']
110
112
  end
111
113
 
114
+ if attributes.key?(:'hidden')
115
+ self.hidden = attributes[:'hidden']
116
+ else
117
+ self.hidden = false
118
+ end
119
+
112
120
  if attributes.key?(:'pulp_labels')
113
121
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
122
  self.pulp_labels = value
115
123
  end
116
124
  end
117
125
 
118
- if attributes.key?(:'name')
119
- self.name = attributes[:'name']
120
- end
121
-
122
- if attributes.key?(:'content_guard')
123
- self.content_guard = attributes[:'content_guard']
124
- end
125
-
126
126
  if attributes.key?(:'repository_version')
127
127
  self.repository_version = attributes[:'repository_version']
128
128
  end
@@ -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,12 +199,12 @@ module PulpContainerClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
- hidden == o.hidden &&
202
+ content_guard == o.content_guard &&
203
+ name == o.name &&
203
204
  repository == o.repository &&
204
205
  base_path == o.base_path &&
206
+ hidden == o.hidden &&
205
207
  pulp_labels == o.pulp_labels &&
206
- name == o.name &&
207
- content_guard == o.content_guard &&
208
208
  repository_version == o.repository_version &&
209
209
  private == o.private &&
210
210
  description == o.description
@@ -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
- [hidden, repository, base_path, pulp_labels, name, content_guard, repository_version, private, description].hash
222
+ [content_guard, name, repository, base_path, hidden, pulp_labels, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -15,8 +15,11 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class PatchedcontainerContainerPullThroughDistribution
18
- # Whether this distribution should be shown in the content app.
19
- attr_accessor :hidden
18
+ # An optional content-guard. If none is specified, a default one will be used.
19
+ attr_accessor :content_guard
20
+
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
20
23
 
21
24
  # The latest RepositoryVersion for this Repository will be served.
22
25
  attr_accessor :repository
@@ -24,13 +27,10 @@ module PulpContainerClient
24
27
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
28
  attr_accessor :base_path
26
29
 
27
- attr_accessor :pulp_labels
28
-
29
- # A unique name. Ex, `rawhide` and `stable`.
30
- attr_accessor :name
30
+ # Whether this distribution should be shown in the content app.
31
+ attr_accessor :hidden
31
32
 
32
- # An optional content-guard. If none is specified, a default one will be used.
33
- attr_accessor :content_guard
33
+ attr_accessor :pulp_labels
34
34
 
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
@@ -47,12 +47,12 @@ module PulpContainerClient
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
- :'hidden' => :'hidden',
50
+ :'content_guard' => :'content_guard',
51
+ :'name' => :'name',
51
52
  :'repository' => :'repository',
52
53
  :'base_path' => :'base_path',
54
+ :'hidden' => :'hidden',
53
55
  :'pulp_labels' => :'pulp_labels',
54
- :'name' => :'name',
55
- :'content_guard' => :'content_guard',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
58
58
  :'private' => :'private',
@@ -63,12 +63,12 @@ module PulpContainerClient
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'hidden' => :'Boolean',
66
+ :'content_guard' => :'String',
67
+ :'name' => :'String',
67
68
  :'repository' => :'String',
68
69
  :'base_path' => :'String',
70
+ :'hidden' => :'Boolean',
69
71
  :'pulp_labels' => :'Hash<String, String>',
70
- :'name' => :'String',
71
- :'content_guard' => :'String',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,10 +99,12 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'hidden')
103
- self.hidden = attributes[:'hidden']
104
- else
105
- self.hidden = false
102
+ if attributes.key?(:'content_guard')
103
+ self.content_guard = attributes[:'content_guard']
104
+ end
105
+
106
+ if attributes.key?(:'name')
107
+ self.name = attributes[:'name']
106
108
  end
107
109
 
108
110
  if attributes.key?(:'repository')
@@ -113,20 +115,18 @@ module PulpContainerClient
113
115
  self.base_path = attributes[:'base_path']
114
116
  end
115
117
 
118
+ if attributes.key?(:'hidden')
119
+ self.hidden = attributes[:'hidden']
120
+ else
121
+ self.hidden = false
122
+ end
123
+
116
124
  if attributes.key?(:'pulp_labels')
117
125
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
126
  self.pulp_labels = value
119
127
  end
120
128
  end
121
129
 
122
- if attributes.key?(:'name')
123
- self.name = attributes[:'name']
124
- end
125
-
126
- if attributes.key?(:'content_guard')
127
- self.content_guard = attributes[:'content_guard']
128
- end
129
-
130
130
  if attributes.key?(:'remote')
131
131
  self.remote = attributes[:'remote']
132
132
  end
@@ -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,12 +209,12 @@ module PulpContainerClient
209
209
  def ==(o)
210
210
  return true if self.equal?(o)
211
211
  self.class == o.class &&
212
- hidden == o.hidden &&
212
+ content_guard == o.content_guard &&
213
+ name == o.name &&
213
214
  repository == o.repository &&
214
215
  base_path == o.base_path &&
216
+ hidden == o.hidden &&
215
217
  pulp_labels == o.pulp_labels &&
216
- name == o.name &&
217
- content_guard == o.content_guard &&
218
218
  remote == o.remote &&
219
219
  distributions == o.distributions &&
220
220
  private == o.private &&
@@ -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
- [hidden, repository, base_path, pulp_labels, name, content_guard, remote, distributions, private, description].hash
233
+ [content_guard, name, repository, base_path, hidden, pulp_labels, remote, distributions, private, description].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash
@@ -303,20 +303,20 @@ module PulpContainerClient
303
303
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
304
304
  end
305
305
 
306
- if !@total_timeout.nil? && @total_timeout < 0
307
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
306
+ if !@total_timeout.nil? && @total_timeout < 0.0
307
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
308
308
  end
309
309
 
310
- if !@connect_timeout.nil? && @connect_timeout < 0
311
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
310
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
311
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
312
312
  end
313
313
 
314
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
315
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
314
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
315
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
316
316
  end
317
317
 
318
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
319
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
318
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
319
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
320
320
  end
321
321
 
322
322
  invalid_properties
@@ -336,10 +336,10 @@ module PulpContainerClient
336
336
  return false if !@username.nil? && @username.to_s.length < 1
337
337
  return false if !@password.nil? && @password.to_s.length < 1
338
338
  return false if !@download_concurrency.nil? && @download_concurrency < 1
339
- return false if !@total_timeout.nil? && @total_timeout < 0
340
- return false if !@connect_timeout.nil? && @connect_timeout < 0
341
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
342
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
339
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
340
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
341
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
342
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
343
343
  true
344
344
  end
345
345
 
@@ -456,8 +456,8 @@ module PulpContainerClient
456
456
  # Custom attribute writer method with validation
457
457
  # @param [Object] total_timeout Value to be assigned
458
458
  def total_timeout=(total_timeout)
459
- if !total_timeout.nil? && total_timeout < 0
460
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
459
+ if !total_timeout.nil? && total_timeout < 0.0
460
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
461
461
  end
462
462
 
463
463
  @total_timeout = total_timeout
@@ -466,8 +466,8 @@ module PulpContainerClient
466
466
  # Custom attribute writer method with validation
467
467
  # @param [Object] connect_timeout Value to be assigned
468
468
  def connect_timeout=(connect_timeout)
469
- if !connect_timeout.nil? && connect_timeout < 0
470
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
469
+ if !connect_timeout.nil? && connect_timeout < 0.0
470
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
471
471
  end
472
472
 
473
473
  @connect_timeout = connect_timeout
@@ -476,8 +476,8 @@ module PulpContainerClient
476
476
  # Custom attribute writer method with validation
477
477
  # @param [Object] sock_connect_timeout Value to be assigned
478
478
  def sock_connect_timeout=(sock_connect_timeout)
479
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
480
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
479
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
480
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
481
481
  end
482
482
 
483
483
  @sock_connect_timeout = sock_connect_timeout
@@ -486,8 +486,8 @@ module PulpContainerClient
486
486
  # Custom attribute writer method with validation
487
487
  # @param [Object] sock_read_timeout Value to be assigned
488
488
  def sock_read_timeout=(sock_read_timeout)
489
- if !sock_read_timeout.nil? && sock_read_timeout < 0
490
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
489
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
490
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
491
491
  end
492
492
 
493
493
  @sock_read_timeout = sock_read_timeout