pulp_container_client 2.20.3 → 2.20.5

Sign up to get free protection for your applications and to get access to all the features.
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 +10 -10
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  7. data/docs/ContainerContainerPushRepository.md +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  9. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  11. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +53 -53
  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 +53 -53
  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 +51 -51
  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 +44 -44
  23. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +44 -44
  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 +7 -7
  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 +67 -67
@@ -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,11 +15,7 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- # The latest RepositoryVersion for this Repository will be served.
19
- attr_accessor :repository
20
-
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
18
+ attr_accessor :pulp_labels
23
19
 
24
20
  # 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
21
  attr_accessor :base_path
@@ -27,11 +23,15 @@ module PulpContainerClient
27
23
  # An optional content-guard. If none is specified, a default one will be used.
28
24
  attr_accessor :content_guard
29
25
 
30
- attr_accessor :pulp_labels
31
-
32
26
  # Whether this distribution should be shown in the content app.
33
27
  attr_accessor :hidden
34
28
 
29
+ # A unique name. Ex, `rawhide` and `stable`.
30
+ attr_accessor :name
31
+
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
34
+
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
37
37
 
@@ -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
- :'repository' => :'repository',
48
- :'name' => :'name',
47
+ :'pulp_labels' => :'pulp_labels',
49
48
  :'base_path' => :'base_path',
50
49
  :'content_guard' => :'content_guard',
51
- :'pulp_labels' => :'pulp_labels',
52
50
  :'hidden' => :'hidden',
51
+ :'name' => :'name',
52
+ :'repository' => :'repository',
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
- :'repository' => :'String',
63
- :'name' => :'String',
62
+ :'pulp_labels' => :'Hash<String, String>',
64
63
  :'base_path' => :'String',
65
64
  :'content_guard' => :'String',
66
- :'pulp_labels' => :'Hash<String, String>',
67
65
  :'hidden' => :'Boolean',
66
+ :'name' => :'String',
67
+ :'repository' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,12 +95,10 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'repository')
99
- self.repository = attributes[:'repository']
100
- end
101
-
102
- if attributes.key?(:'name')
103
- self.name = attributes[:'name']
98
+ if attributes.key?(:'pulp_labels')
99
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
100
+ self.pulp_labels = value
101
+ end
104
102
  end
105
103
 
106
104
  if attributes.key?(:'base_path')
@@ -111,18 +109,20 @@ module PulpContainerClient
111
109
  self.content_guard = attributes[:'content_guard']
112
110
  end
113
111
 
114
- if attributes.key?(:'pulp_labels')
115
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
116
- self.pulp_labels = value
117
- end
118
- end
119
-
120
112
  if attributes.key?(:'hidden')
121
113
  self.hidden = attributes[:'hidden']
122
114
  else
123
115
  self.hidden = false
124
116
  end
125
117
 
118
+ if attributes.key?(:'name')
119
+ self.name = attributes[:'name']
120
+ end
121
+
122
+ if attributes.key?(:'repository')
123
+ self.repository = attributes[:'repository']
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 !@name.nil? && @name.to_s.length < 1
144
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
145
- end
146
-
147
143
  if !@base_path.nil? && @base_path.to_s.length < 1
148
144
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
149
145
  end
150
146
 
147
+ if !@name.nil? && @name.to_s.length < 1
148
+ invalid_properties.push('invalid value for "name", 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 !@name.nil? && @name.to_s.length < 1
162
161
  return false if !@base_path.nil? && @base_path.to_s.length < 1
162
+ return false if !@name.nil? && @name.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] name Value to be assigned
169
- def name=(name)
170
- if !name.nil? && name.to_s.length < 1
171
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
172
- end
173
-
174
- @name = name
175
- end
176
-
177
167
  # Custom attribute writer method with validation
178
168
  # @param [Object] base_path Value to be assigned
179
169
  def base_path=(base_path)
@@ -184,6 +174,16 @@ module PulpContainerClient
184
174
  @base_path = base_path
185
175
  end
186
176
 
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] name Value to be assigned
179
+ def name=(name)
180
+ if !name.nil? && name.to_s.length < 1
181
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
182
+ end
183
+
184
+ @name = name
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
- repository == o.repository &&
203
- name == o.name &&
202
+ pulp_labels == o.pulp_labels &&
204
203
  base_path == o.base_path &&
205
204
  content_guard == o.content_guard &&
206
- pulp_labels == o.pulp_labels &&
207
205
  hidden == o.hidden &&
