pulp_ansible_client 0.22.4 → 0.23.0

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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +4 -4
  4. data/docs/AnsibleCollectionVersionResponse.md +6 -6
  5. data/docs/AnsibleGitRemote.md +29 -29
  6. data/docs/AnsibleGitRemoteResponse.md +26 -26
  7. data/docs/AnsibleRole.md +3 -3
  8. data/docs/AnsibleRoleResponse.md +6 -6
  9. data/docs/ContentCollectionVersionsApi.md +6 -8
  10. data/docs/PatchedansibleGitRemote.md +29 -29
  11. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -4
  12. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -4
  13. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -4
  14. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -4
  15. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -12
  16. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -6
  17. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -6
  18. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -6
  19. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -6
  20. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  21. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  22. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  23. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +24 -24
  24. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +239 -239
  25. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +154 -154
  26. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  27. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  28. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  29. data/lib/pulp_ansible_client/models/ansible_role_response.rb +24 -24
  30. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  31. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +239 -239
  32. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  33. data/lib/pulp_ansible_client/version.rb +1 -1
  34. data/spec/api/content_collection_versions_api_spec.rb +3 -4
  35. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -2
  36. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -2
  37. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -2
  38. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -2
  39. data/spec/models/ansible_collection_version_response_spec.rb +4 -4
  40. data/spec/models/ansible_collection_version_spec.rb +3 -3
  41. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  42. data/spec/models/ansible_git_remote_spec.rb +19 -19
  43. data/spec/models/ansible_role_response_spec.rb +4 -4
  44. data/spec/models/ansible_role_spec.rb +2 -2
  45. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  46. metadata +132 -132
@@ -312,20 +312,20 @@ module PulpAnsibleClient
312
312
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
313
313
  end
314
314
 
315
- if !@total_timeout.nil? && @total_timeout < 0.0
316
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
315
+ if !@total_timeout.nil? && @total_timeout < 0
316
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
317
317
  end
318
318
 
319
- if !@connect_timeout.nil? && @connect_timeout < 0.0
320
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
319
+ if !@connect_timeout.nil? && @connect_timeout < 0
320
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
321
321
  end
322
322
 
323
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
324
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
323
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
324
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
325
325
  end
326
326
 
327
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
328
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
327
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
328
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
329
329
  end
330
330
 
331
331
  invalid_properties
@@ -347,10 +347,10 @@ module PulpAnsibleClient
347
347
  return false if !@username.nil? && @username.to_s.length < 1
348
348
  return false if !@password.nil? && @password.to_s.length < 1
349
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
350
- return false if !@total_timeout.nil? && @total_timeout < 0.0
351
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
352
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
353
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
350
+ return false if !@total_timeout.nil? && @total_timeout < 0
351
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
352
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
353
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
354
354
  true
355
355
  end
356
356
 
@@ -475,8 +475,8 @@ module PulpAnsibleClient
475
475
  # Custom attribute writer method with validation
476
476
  # @param [Object] total_timeout Value to be assigned
477
477
  def total_timeout=(total_timeout)
478
- if !total_timeout.nil? && total_timeout < 0.0
479
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
478
+ if !total_timeout.nil? && total_timeout < 0
479
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
480
480
  end
481
481
 
482
482
  @total_timeout = total_timeout
@@ -485,8 +485,8 @@ module PulpAnsibleClient
485
485
  # Custom attribute writer method with validation
486
486
  # @param [Object] connect_timeout Value to be assigned
487
487
  def connect_timeout=(connect_timeout)
488
- if !connect_timeout.nil? && connect_timeout < 0.0
489
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
488
+ if !connect_timeout.nil? && connect_timeout < 0
489
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
490
490
  end
491
491
 
492
492
  @connect_timeout = connect_timeout
@@ -495,8 +495,8 @@ module PulpAnsibleClient
495
495
  # Custom attribute writer method with validation
496
496
  # @param [Object] sock_connect_timeout Value to be assigned
497
497
  def sock_connect_timeout=(sock_connect_timeout)
498
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
499
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
498
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
499
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
500
500
  end
501
501
 
502
502
  @sock_connect_timeout = sock_connect_timeout
@@ -505,8 +505,8 @@ module PulpAnsibleClient
505
505
  # Custom attribute writer method with validation
506
506
  # @param [Object] sock_read_timeout Value to be assigned
507
507
  def sock_read_timeout=(sock_read_timeout)
508
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
509
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
508
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
509
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
510
510
  end
511
511
 
512
512
  @sock_read_timeout = sock_read_timeout
@@ -268,20 +268,20 @@ module PulpAnsibleClient
268
268
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
269
269
  end
270
270
 
271
- if !@total_timeout.nil? && @total_timeout < 0.0
272
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
271
+ if !@total_timeout.nil? && @total_timeout < 0
272
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
273
273
  end
274
274
 
275
- if !@connect_timeout.nil? && @connect_timeout < 0.0
276
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
275
+ if !@connect_timeout.nil? && @connect_timeout < 0
276
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
277
277
  end
