pulp_ansible_client 0.16.5 → 0.16.7

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 (28) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionVersion.md +4 -4
  4. data/docs/AnsibleGitRemote.md +22 -22
  5. data/docs/AnsibleGitRemoteResponse.md +22 -22
  6. data/docs/AnsibleRoleResponse.md +3 -3
  7. data/docs/ContentCollectionVersionsApi.md +4 -4
  8. data/docs/PatchedansibleGitRemote.md +22 -22
  9. data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
  10. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
  11. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
  12. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
  13. data/lib/pulp_ansible_client/models/ansible_git_remote.rb +212 -212
  14. data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +138 -138
  15. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
  16. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
  17. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  18. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
  19. data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +201 -201
  20. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
  21. data/lib/pulp_ansible_client/version.rb +1 -1
  22. data/spec/api/content_collection_versions_api_spec.rb +2 -2
  23. data/spec/models/ansible_collection_version_spec.rb +3 -3
  24. data/spec/models/ansible_git_remote_response_spec.rb +19 -19
  25. data/spec/models/ansible_git_remote_spec.rb +19 -19
  26. data/spec/models/ansible_role_response_spec.rb +2 -2
  27. data/spec/models/patchedansible_git_remote_spec.rb +19 -19
  28. metadata +107 -107
@@ -15,32 +15,25 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Git Collection Remotes.
17
17
  class AnsibleGitRemoteResponse
18
- # A unique name for this remote.
19
- attr_accessor :name
20
-
21
- # If True, TLS peer validation must be performed.
22
- attr_accessor :tls_validation
23
-
24
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
25
- attr_accessor :connect_timeout
26
-
27
- # List of hidden (write only) fields
28
- attr_accessor :hidden_fields
18
+ attr_accessor :pulp_href
29
19
 
30
20
  # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
31
21
  attr_accessor :max_retries
32
22
 
33
- # The URL of an external content source.
34
- attr_accessor :url
23
+ # Total number of simultaneous connections. If not set then the default value will be used.
24
+ attr_accessor :download_concurrency
35
25
 
36
- # Timestamp of creation.
37
- attr_accessor :pulp_created
26
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
27
+ attr_accessor :connect_timeout
38
28
 
39
- # Timestamp of the most recent update of the remote.
40
- attr_accessor :pulp_last_updated
29
+ # A PEM encoded client certificate used for authentication.
30
+ attr_accessor :client_cert
41
31
 
42
- # Total number of simultaneous connections. If not set then the default value will be used.
43
- attr_accessor :download_concurrency
32
+ # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
33
+ attr_accessor :ca_cert
34
+
35
+ # If True, TLS peer validation must be performed.
36
+ attr_accessor :tls_validation
44
37
 
45
38
  # Limits requests per second for each concurrent downloader
46
39
  attr_accessor :rate_limit
@@ -48,21 +41,23 @@ module PulpAnsibleClient
48
41
  # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
49
42
  attr_accessor :total_timeout
50
43
 
51
- # A PEM encoded client certificate used for authentication.
52
- attr_accessor :client_cert
53
-
54
44
  # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
55
45
  attr_accessor :sock_connect_timeout
56
46
 
57
- # The proxy URL. Format: scheme://host:port
58
- attr_accessor :proxy_url
47
+ # List of hidden (write only) fields
48
+ attr_accessor :hidden_fields
59
49
 
60
- attr_accessor :pulp_href
50
+ # Timestamp of creation.
51
+ attr_accessor :pulp_created
61
52
 
62
- attr_accessor :pulp_labels
53
+ # A unique name for this remote.
54
+ attr_accessor :name
63
55
 
64
- # A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
65
- attr_accessor :ca_cert
56
+ # The URL of an external content source.
57
+ attr_accessor :url
58
+
59
+ # The proxy URL. Format: scheme://host:port
60
+ attr_accessor :proxy_url
66
61
 
67
62
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
68
63
  attr_accessor :sock_read_timeout
@@ -70,6 +65,11 @@ module PulpAnsibleClient
70
65
  # Headers for aiohttp.Clientsession
71
66
  attr_accessor :headers
72
67
 
68
+ attr_accessor :pulp_labels
69
+
70
+ # Timestamp of the most recent update of the remote.
71
+ attr_accessor :pulp_last_updated
72
+
73
73
  # If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
74
74
  attr_accessor :metadata_only
75
75
 
@@ -79,25 +79,25 @@ module PulpAnsibleClient
79
79
  # Attribute mapping from ruby-style variable name to JSON key.