206
+ name == o.name &&
207
+ repository == o.repository &&
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
- [repository, name, base_path, content_guard, pulp_labels, hidden, repository_version, private, description].hash
222
+ [pulp_labels, base_path, content_guard, hidden, name, repository, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -15,11 +15,7 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class PatchedcontainerContainerPullThroughDistribution
18
- # The latest RepositoryVersion for this Repository will be served.
19
- attr_accessor :repository
20
-
21
- # A unique name. Ex, `rawhide` and `stable`.
22
- attr_accessor :name
18
+ attr_accessor :pulp_labels
23
19
 
24
20
  # 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
21
  attr_accessor :base_path
@@ -27,11 +23,15 @@ module PulpContainerClient
27
23
  # An optional content-guard. If none is specified, a default one will be used.
28
24
  attr_accessor :content_guard
29
25
 
30
- attr_accessor :pulp_labels
31
-
32
26
  # Whether this distribution should be shown in the content app.
33
27
  attr_accessor :hidden
34
28
 
29
+ # A unique name. Ex, `rawhide` and `stable`.
30
+ attr_accessor :name
31
+
32
+ # The latest RepositoryVersion for this Repository will be served.
33
+ attr_accessor :repository
34
+
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
37
37
 
@@ -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
- :'repository' => :'repository',
51
- :'name' => :'name',
50
+ :'pulp_labels' => :'pulp_labels',
52
51
  :'base_path' => :'base_path',
53
52
  :'content_guard' => :'content_guard',
54
- :'pulp_labels' => :'pulp_labels',
55
53
  :'hidden' => :'hidden',
54
+ :'name' => :'name',
55
+ :'repository' => :'repository',
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
- :'repository' => :'String',
67
- :'name' => :'String',
66
+ :'pulp_labels' => :'Hash<String, String>',
68
67
  :'base_path' => :'String',
69
68
  :'content_guard' => :'String',
70
- :'pulp_labels' => :'Hash<String, String>',
71
69
  :'hidden' => :'Boolean',
70
+ :'name' => :'String',
71
+ :'repository' => :'String',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,12 +99,10 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'repository')
103
- self.repository = attributes[:'repository']
104
- end
105
-
106
- if attributes.key?(:'name')
107
- self.name = attributes[:'name']
102
+ if attributes.key?(:'pulp_labels')
103
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
+ self.pulp_labels = value
105
+ end
108
106
  end
109
107
 
110
108
  if attributes.key?(:'base_path')
@@ -115,18 +113,20 @@ module PulpContainerClient
115
113
  self.content_guard = attributes[:'content_guard']
116
114
  end
117
115
 
118
- if attributes.key?(:'pulp_labels')
119
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
120
- self.pulp_labels = value
121
- end
122
- end
123
-
124
116
  if attributes.key?(:'hidden')
125
117
  self.hidden = attributes[:'hidden']
126
118
  else
127
119
  self.hidden = false
128
120
  end
129
121
 
122
+ if attributes.key?(:'name')
123
+ self.name = attributes[:'name']
124
+ end
125
+
126
+ if attributes.key?(:'repository')
127
+ self.repository = attributes[:'repository']
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 !@name.nil? && @name.to_s.length < 1
154
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
155
- end
156
-
157
153
  if !@base_path.nil? && @base_path.to_s.length < 1
158
154
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
159
155
  end
160
156
 
157
+ if !@name.nil? && @name.to_s.length < 1
158
+ invalid_properties.push('invalid value for "name", 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 !@name.nil? && @name.to_s.length < 1
172
171
  return false if !@base_path.nil? && @base_path.to_s.length < 1
172
+ return false if !@name.nil? && @name.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] name Value to be assigned
179
- def name=(name)
180
- if !name.nil? && name.to_s.length < 1
181
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
182
- end
183
-
184
- @name = name
185
- end
186
-
187
177
  # Custom attribute writer method with validation
188
178
  # @param [Object] base_path Value to be assigned
189
179
  def base_path=(base_path)
@@ -194,6 +184,16 @@ module PulpContainerClient
194
184
  @base_path = base_path
195
185
  end
196
186
 
187
+ # Custom attribute writer method with validation
188
+ # @param [Object] name Value to be assigned
189
+ def name=(name)
190
+ if !name.nil? && name.to_s.length < 1
191
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
192
+ end
193
+
194
+ @name = name
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
- repository == o.repository &&
213
- name == o.name &&
212
+ pulp_labels == o.pulp_labels &&
214
213
  base_path == o.base_path &&
215
214
  content_guard == o.content_guard &&
216
- pulp_labels == o.pulp_labels &&
217
215
  hidden == o.hidden &&
216
+ name == o.name &&
217
+ repository == o.repository &&
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
- [repository, name, base_path, content_guard, pulp_labels, hidden, remote, distributions, private, description].hash
233
+ [pulp_labels, base_path, content_guard, hidden, name, repository, 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