pulp_ansible_client 0.22.3 → 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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +5 -5
  4. data/docs/AnsibleCollectionVersionResponse.md +5 -5
  5. data/docs/AnsibleGitRemote.md +28 -28
  6. data/docs/AnsibleGitRemoteResponse.md +28 -28
  7. data/docs/AnsibleRole.md +3 -3
  8. data/docs/AnsibleRoleResponse.md +5 -5
  9. data/docs/ContentCollectionVersionsApi.md +4 -4
  10. data/docs/PatchedansibleGitRemote.md +28 -28
  11. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  12. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  13. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  14. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  15. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +21 -21
  16. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +237 -237
  17. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +145 -145
  18. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  19. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  20. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  21. data/lib/pulp_ansible_client/models/ansible_role_response.rb +21 -21
  22. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  23. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +228 -228
  24. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  25. data/lib/pulp_ansible_client/version.rb +1 -1
  26. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  27. data/spec/models/ansible_collection_version_response_spec.rb +5 -5
  28. data/spec/models/ansible_collection_version_spec.rb +5 -5
  29. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  30. data/spec/models/ansible_git_remote_spec.rb +20 -20
  31. data/spec/models/ansible_role_response_spec.rb +5 -5
  32. data/spec/models/ansible_role_spec.rb +2 -2
  33. data/spec/models/patchedansible_git_remote_spec.rb +20 -20
  34. 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
@@ -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
20
+
18
21
  # Artifact file representing the physical content
19
22
  attr_accessor :artifact
20
23
 
24
+ # The Pulp Resource Name (PRN).
25
+ attr_accessor :prn
26
+
21
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.
22
28
  attr_accessor :pulp_last_updated
23
29
 
24
- # Timestamp of creation.
25
- attr_accessor :pulp_created
26
-
27
30
  attr_accessor :pulp_href
28
31
 
29
- # The Pulp Resource Name (PRN).
30
- attr_accessor :prn
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',
41
42
  :'artifact' => :'artifact',
43
+ :'prn' => :'prn',
42
44
  :'pulp_last_updated' => :'pulp_last_updated',
43
- :'pulp_created' => :'pulp_created',
44
45
  :'pulp_href' => :'pulp_href',
45
- :'prn' => :'prn',
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',
55
56
  :'artifact' => :'String',
57
+ :'prn' => :'String',
56
58
  :'pulp_last_updated' => :'DateTime',
57
- :'pulp_created' => :'DateTime',
58
59
  :'pulp_href' => :'String',
59
- :'prn' => :'String',
60
60
  :'version' => :'String',
61
61
  :'name' => :'String',
62
62
  :'namespace' => :'String'
@@ -84,26 +84,26 @@ 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']
89
+ end
90
+
87
91
  if attributes.key?(:'artifact')
88
92
  self.artifact = attributes[:'artifact']
89
93
  end
90
94
 
91
- if attributes.key?(:'pulp_last_updated')
92
- self.pulp_last_updated = attributes[:'pulp_last_updated']
95
+ if attributes.key?(:'prn')
96
+ self.prn = attributes[:'prn']
93
97
  end
94
98
 
95
- if attributes.key?(:'pulp_created')
96
- self.pulp_created = attributes[:'pulp_created']
99
+ if attributes.key?(:'pulp_last_updated')
100
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
97
101
  end
98
102
 
99
103
  if attributes.key?(:'pulp_href')
100
104
  self.pulp_href = attributes[:'pulp_href']
101
105
  end
102
106
 
103
- if attributes.key?(:'prn')
104
- self.prn = attributes[:'prn']
105
- end
106
-
107
107
  if attributes.key?(:'version')
108
108
  self.version = attributes[:'version']
109
109
  end
@@ -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 &&
158
159
  artifact == o.artifact &&
160
+ prn == o.prn &&
159
161
  pulp_last_updated == o.pulp_last_updated &&
160
- pulp_created == o.pulp_created &&
161
162
  pulp_href == o.pulp_href &&
162
- prn == o.prn &&
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
- [artifact, pulp_last_updated, pulp_created, pulp_href, prn, 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