pulp_ansible_client 0.22.11 → 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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleAnsibleDistribution.md +3 -5
  4. data/docs/AnsibleAnsibleDistributionResponse.md +4 -12
  5. data/docs/AnsibleCollectionVersion.md +5 -5
  6. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  7. data/docs/AnsibleGitRemote.md +28 -28
  8. data/docs/AnsibleGitRemoteResponse.md +26 -26
  9. data/docs/AnsibleRole.md +3 -3
  10. data/docs/AnsibleRoleResponse.md +2 -2
  11. data/docs/ContentCollectionVersionsApi.md +6 -8
  12. data/docs/PatchedansibleAnsibleDistribution.md +3 -5
  13. data/docs/PatchedansibleGitRemote.md +28 -28
  14. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -4
  15. data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -4
  16. data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -4
  17. data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -4
  18. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -12
  19. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -6
  20. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -6
  21. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  22. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -6
  23. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -6
  24. data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
  25. data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +16 -28
  26. data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +20 -62
  27. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
  28. data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
  29. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  30. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  31. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
  32. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
  33. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +233 -233
  34. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +154 -154
  35. data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
  36. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  37. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  38. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  39. data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +16 -28
  40. data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +3 -3
  41. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  42. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +218 -218
  43. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  44. data/lib/pulp_ansible_client/version.rb +1 -1
  45. data/spec/api/content_collection_versions_api_spec.rb +3 -4
  46. data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -2
  47. data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -2
  48. data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -2
  49. data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -2
  50. data/spec/models/ansible_ansible_distribution_response_spec.rb +4 -28
  51. data/spec/models/ansible_ansible_distribution_spec.rb +4 -10
  52. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  53. data/spec/models/ansible_collection_version_spec.rb +5 -5
  54. data/spec/models/ansible_git_remote_response_spec.rb +18 -18
  55. data/spec/models/ansible_git_remote_spec.rb +18 -18
  56. data/spec/models/ansible_role_response_spec.rb +3 -3
  57. data/spec/models/ansible_role_spec.rb +2 -2
  58. data/spec/models/patchedansible_ansible_distribution_spec.rb +4 -10
  59. data/spec/models/patchedansible_git_remote_spec.rb +18 -18
  60. metadata +131 -131
@@ -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
@@ -21,14 +21,14 @@ module PulpAnsibleClient
21
21
  # Artifact file representing the physical content
22
22
  attr_accessor :artifact
23
23
 
24
+ attr_accessor :pulp_href
25
+
24
26
  # Timestamp of creation.