80
80
  def self.attribute_map
81
81
  {
82
- :'name' => :'name',
83
- :'tls_validation' => :'tls_validation',
84
- :'connect_timeout' => :'connect_timeout',
85
- :'hidden_fields' => :'hidden_fields',
82
+ :'pulp_href' => :'pulp_href',
86
83
  :'max_retries' => :'max_retries',
87
- :'url' => :'url',
88
- :'pulp_created' => :'pulp_created',
89
- :'pulp_last_updated' => :'pulp_last_updated',
90
84
  :'download_concurrency' => :'download_concurrency',
85
+ :'connect_timeout' => :'connect_timeout',
86
+ :'client_cert' => :'client_cert',
87
+ :'ca_cert' => :'ca_cert',
88
+ :'tls_validation' => :'tls_validation',
91
89
  :'rate_limit' => :'rate_limit',
92
90
  :'total_timeout' => :'total_timeout',
93
- :'client_cert' => :'client_cert',
94
91
  :'sock_connect_timeout' => :'sock_connect_timeout',
92
+ :'hidden_fields' => :'hidden_fields',
93
+ :'pulp_created' => :'pulp_created',
94
+ :'name' => :'name',
95
+ :'url' => :'url',
95
96
  :'proxy_url' => :'proxy_url',
96
- :'pulp_href' => :'pulp_href',
97
- :'pulp_labels' => :'pulp_labels',
98
- :'ca_cert' => :'ca_cert',
99
97
  :'sock_read_timeout' => :'sock_read_timeout',
100
98
  :'headers' => :'headers',
99
+ :'pulp_labels' => :'pulp_labels',
100
+ :'pulp_last_updated' => :'pulp_last_updated',
101
101
  :'metadata_only' => :'metadata_only',
102
102
  :'git_ref' => :'git_ref'
103
103
  }
@@ -106,25 +106,25 @@ module PulpAnsibleClient
106
106
  # Attribute type mapping.
107
107
  def self.openapi_types
108
108
  {
109
- :'name' => :'String',
110
- :'tls_validation' => :'Boolean',
111
- :'connect_timeout' => :'Float',
112
- :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
109
+ :'pulp_href' => :'String',
113
110
  :'max_retries' => :'Integer',
114
- :'url' => :'String',
115
- :'pulp_created' => :'DateTime',
116
- :'pulp_last_updated' => :'DateTime',
117
111
  :'download_concurrency' => :'Integer',
112
+ :'connect_timeout' => :'Float',
113
+ :'client_cert' => :'String',
114
+ :'ca_cert' => :'String',
115
+ :'tls_validation' => :'Boolean',
118
116
  :'rate_limit' => :'Integer',
119
117
  :'total_timeout' => :'Float',
120
- :'client_cert' => :'String',
121
118
  :'sock_connect_timeout' => :'Float',
119
+ :'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
120
+ :'pulp_created' => :'DateTime',
121
+ :'name' => :'String',
122
+ :'url' => :'String',
122
123
  :'proxy_url' => :'String',
123
- :'pulp_href' => :'String',
124
- :'pulp_labels' => :'Hash<String, String>',
125
- :'ca_cert' => :'String',
126
124
  :'sock_read_timeout' => :'Float',
127
125
  :'headers' => :'Array<Object>',
126
+ :'pulp_labels' => :'Hash<String, String>',
127
+ :'pulp_last_updated' => :'DateTime',
128
128
  :'metadata_only' => :'Boolean',
129
129
  :'git_ref' => :'String'
130
130
  }
@@ -133,15 +133,15 @@ module PulpAnsibleClient
133
133
  # List of attributes with nullable: true
134
134
  def self.openapi_nullable
135
135
  Set.new([
136
- :'connect_timeout',
137
136
  :'max_retries',
138
137
  :'download_concurrency',
138
+ :'connect_timeout',
139
+ :'client_cert',
140
+ :'ca_cert',
139
141
  :'rate_limit',
140
142
  :'total_timeout',
141
- :'client_cert',
142
143
  :'sock_connect_timeout',
143
144
  :'proxy_url',
144
- :'ca_cert',
145
145
  :'sock_read_timeout',
146
146
  ])
147
147
  end
@@ -161,42 +161,32 @@ module PulpAnsibleClient
161
161
  h[k.to_sym] = v
162
162
  }
163
163
 