278
278
 
279
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
280
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
279
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
280
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
281
281
  end
282
282
 
283
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
284
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
283
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
284
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
285
285
  end
286
286
 
287
287
  invalid_properties
@@ -293,10 +293,10 @@ module PulpAnsibleClient
293
293
  return false if @name.nil?
294
294
  return false if @url.nil?
295
295
  return false if !@download_concurrency.nil? && @download_concurrency < 1
296
- return false if !@total_timeout.nil? && @total_timeout < 0.0
297
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
298
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
296
+ return false if !@total_timeout.nil? && @total_timeout < 0
297
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
298
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
299
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
300
300
  true
301
301
  end
302
302
 
@@ -313,8 +313,8 @@ module PulpAnsibleClient
313
313
  # Custom attribute writer method with validation
314
314
  # @param [Object] total_timeout Value to be assigned
315
315
  def total_timeout=(total_timeout)
316
- if !total_timeout.nil? && total_timeout < 0.0
317
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
316
+ if !total_timeout.nil? && total_timeout < 0
317
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
318
318
  end
319
319
 
320
320
  @total_timeout = total_timeout
@@ -323,8 +323,8 @@ module PulpAnsibleClient
323
323
  # Custom attribute writer method with validation
324
324
  # @param [Object] connect_timeout Value to be assigned
325
325
  def connect_timeout=(connect_timeout)
326
- if !connect_timeout.nil? && connect_timeout < 0.0
327
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
326
+ if !connect_timeout.nil? && connect_timeout < 0
327
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
328
328
  end
329
329
 
330
330
  @connect_timeout = connect_timeout
@@ -333,8 +333,8 @@ module PulpAnsibleClient
333
333
  # Custom attribute writer method with validation
334
334
  # @param [Object] sock_connect_timeout Value to be assigned
335
335
  def sock_connect_timeout=(sock_connect_timeout)
336
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
337
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
336
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
337
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
338
338
  end
339
339
 
340
340
  @sock_connect_timeout = sock_connect_timeout
@@ -343,8 +343,8 @@ module PulpAnsibleClient
343
343
  # Custom attribute writer method with validation
344
344
  # @param [Object] sock_read_timeout Value to be assigned
345
345
  def sock_read_timeout=(sock_read_timeout)
346
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
347
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
346
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
347
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
348
348
  end
349
349
 
350
350
  @sock_read_timeout = sock_read_timeout
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
18
+ # The Pulp Resource Name (PRN).
19
+ attr_accessor :prn
20
20
 
21
21
  # Artifact file representing the physical content
22
22
  attr_accessor :artifact
23
23
 
24
- # The Pulp Resource Name (PRN).
25
- attr_accessor :prn
24
+ attr_accessor :pulp_href
25
+
26
+ # Timestamp of creation.
27
+ attr_accessor :pulp_created
26
28
 
27
29
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
28
30
  attr_accessor :pulp_last_updated
29
31
 
30
- attr_accessor :pulp_href
31
-
32
32
  attr_accessor :version
33
33
 
34
34
  attr_accessor :name
@@ -38,11 +38,11 @@ module PulpAnsibleClient
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'pulp_created' => :'pulp_created',
42
- :'artifact' => :'artifact',
43
41
  :'prn' => :'prn',
44
- :'pulp_last_updated' => :'pulp_last_updated',
42
+ :'artifact' => :'artifact',
45
43
  :'pulp_href' => :'pulp_href',
44
+ :'pulp_created' => :'pulp_created',
45
+ :'pulp_last_updated' => :'pulp_last_updated',
46
46
  :'version' => :'version',
47
47
  :'name' => :'name',
48
48
  :'namespace' => :'namespace'
@@ -52,11 +52,11 @@ module PulpAnsibleClient
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'pulp_created' => :'DateTime',
56
- :'artifact' => :'String',
57
55
  :'prn' => :'String',
58
- :'pulp_last_updated' => :'DateTime',
56
+ :'artifact' => :'String',
59
57
  :'pulp_href' => :'String',
58
+ :'pulp_created' => :'DateTime',
59
+ :'pulp_last_updated' => :'DateTime',
60
60
  :'version' => :'String',
61
61
  :'name' => :'String',
62
62
  :'namespace' => :'String'
@@ -84,24 +84,24 @@ module PulpAnsibleClient
84
84
  h[k.to_sym] = v
85
85
  }
86
86
 
87
- if attributes.key?(:'pulp_created')
88
- self.pulp_created = attributes[:'pulp_created']
87
+ if attributes.key?(:'prn')
88
+ self.prn = attributes[:'prn']
89
89
  end
90
90
 
91
91
  if attributes.key?(:'artifact')
92
92
  self.artifact = attributes[:'artifact']
93
93
  end
94
94
 
95
- if attributes.key?(:'prn')
96
- self.prn = attributes[:'prn']
95
+ if attributes.key?(:'pulp_href')
96
+ self.pulp_href = attributes[:'pulp_href']
97
97
  end
98
98
 