25
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
@@ -40,9 +40,9 @@ module PulpAnsibleClient
40
40
  {
41
41
  :'prn' => :'prn',
42
42
  :'artifact' => :'artifact',
43
+ :'pulp_href' => :'pulp_href',
43
44
  :'pulp_created' => :'pulp_created',
44
45
  :'pulp_last_updated' => :'pulp_last_updated',
45
- :'pulp_href' => :'pulp_href',
46
46
  :'version' => :'version',
47
47
  :'name' => :'name',
48
48
  :'namespace' => :'namespace'
@@ -54,9 +54,9 @@ module PulpAnsibleClient
54
54
  {
55
55
  :'prn' => :'String',
56
56
  :'artifact' => :'String',
57
+ :'pulp_href' => :'String',
57
58
  :'pulp_created' => :'DateTime',
58
59
  :'pulp_last_updated' => :'DateTime',
59
- :'pulp_href' => :'String',
60
60
  :'version' => :'String',
61
61
  :'name' => :'String',
62
62
  :'namespace' => :'String'
@@ -92,6 +92,10 @@ module PulpAnsibleClient
92
92
  self.artifact = attributes[:'artifact']
93
93
  end
94
94
 
95
+ if attributes.key?(:'pulp_href')
96
+ self.pulp_href = attributes[:'pulp_href']
97
+ end
98
+
95
99
  if attributes.key?(:'pulp_created')
96
100
  self.pulp_created = attributes[:'pulp_created']
97
101
  end
@@ -100,10 +104,6 @@ module PulpAnsibleClient
100
104
  self.pulp_last_updated = attributes[:'pulp_last_updated']
101
105
  end
102
106
 
103
- if attributes.key?(:'pulp_href')
104
- self.pulp_href = attributes[:'pulp_href']
105
- end
106
-
107
107
  if attributes.key?(:'version')
108
108
  self.version = attributes[:'version']
109
109
  end
@@ -157,9 +157,9 @@ module PulpAnsibleClient
157
157
  self.class == o.class &&
158
158
  prn == o.prn &&
159
159
  artifact == o.artifact &&
160
+ pulp_href == o.pulp_href &&
160
161
  pulp_created == o.pulp_created &&
161
162
  pulp_last_updated == o.pulp_last_updated &&
162
- pulp_href == o.pulp_href &&
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
- [prn, artifact, pulp_created, 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
@@ -21,11 +21,6 @@ module PulpAnsibleClient
21
21
  # An optional content-guard.
22
22
  attr_accessor :content_guard
23
23
 
24
- # Whether this distribution should be shown in the content app.
25
- attr_accessor :hidden
26
-
27
- attr_accessor :pulp_labels
28
-
29
24
  # A unique name. Ex, `rawhide` and `stable`.
30
25
  attr_accessor :name
31
26
 
@@ -35,16 +30,17 @@ module PulpAnsibleClient
35
30
  # RepositoryVersion to be served
36
31
  attr_accessor :repository_version
37
32
 
33
+ attr_accessor :pulp_labels
34
+
38
35
  # Attribute mapping from ruby-style variable name to JSON key.
39
36
  def self.attribute_map
40
37
  {
41
38
  :'base_path' => :'base_path',
42
39
  :'content_guard' => :'content_guard',
43
- :'hidden' => :'hidden',
44
- :'pulp_labels' => :'pulp_labels',
45
40
  :'name' => :'name',
46
41
  :'repository' => :'repository',
47
- :'repository_version' => :'repository_version'
42
+ :'repository_version' => :'repository_version',
43
+ :'pulp_labels' => :'pulp_labels'
48
44
  }
49
45
  end
50
46
 
@@ -53,11 +49,10 @@ module PulpAnsibleClient
53
49
  {
54
50
  :'base_path' => :'String',
55
51
  :'content_guard' => :'String',
56
- :'hidden' => :'Boolean',
57
- :'pulp_labels' => :'Hash<String, String>',
58
52
  :'name' => :'String',
59
53
  :'repository' => :'String',
60
- :'repository_version' => :'String'
54
+ :'repository_version' => :'String',
55
+ :'pulp_labels' => :'Hash<String, String>'
61
56
  }
62
57
  end
63
58
 
@@ -66,7 +61,7 @@ module PulpAnsibleClient
66
61
  Set.new([
67
62
  :'content_guard',
68
63
  :'repository',
69
- :'repository_version'
64
+ :'repository_version',
70
65
  ])
71
66
  end
72
67
 
@@ -93,18 +88,6 @@ module PulpAnsibleClient
93
88
  self.content_guard = attributes[:'content_guard']
94
89
  end
95
90
 
96
- if attributes.key?(:'hidden')
97
- self.hidden = attributes[:'hidden']
98
- else
99
- self.hidden = false
100
- end
101
-
102
- if attributes.key?(:'pulp_labels')
103
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
- self.pulp_labels = value
105
- end
106
- end
107
-
108
91
  if attributes.key?(:'name')
109
92
  self.name = attributes[:'name']
110
93
  end
@@ -116,6 +99,12 @@ module PulpAnsibleClient
116
99
  if attributes.key?(:'repository_version')
117
100
  self.repository_version = attributes[:'repository_version']
118
101
  end
102
+
103
+ if attributes.key?(:'pulp_labels')
104
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
105
+ self.pulp_labels = value
106
+ end
107
+ end
119
108
  end
120
109
 
121
110
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -168,11 +157,10 @@ module PulpAnsibleClient
168
157
  self.class == o.class &&
169
158
  base_path == o.base_path &&
170
159
  content_guard == o.content_guard &&
171
- hidden == o.hidden &&
172
- pulp_labels == o.pulp_labels &&
173
160
  name == o.name &&
174
161
  repository == o.repository &&
175
- repository_version == o.repository_version
162
+ repository_version == o.repository_version &&
163
+ pulp_labels == o.pulp_labels
176
164
  end
177
165
 
178
166
  # @see the `==` method
@@ -184,7 +172,7 @@ module PulpAnsibleClient
184
172
  # Calculates hash code according to all attributes.
185
173
  # @return [Integer] Hash code
186
174
  def hash
187
- [base_path, content_guard, hidden, pulp_labels, name, repository, repository_version].hash
175
+ [base_path, content_guard, name, repository, repository_version, pulp_labels].hash
188
176
  end
189
177
 
190
178
  # Builds the object from hash
@@ -126,7 +126,7 @@ module PulpAnsibleClient
126
126
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
127
127
  end
128
128
 
129
- pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
129
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
130
130
  if !@name.nil? && @name !~ pattern
131
131
  invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
132
132
  end
@@ -151,7 +151,7 @@ module PulpAnsibleClient
151
151
  def valid?
152
152
  return false if !@name.nil? && @name.to_s.length > 64
153
153
  return false if !@name.nil? && @name.to_s.length < 3
154
- return false if !@name.nil? && @name !~ Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
154
+ return false if !@name.nil? && @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
155
155
  return false if !@company.nil? && @company.to_s.length > 64
156
156
  return false if !@email.nil? && @email.to_s.length > 256
157
157
  return false if !@description.nil? && @description.to_s.length > 256
@@ -169,7 +169,7 @@ module PulpAnsibleClient
169
169
  fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
170
170
  end
171
171
 
172
- pattern = Regexp.new(/^(?!.*__)[a-z][0-9a-z_]*$/)
172
+ pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
173
173
  if !name.nil? && name !~ pattern
174
174
  fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
175
175
  end
@@ -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