164
- if attributes.key?(:'name')
165
- self.name = attributes[:'name']
166
- end
167
-
168
- if attributes.key?(:'tls_validation')
169
- self.tls_validation = attributes[:'tls_validation']
170
- end
171
-
172
- if attributes.key?(:'connect_timeout')
173
- self.connect_timeout = attributes[:'connect_timeout']
174
- end
175
-
176
- if attributes.key?(:'hidden_fields')
177
- if (value = attributes[:'hidden_fields']).is_a?(Array)
178
- self.hidden_fields = value
179
- end
164
+ if attributes.key?(:'pulp_href')
165
+ self.pulp_href = attributes[:'pulp_href']
180
166
  end
181
167
 
182
168
  if attributes.key?(:'max_retries')
183
169
  self.max_retries = attributes[:'max_retries']
184
170
  end
185
171
 
186
- if attributes.key?(:'url')
187
- self.url = attributes[:'url']
172
+ if attributes.key?(:'download_concurrency')
173
+ self.download_concurrency = attributes[:'download_concurrency']
188
174
  end
189
175
 
190
- if attributes.key?(:'pulp_created')
191
- self.pulp_created = attributes[:'pulp_created']
176
+ if attributes.key?(:'connect_timeout')
177
+ self.connect_timeout = attributes[:'connect_timeout']
192
178
  end
193
179
 
194
- if attributes.key?(:'pulp_last_updated')
195
- self.pulp_last_updated = attributes[:'pulp_last_updated']
180
+ if attributes.key?(:'client_cert')
181
+ self.client_cert = attributes[:'client_cert']
196
182
  end
197
183
 
198
- if attributes.key?(:'download_concurrency')
199
- self.download_concurrency = attributes[:'download_concurrency']
184
+ if attributes.key?(:'ca_cert')
185
+ self.ca_cert = attributes[:'ca_cert']
186
+ end
187
+
188
+ if attributes.key?(:'tls_validation')
189
+ self.tls_validation = attributes[:'tls_validation']
200
190
  end
201
191
 
202
192
  if attributes.key?(:'rate_limit')
@@ -207,30 +197,30 @@ module PulpAnsibleClient
207
197
  self.total_timeout = attributes[:'total_timeout']
208
198
  end
209
199
 
210
- if attributes.key?(:'client_cert')
211
- self.client_cert = attributes[:'client_cert']
212
- end
213
-
214
200
  if attributes.key?(:'sock_connect_timeout')
215
201
  self.sock_connect_timeout = attributes[:'sock_connect_timeout']
216
202
  end
217
203
 
218
- if attributes.key?(:'proxy_url')
219
- self.proxy_url = attributes[:'proxy_url']
204
+ if attributes.key?(:'hidden_fields')
205
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
206
+ self.hidden_fields = value
207
+ end
220
208
  end
221
209
 
222
- if attributes.key?(:'pulp_href')
223
- self.pulp_href = attributes[:'pulp_href']
210
+ if attributes.key?(:'pulp_created')
211
+ self.pulp_created = attributes[:'pulp_created']
224
212
  end
225
213
 
226
- if attributes.key?(:'pulp_labels')
227
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
228
- self.pulp_labels = value
229
- end
214
+ if attributes.key?(:'name')
215
+ self.name = attributes[:'name']
230
216
  end
231
217
 
232
- if attributes.key?(:'ca_cert')
233
- self.ca_cert = attributes[:'ca_cert']
218
+ if attributes.key?(:'url')
219
+ self.url = attributes[:'url']
220
+ end
221
+
222
+ if attributes.key?(:'proxy_url')
223
+ self.proxy_url = attributes[:'proxy_url']
234
224
  end
235
225
 
236
226
  if attributes.key?(:'sock_read_timeout')
@@ -243,6 +233,16 @@ module PulpAnsibleClient
243
233
  end
244
234
  end
245
235
 
236
+ if attributes.key?(:'pulp_labels')
237
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
238
+ self.pulp_labels = value
239
+ end
240
+ end
241
+
242
+ if attributes.key?(:'pulp_last_updated')
243
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
244
+ end
245
+
246
246
  if attributes.key?(:'metadata_only')
247
247
  self.metadata_only = attributes[:'metadata_only']
248
248
  end
@@ -256,32 +256,32 @@ module PulpAnsibleClient
256
256
  # @return Array for valid properties with the reasons
257
257
  def list_invalid_properties
258
258
  invalid_properties = Array.new
259
- if @name.nil?
260
- invalid_properties.push('invalid value for "name", name cannot be nil.')
259
+ if !@download_concurrency.nil? && @download_concurrency < 1
260
+ invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
261
261
  end
