pulp_ansible_client 0.22.2 → 0.22.4

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 (31) 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 +2 -2
  5. data/docs/AnsibleGitRemote.md +27 -27
  6. data/docs/AnsibleGitRemoteResponse.md +26 -26
  7. data/docs/AnsibleRoleResponse.md +2 -2
  8. data/docs/ContentCollectionVersionsApi.md +4 -4
  9. data/docs/PatchedansibleGitRemote.md +27 -27
  10. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  11. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  12. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  13. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +15 -15
  14. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  15. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +212 -212
  16. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +154 -154
  17. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  18. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  19. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  20. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  21. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +212 -212
  22. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  23. data/lib/pulp_ansible_client/version.rb +1 -1
  24. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  25. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  26. data/spec/models/ansible_collection_version_spec.rb +2 -2
  27. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  28. data/spec/models/ansible_git_remote_spec.rb +19 -19
  29. data/spec/models/ansible_role_response_spec.rb +2 -2
  30. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  31. metadata +132 -132
@@ -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
272
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
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.')
273
273
  end
274
274
 
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.')
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.')
277
277
  end
278
278
 
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.')
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.')
281
281
  end
282
282
 
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.')
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.')
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
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
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
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
317
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
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.'
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
327
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
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.'
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
337
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
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.'
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
347
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
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.'
348
348
  end
349
349
 
350
350
  @sock_read_timeout = sock_read_timeout
@@ -18,12 +18,12 @@ module PulpAnsibleClient
18
18
  # Timestamp of creation.
19
19
  attr_accessor :pulp_created
20
20
 
21
- # The Pulp Resource Name (PRN).
22
- attr_accessor :prn
23
-
24
21
  # Artifact file representing the physical content
25
22
  attr_accessor :artifact
26
23
 
24
+ # The Pulp Resource Name (PRN).
25
+ attr_accessor :prn
26
+
27
27
  # 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
28
  attr_accessor :pulp_last_updated
29
29
 
@@ -39,8 +39,8 @@ module PulpAnsibleClient
39
39
  def self.attribute_map
40
40
  {
41
41
  :'pulp_created' => :'pulp_created',
42
- :'prn' => :'prn',
43
42
  :'artifact' => :'artifact',
43
+ :'prn' => :'prn',
44
44
  :'pulp_last_updated' => :'pulp_last_updated',
45
45
  :'pulp_href' => :'pulp_href',
46
46
  :'version' => :'version',
@@ -53,8 +53,8 @@ module PulpAnsibleClient
53
53
  def self.openapi_types
54
54
  {
55
55
  :'pulp_created' => :'DateTime',
56
- :'prn' => :'String',
57
56
  :'artifact' => :'String',
57
+ :'prn' => :'String',
58
58
  :'pulp_last_updated' => :'DateTime',
59
59
  :'pulp_href' => :'String',
60
60
  :'version' => :'String',
@@ -88,14 +88,14 @@ module PulpAnsibleClient
88
88
  self.pulp_created = attributes[:'pulp_created']
89
89
  end
90
90
 
91
- if attributes.key?(:'prn')
92
- self.prn = attributes[:'prn']
93
- end
94
-
95
91
  if attributes.key?(:'artifact')
96
92
  self.artifact = attributes[:'artifact']
97
93
  end
98
94
 
95
+ if attributes.key?(:'prn')
96
+ self.prn = attributes[:'prn']
97
+ end
98
+
99
99
  if attributes.key?(:'pulp_last_updated')
100
100
  self.pulp_last_updated = attributes[:'pulp_last_updated']
101
101
  end
@@ -156,8 +156,8 @@ module PulpAnsibleClient
156
156
  return true if self.equal?(o)
157
157
  self.class == o.class &&
158
158
  pulp_created == o.pulp_created &&
159
- prn == o.prn &&
160
159
  artifact == o.artifact &&
160
+ prn == o.prn &&
161
161
  pulp_last_updated == o.pulp_last_updated &&
162
162
  pulp_href == o.pulp_href &&
163
163
  version == o.version &&
@@ -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, prn, artifact, pulp_last_updated, pulp_href, version, name, namespace].hash
177
+ [pulp_created, artifact, prn, pulp_last_updated, pulp_href, 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
360
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
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.')
361
361
  end
362
362
 
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.')
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.')
365
365
  end
366
366
 
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.')
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.')
369
369
  end
370
370
 
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.')
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.')
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
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
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
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
538
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
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.'
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
548
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
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.'
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
558
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
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.'
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
568
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
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.'
569
569
  end
570
570
 
571
571
  @sock_read_timeout = sock_read_timeout