99
- if attributes.key?(:'pulp_last_updated')
100
- self.pulp_last_updated = attributes[:'pulp_last_updated']
99
+ if attributes.key?(:'pulp_created')
100
+ self.pulp_created = attributes[:'pulp_created']
101
101
  end
102
102
 
103
- if attributes.key?(:'pulp_href')
104
- self.pulp_href = attributes[:'pulp_href']
103
+ if attributes.key?(:'pulp_last_updated')
104
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
105
105
  end
106
106
 
107
107
  if attributes.key?(:'version')
@@ -155,11 +155,11 @@ module PulpAnsibleClient
155
155
  def ==(o)
156
156
  return true if self.equal?(o)
157
157
  self.class == o.class &&
158
- pulp_created == o.pulp_created &&
159
- artifact == o.artifact &&
160
158
  prn == o.prn &&
161
- pulp_last_updated == o.pulp_last_updated &&
159
+ artifact == o.artifact &&
162
160
  pulp_href == o.pulp_href &&
161
+ pulp_created == o.pulp_created &&
162
+ pulp_last_updated == o.pulp_last_updated &&
163
163
  version == o.version &&
164
164
  name == o.name &&
165
165
  namespace == o.namespace
@@ -174,7 +174,7 @@ module PulpAnsibleClient
174
174
  # Calculates hash code according to all attributes.
175
175
  # @return [Integer] Hash code
176
176
  def hash
177
- [pulp_created, artifact, prn, pulp_last_updated, pulp_href, version, name, namespace].hash
177
+ [prn, artifact, pulp_href, pulp_created, pulp_last_updated, version, name, namespace].hash
178
178
  end
179
179
 
180
180
  # Builds the object from hash
@@ -356,20 +356,20 @@ module PulpAnsibleClient
356
356
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
357
357
  end
358
358
 
359
- if !@total_timeout.nil? && @total_timeout < 0.0
360
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
359
+ if !@total_timeout.nil? && @total_timeout < 0
360
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
361
361
  end
362
362
 
363
- if !@connect_timeout.nil? && @connect_timeout < 0.0
364
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
363
+ if !@connect_timeout.nil? && @connect_timeout < 0
364
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
365
365
  end
366
366
 
367
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
368
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
367
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
368
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
369
369
  end
370
370
 
371
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
372
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
371
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0
372
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
373
373
  end
374
374
 
375
375
  if !@requirements_file.nil? && @requirements_file.to_s.length < 1
@@ -409,10 +409,10 @@ module PulpAnsibleClient
409
409
  return false if !@username.nil? && @username.to_s.length < 1
410
410
  return false if !@password.nil? && @password.to_s.length < 1
411
411
  return false if !@download_concurrency.nil? && @download_concurrency < 1
412
- return false if !@total_timeout.nil? && @total_timeout < 0.0
413
- return false if !@connect_timeout.nil? && @connect_timeout < 0.0
414
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
415
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
412
+ return false if !@total_timeout.nil? && @total_timeout < 0
413
+ return false if !@connect_timeout.nil? && @connect_timeout < 0
414
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
415
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
416
416
  return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
417
417
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
418
418
  return false if !@auth_url.nil? && @auth_url.to_s.length < 1
@@ -534,8 +534,8 @@ module PulpAnsibleClient
534
534
  # Custom attribute writer method with validation
535
535
  # @param [Object] total_timeout Value to be assigned
536
536
  def total_timeout=(total_timeout)
537
- if !total_timeout.nil? && total_timeout < 0.0
538
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
537
+ if !total_timeout.nil? && total_timeout < 0
538
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
539
539
  end
540
540
 
541
541
  @total_timeout = total_timeout
@@ -544,8 +544,8 @@ module PulpAnsibleClient
544
544
  # Custom attribute writer method with validation
545
545
  # @param [Object] connect_timeout Value to be assigned
546
546
  def connect_timeout=(connect_timeout)
547
- if !connect_timeout.nil? && connect_timeout < 0.0
548
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
547
+ if !connect_timeout.nil? && connect_timeout < 0
548
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
549
549
  end
550
550
 
551
551
  @connect_timeout = connect_timeout
@@ -554,8 +554,8 @@ module PulpAnsibleClient
554
554
  # Custom attribute writer method with validation
555
555
  # @param [Object] sock_connect_timeout Value to be assigned
556
556
  def sock_connect_timeout=(sock_connect_timeout)
557
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
558
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
557
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0
558
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
559
559
  end
560
560
 
561
561
  @sock_connect_timeout = sock_connect_timeout
@@ -564,8 +564,8 @@ module PulpAnsibleClient
564
564
  # Custom attribute writer method with validation
565
565
  # @param [Object] sock_read_timeout Value to be assigned
566
566
  def sock_read_timeout=(sock_read_timeout)
567
- if !sock_read_timeout.nil? && sock_read_timeout < 0.0
568
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
567
+ if !sock_read_timeout.nil? && sock_read_timeout < 0
568
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
569
569
  end
570
570
 
571
571
  @sock_read_timeout = sock_read_timeout