262
262
 
263
- if !@connect_timeout.nil? && @connect_timeout < 0
264
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
263
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
264
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
265
265
  end
266
266
 
267
- if @url.nil?
268
- invalid_properties.push('invalid value for "url", url cannot be nil.')
267
+ if !@total_timeout.nil? && @total_timeout < 0.0
268
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
269
269
  end
270
270
 
271
- if !@download_concurrency.nil? && @download_concurrency < 1
272
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
271
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
272
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
273
273
  end
274
274
 
275
- if !@total_timeout.nil? && @total_timeout < 0
276
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
275
+ if @name.nil?
276
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
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 @url.nil?
280
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
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
@@ -290,26 +290,16 @@ module PulpAnsibleClient
290
290
  # Check to see if the all the properties in the model are valid
291
291
  # @return true if the model is valid
292
292
  def valid?
293
+ return false if !@download_concurrency.nil? && @download_concurrency < 1
294
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
295
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
296
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
293
297
  return false if @name.nil?
294
- return false if !@connect_timeout.nil? && @connect_timeout < 0
295
298
  return false if @url.nil?
296
- return false if !@download_concurrency.nil? && @download_concurrency < 1
297
- return false if !@total_timeout.nil? && @total_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
299
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
300
300
  true
301
301
  end
302
302
 
303
- # Custom attribute writer method with validation
304
- # @param [Object] connect_timeout Value to be assigned
305
- def connect_timeout=(connect_timeout)
306
- if !connect_timeout.nil? && connect_timeout < 0
307
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
308
- end
309
-
310
- @connect_timeout = connect_timeout
311
- end
312
-
313
303
  # Custom attribute writer method with validation
314
304
  # @param [Object] download_concurrency Value to be assigned
315
305
  def download_concurrency=(download_concurrency)
@@ -320,11 +310,21 @@ module PulpAnsibleClient
320
310
  @download_concurrency = download_concurrency
321
311
  end
322
312
 
313
+ # Custom attribute writer method with validation
314
+ # @param [Object] connect_timeout Value to be assigned
315
+ def connect_timeout=(connect_timeout)
316
+ if !connect_timeout.nil? && connect_timeout < 0.0
317
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
318
+ end
319
+
320
+ @connect_timeout = connect_timeout
321
+ end
322
+
323
323
  # Custom attribute writer method with validation
324
324
  # @param [Object] total_timeout Value to be assigned
325
325
  def total_timeout=(total_timeout)
326
- if !total_timeout.nil? && total_timeout < 0
327
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
326
+ if !total_timeout.nil? && total_timeout < 0.0
327
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
328
328
  end
329
329
 
330
330
  @total_timeout = total_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
@@ -355,25 +355,25 @@ module PulpAnsibleClient
355
355
  def ==(o)
356
356
  return true if self.equal?(o)
357
357
  self.class == o.class &&
358
- name == o.name &&
359
- tls_validation == o.tls_validation &&
360
- connect_timeout == o.connect_timeout &&
361
- hidden_fields == o.hidden_fields &&
358
+ pulp_href == o.pulp_href &&
362
359
  max_retries == o.max_retries &&
363
- url == o.url &&
364
- pulp_created == o.pulp_created &&
365
- pulp_last_updated == o.pulp_last_updated &&
366
360
  download_concurrency == o.download_concurrency &&
361
+ connect_timeout == o.connect_timeout &&
362
+ client_cert == o.client_cert &&
363
+ ca_cert == o.ca_cert &&
364
+ tls_validation == o.tls_validation &&
367
365
  rate_limit == o.rate_limit &&
368
366
  total_timeout == o.total_timeout &&
369
- client_cert == o.client_cert &&
370
367
  sock_connect_timeout == o.sock_connect_timeout &&
368
+ hidden_fields == o.hidden_fields &&
369
+ pulp_created == o.pulp_created &&
370
+ name == o.name &&
371
+ url == o.url &&
371
372
  proxy_url == o.proxy_url &&
372
- pulp_href == o.pulp_href &&
373
- pulp_labels == o.pulp_labels &&
374
- ca_cert == o.ca_cert &&
375
373
  sock_read_timeout == o.sock_read_timeout &&
376
374
  headers == o.headers &&
375
+ pulp_labels == o.pulp_labels &&
376
+ pulp_last_updated == o.pulp_last_updated &&
377
377
  metadata_only == o.metadata_only &&
378
378
  git_ref == o.git_ref
379
379
  end
@@ -387,7 +387,7 @@ module PulpAnsibleClient
387
387
  # Calculates hash code according to all attributes.
388
388
  # @return [Integer] Hash code
389
389
  def hash
390
- [name, tls_validation, connect_timeout, hidden_fields, max_retries, url, pulp_created, pulp_last_updated, download_concurrency, rate_limit, total_timeout, client_cert, sock_connect_timeout, proxy_url, pulp_href, pulp_labels, ca_cert, sock_read_timeout, headers, metadata_only, git_ref].hash
390
+ [pulp_href, max_retries, download_concurrency, connect_timeout, client_cert, ca_cert, tls_validation, rate_limit, total_timeout, sock_connect_timeout, hidden_fields, pulp_created, name, url, proxy_url, sock_read_timeout, headers, pulp_labels, pulp_last_updated, metadata_only, git_ref].hash
391
391
  end
392
392
 
393
393
  # Builds the object from hash
@@ -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
316
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
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.')
317
317
  end
318
318
 
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.')
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.')
321
321
  end
322
322
 
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.')
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.')
325
325
  end
326
326
 
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.')
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.')
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
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
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
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
479
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
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.'
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
489
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
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.'
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
499
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
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.'
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
509
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
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.'
510
510
  end
511
511
 
512
512
  @sock_read_timeout = sock_read_timeout
@@ -259,20 +259,20 @@ module PulpAnsibleClient
259
259
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
260
260
  end
261
261
 
262
- if !@total_timeout.nil? && @total_timeout < 0
263
- invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
262
+ if !@total_timeout.nil? && @total_timeout < 0.0
263
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
264
264
  end
265
265
 
266
- if !@connect_timeout.nil? && @connect_timeout < 0
267
- invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
266
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
267
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
268
268
  end
269
269
 
270
- if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
271
- invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
270
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
271
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
272
272
  end
273
273
 
274
- if !@sock_read_timeout.nil? && @sock_read_timeout < 0
275
- invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
274
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
275
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
276
276
  end
277
277
 
278
278
  invalid_properties
@@ -284,10 +284,10 @@ module PulpAnsibleClient
284
284
  return false if @name.nil?
285
285
  return false if @url.nil?
286
286
  return false if !@download_concurrency.nil? && @download_concurrency < 1
287
- return false if !@total_timeout.nil? && @total_timeout < 0
288
- return false if !@connect_timeout.nil? && @connect_timeout < 0
289
- return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
290
- return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
287
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
288
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
289
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
290
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
291
291
  true
292
292
  end
293
293
 
@@ -304,8 +304,8 @@ module PulpAnsibleClient
304
304
  # Custom attribute writer method with validation
305
305
  # @param [Object] total_timeout Value to be assigned
306
306
  def total_timeout=(total_timeout)
307
- if !total_timeout.nil? && total_timeout < 0
308
- fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
307
+ if !total_timeout.nil? && total_timeout < 0.0
308
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
309
309
  end
310
310
 
311
311
  @total_timeout = total_timeout
@@ -314,8 +314,8 @@ module PulpAnsibleClient
314
314
  # Custom attribute writer method with validation
315
315
  # @param [Object] connect_timeout Value to be assigned
316
316
  def connect_timeout=(connect_timeout)
317
- if !connect_timeout.nil? && connect_timeout < 0
318
- fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
317
+ if !connect_timeout.nil? && connect_timeout < 0.0
318
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
319
319
  end
320
320
 
321
321
  @connect_timeout = connect_timeout
@@ -324,8 +324,8 @@ module PulpAnsibleClient
324
324
  # Custom attribute writer method with validation
325
325
  # @param [Object] sock_connect_timeout Value to be assigned
326
326
  def sock_connect_timeout=(sock_connect_timeout)
327
- if !sock_connect_timeout.nil? && sock_connect_timeout < 0
328
- fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
327
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
328
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
329
329
  end
330
330
 
331
331
  @sock_connect_timeout = sock_connect_timeout
@@ -334,8 +334,8 @@ module PulpAnsibleClient
334
334
  # Custom attribute writer method with validation
335
335
  # @param [Object] sock_read_timeout Value to be assigned
336
336
  def sock_read_timeout=(sock_read_timeout)
337
- if !sock_read_timeout.nil? && sock_read_timeout < 0
338
- fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
337
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
338
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
339
339
  end
340
340
 
341
341
  @sock_read_timeout = sock_read_timeout