pulp_ansible_client 0.5.4 → 0.5.9

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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -4
  3. data/docs/AnsibleCollectionRemote.md +8 -0
  4. data/docs/AnsibleCollectionRemoteResponse.md +8 -0
  5. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  6. data/docs/AnsibleRoleRemote.md +9 -1
  7. data/docs/AnsibleRoleRemoteResponse.md +9 -1
  8. data/docs/AnsibleRoleResponse.md +3 -3
  9. data/docs/ArtifactRefResponse.md +21 -0
  10. data/docs/CollectionResponse.md +2 -2
  11. data/docs/CollectionVersionResponse.md +1 -1
  12. data/docs/PaginatedCollectionResponseList.md +2 -2
  13. data/docs/PaginatedCollectionResponseListLinks.md +23 -0
  14. data/docs/PaginatedCollectionResponseListMeta.md +17 -0
  15. data/docs/PaginatedCollectionVersionResponseList.md +2 -2
  16. data/docs/PatchedansibleCollectionRemote.md +8 -0
  17. data/docs/PatchedansibleRoleRemote.md +9 -1
  18. data/docs/RepositoriesAnsibleVersionsApi.md +2 -2
  19. data/lib/pulp_ansible_client.rb +3 -0
  20. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +4 -4
  21. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +105 -1
  22. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +105 -1
  23. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +15 -15
  24. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +25 -25
  25. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +108 -4
  26. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +108 -4
  27. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  28. data/lib/pulp_ansible_client/models/artifact_ref_response.rb +240 -0
  29. data/lib/pulp_ansible_client/models/collection_response.rb +2 -2
  30. data/lib/pulp_ansible_client/models/collection_version_response.rb +1 -1
  31. data/lib/pulp_ansible_client/models/paginated_collection_response_list.rb +2 -2
  32. data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +237 -0
  33. data/lib/pulp_ansible_client/models/paginated_collection_response_list_meta.rb +206 -0
  34. data/lib/pulp_ansible_client/models/paginated_collection_version_response_list.rb +2 -2
  35. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +105 -1
  36. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +108 -4
  37. data/lib/pulp_ansible_client/version.rb +1 -1
  38. data/spec/api/repositories_ansible_versions_api_spec.rb +2 -2
  39. data/spec/models/ansible_collection_remote_response_spec.rb +24 -0
  40. data/spec/models/ansible_collection_remote_spec.rb +24 -0
  41. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  42. data/spec/models/ansible_role_remote_response_spec.rb +24 -0
  43. data/spec/models/ansible_role_remote_spec.rb +24 -0
  44. data/spec/models/ansible_role_response_spec.rb +2 -2
  45. data/spec/models/artifact_ref_response_spec.rb +53 -0
  46. data/spec/models/paginated_collection_response_list_links_spec.rb +59 -0
  47. data/spec/models/paginated_collection_response_list_meta_spec.rb +41 -0
  48. data/spec/models/patchedansible_collection_remote_spec.rb +24 -0
  49. data/spec/models/patchedansible_role_remote_spec.rb +24 -0
  50. metadata +76 -64
@@ -56,6 +56,18 @@ module PulpAnsibleClient
56
56
  # The policy to use when downloading content.
57
57
  attr_accessor :policy
58
58
 
59
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
60
+ attr_accessor :total_timeout
61
+
62
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
63
+ attr_accessor :connect_timeout
64
+
65
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
66
+ attr_accessor :sock_connect_timeout
67
+
68
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
69
+ attr_accessor :sock_read_timeout
70
+
59
71
  # The string version of Collection requirements yaml.
60
72
  attr_accessor :requirements_file
61
73
 
@@ -82,6 +94,10 @@ module PulpAnsibleClient
82
94
  :'pulp_last_updated' => :'pulp_last_updated',
83
95
  :'download_concurrency' => :'download_concurrency',
84
96
  :'policy' => :'policy',
97
+ :'total_timeout' => :'total_timeout',
98
+ :'connect_timeout' => :'connect_timeout',
99
+ :'sock_connect_timeout' => :'sock_connect_timeout',
100
+ :'sock_read_timeout' => :'sock_read_timeout',
85
101
  :'requirements_file' => :'requirements_file',
86
102
  :'auth_url' => :'auth_url',
87
103
  :'token' => :'token'
@@ -105,6 +121,10 @@ module PulpAnsibleClient
105
121
  :'pulp_last_updated' => :'DateTime',
106
122
  :'download_concurrency' => :'Integer',
107
123
  :'policy' => :'PolicyEnum',
124
+ :'total_timeout' => :'Float',
125
+ :'connect_timeout' => :'Float',
126
+ :'sock_connect_timeout' => :'Float',
127
+ :'sock_read_timeout' => :'Float',
108
128
  :'requirements_file' => :'String',
109
129
  :'auth_url' => :'String',
110
130
  :'token' => :'String'
@@ -120,6 +140,10 @@ module PulpAnsibleClient
120
140
  :'proxy_url',
121
141
  :'username',
122
142
  :'password',
143
+ :'total_timeout',
144
+ :'connect_timeout',
145
+ :'sock_connect_timeout',
146
+ :'sock_read_timeout',
123
147
  :'requirements_file',
124
148
  :'auth_url',
125
149
  :'token'
@@ -197,6 +221,22 @@ module PulpAnsibleClient
197
221
  self.policy = attributes[:'policy']
198
222
  end
199
223
 
224
+ if attributes.key?(:'total_timeout')
225
+ self.total_timeout = attributes[:'total_timeout']
226
+ end
227
+
228
+ if attributes.key?(:'connect_timeout')
229
+ self.connect_timeout = attributes[:'connect_timeout']
230
+ end
231
+
232
+ if attributes.key?(:'sock_connect_timeout')
233
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
234
+ end
235
+
236
+ if attributes.key?(:'sock_read_timeout')
237
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
238
+ end
239
+
200
240
  if attributes.key?(:'requirements_file')
201
241
  self.requirements_file = attributes[:'requirements_file']
202
242
  end
@@ -226,6 +266,22 @@ module PulpAnsibleClient
226
266
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
227
267
  end
228
268
 
269
+ if !@total_timeout.nil? && @total_timeout < 0.0
270
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
271
+ end
272
+
273
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
274
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
275
+ end
276
+
277
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
278
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
279
+ end
280
+
281
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
282
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
283
+ end
284
+
229
285
  if !@auth_url.nil? && @auth_url.to_s.length > 255
230
286
  invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
231
287
  end
@@ -243,6 +299,10 @@ module PulpAnsibleClient
243
299
  return false if @name.nil?
244
300
  return false if @url.nil?
245
301
  return false if !@download_concurrency.nil? && @download_concurrency < 1
302
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
303
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
304
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
305
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
246
306
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
247
307
  return false if !@token.nil? && @token.to_s.length > 2000
248
308
  true
@@ -258,6 +318,46 @@ module PulpAnsibleClient
258
318
  @download_concurrency = download_concurrency
259
319
  end
260
320
 
321
+ # Custom attribute writer method with validation
322
+ # @param [Object] total_timeout Value to be assigned
323
+ def total_timeout=(total_timeout)
324
+ if !total_timeout.nil? && total_timeout < 0.0
325
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
326
+ end
327
+
328
+ @total_timeout = total_timeout
329
+ end
330
+
331
+ # Custom attribute writer method with validation
332
+ # @param [Object] connect_timeout Value to be assigned
333
+ def connect_timeout=(connect_timeout)
334
+ if !connect_timeout.nil? && connect_timeout < 0.0
335
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
336
+ end
337
+
338
+ @connect_timeout = connect_timeout
339
+ end
340
+
341
+ # Custom attribute writer method with validation
342
+ # @param [Object] sock_connect_timeout Value to be assigned
343
+ def sock_connect_timeout=(sock_connect_timeout)
344
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
345
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
346
+ end
347
+
348
+ @sock_connect_timeout = sock_connect_timeout
349
+ end
350
+
351
+ # Custom attribute writer method with validation
352
+ # @param [Object] sock_read_timeout Value to be assigned
353
+ def sock_read_timeout=(sock_read_timeout)
354
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
355
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
356
+ end
357
+
358
+ @sock_read_timeout = sock_read_timeout
359
+ end
360
+
261
361
  # Custom attribute writer method with validation
262
362
  # @param [Object] auth_url Value to be assigned
263
363
  def auth_url=(auth_url)
@@ -297,6 +397,10 @@ module PulpAnsibleClient
297
397
  pulp_last_updated == o.pulp_last_updated &&
298
398
  download_concurrency == o.download_concurrency &&
299
399
  policy == o.policy &&
400
+ total_timeout == o.total_timeout &&
401
+ connect_timeout == o.connect_timeout &&
402
+ sock_connect_timeout == o.sock_connect_timeout &&
403
+ sock_read_timeout == o.sock_read_timeout &&
300
404
  requirements_file == o.requirements_file &&
301
405
  auth_url == o.auth_url &&
302
406
  token == o.token
@@ -311,7 +415,7 @@ module PulpAnsibleClient
311
415
  # Calculates hash code according to all attributes.
312
416
  # @return [Integer] Hash code
313
417
  def hash
314
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, requirements_file, auth_url, token].hash
418
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, requirements_file, auth_url, token].hash
315
419
  end
316
420
 
317
421
  # Builds the object from hash
@@ -254,16 +254,16 @@ module PulpAnsibleClient
254
254
  invalid_properties.push('invalid value for "name", name cannot be nil.')
255
255
  end
256
256
 
257
- if @name.to_s.length > 32
258
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 32.')
257
+ if @name.to_s.length > 64
258
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
259
259
  end
260
260
 
261
261
  if @namespace.nil?
262
262
  invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
263
263
  end
264
264
 
265
- if @namespace.to_s.length > 32
266
- invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 32.')
265
+ if @namespace.to_s.length > 64
266
+ invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 64.')
267
267
  end
268
268
 
269
269
  if @repository.nil?
@@ -278,8 +278,8 @@ module PulpAnsibleClient
278
278
  invalid_properties.push('invalid value for "version", version cannot be nil.')
279
279
  end
280
280
 
281
- if @version.to_s.length > 32
282
- invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 32.')
281
+ if @version.to_s.length > 128
282
+ invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
283
283
  end
284
284
 
285
285
  invalid_properties
@@ -303,13 +303,13 @@ module PulpAnsibleClient
303
303
  return false if @issues.to_s.length > 2000
304
304
  return false if @license.nil?
305
305
  return false if @name.nil?
306
- return false if @name.to_s.length > 32
306
+ return false if @name.to_s.length > 64
307
307
  return false if @namespace.nil?
308
- return false if @namespace.to_s.length > 32
308
+ return false if @namespace.to_s.length > 64
309
309
  return false if @repository.nil?
310
310
  return false if @repository.to_s.length > 2000
311
311
  return false if @version.nil?
312
- return false if @version.to_s.length > 32
312
+ return false if @version.to_s.length > 128
313
313
  true
314
314
  end
315
315
 
@@ -362,8 +362,8 @@ module PulpAnsibleClient
362
362
  fail ArgumentError, 'name cannot be nil'
363
363
  end
364
364
 
365
- if name.to_s.length > 32
366
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 32.'
365
+ if name.to_s.length > 64
366
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
367
367
  end
368
368
 
369
369
  @name = name
@@ -376,8 +376,8 @@ module PulpAnsibleClient
376
376
  fail ArgumentError, 'namespace cannot be nil'
377
377
  end
378
378
 
379
- if namespace.to_s.length > 32
380
- fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 32.'
379
+ if namespace.to_s.length > 64
380
+ fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 64.'
381
381
  end
382
382
 
383
383
  @namespace = namespace
@@ -404,8 +404,8 @@ module PulpAnsibleClient
404
404
  fail ArgumentError, 'version cannot be nil'
405
405
  end
406
406
 
407
- if version.to_s.length > 32
408
- fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 32.'
407
+ if version.to_s.length > 128
408
+ fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
409
409
  end
410
410
 
411
411
  @version = version
@@ -15,11 +15,11 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
+ attr_accessor :pulp_href
19
+
18
20
  # Artifact file representing the physical content
19
21
  attr_accessor :artifact
20
22
 
21
- attr_accessor :pulp_href
22
-
23
23
  # Timestamp of creation.
24
24
  attr_accessor :pulp_created
25
25
 
@@ -88,8 +88,8 @@ module PulpAnsibleClient
88
88
  # Attribute mapping from ruby-style variable name to JSON key.
89
89
  def self.attribute_map
90
90
  {
91
- :'artifact' => :'artifact',
92
91
  :'pulp_href' => :'pulp_href',
92
+ :'artifact' => :'artifact',
93
93
  :'pulp_created' => :'pulp_created',
94
94
  :'md5' => :'md5',
95
95
  :'sha1' => :'sha1',
@@ -118,8 +118,8 @@ module PulpAnsibleClient
118
118
  # Attribute type mapping.
119
119
  def self.openapi_types
120
120
  {
121
- :'artifact' => :'String',
122
121
  :'pulp_href' => :'String',
122
+ :'artifact' => :'String',
123
123
  :'pulp_created' => :'DateTime',
124
124
  :'md5' => :'String',
125
125
  :'sha1' => :'String',
@@ -166,14 +166,14 @@ module PulpAnsibleClient
166
166
  h[k.to_sym] = v
167
167
  }
168
168
 
169
- if attributes.key?(:'artifact')
170
- self.artifact = attributes[:'artifact']
171
- end
172
-
173
169
  if attributes.key?(:'pulp_href')
174
170
  self.pulp_href = attributes[:'pulp_href']
175
171
  end
176
172
 
173
+ if attributes.key?(:'artifact')
174
+ self.artifact = attributes[:'artifact']
175
+ end
176
+
177
177
  if attributes.key?(:'pulp_created')
178
178
  self.pulp_created = attributes[:'pulp_created']
179
179
  end
@@ -335,16 +335,16 @@ module PulpAnsibleClient
335
335
  invalid_properties.push('invalid value for "name", name cannot be nil.')
336
336
  end
337
337
 
338
- if @name.to_s.length > 32
339
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 32.')
338
+ if @name.to_s.length > 64
339
+ invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
340
340
  end
341
341
 
342
342
  if @namespace.nil?
343
343
  invalid_properties.push('invalid value for "namespace", namespace cannot be nil.')
344
344
  end
345
345
 
346
- if @namespace.to_s.length > 32
347
- invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 32.')
346
+ if @namespace.to_s.length > 64
347
+ invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 64.')
348
348
  end
349
349
 
350
350
  if @repository.nil?
@@ -359,8 +359,8 @@ module PulpAnsibleClient
359
359
  invalid_properties.push('invalid value for "version", version cannot be nil.')
360
360
  end
361
361
 
362
- if @version.to_s.length > 32
363
- invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 32.')
362
+ if @version.to_s.length > 128
363
+ invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
364
364
  end
365
365
 
366
366
  invalid_properties
@@ -384,13 +384,13 @@ module PulpAnsibleClient
384
384
  return false if @issues.to_s.length > 2000
385
385
  return false if @license.nil?
386
386
  return false if @name.nil?
387
- return false if @name.to_s.length > 32
387
+ return false if @name.to_s.length > 64
388
388
  return false if @namespace.nil?
389
- return false if @namespace.to_s.length > 32
389
+ return false if @namespace.to_s.length > 64
390
390
  return false if @repository.nil?
391
391
  return false if @repository.to_s.length > 2000
392
392
  return false if @version.nil?
393
- return false if @version.to_s.length > 32
393
+ return false if @version.to_s.length > 128
394
394
  true
395
395
  end
396
396
 
@@ -443,8 +443,8 @@ module PulpAnsibleClient
443
443
  fail ArgumentError, 'name cannot be nil'
444
444
  end
445
445
 
446
- if name.to_s.length > 32
447
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 32.'
446
+ if name.to_s.length > 64
447
+ fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
448
448
  end
449
449
 
450
450
  @name = name
@@ -457,8 +457,8 @@ module PulpAnsibleClient
457
457
  fail ArgumentError, 'namespace cannot be nil'
458
458
  end
459
459
 
460
- if namespace.to_s.length > 32
461
- fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 32.'
460
+ if namespace.to_s.length > 64
461
+ fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 64.'
462
462
  end
463
463
 
464
464
  @namespace = namespace
@@ -485,8 +485,8 @@ module PulpAnsibleClient
485
485
  fail ArgumentError, 'version cannot be nil'
486
486
  end
487
487
 
488
- if version.to_s.length > 32
489
- fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 32.'
488
+ if version.to_s.length > 128
489
+ fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
490
490
  end
491
491
 
492
492
  @version = version
@@ -497,8 +497,8 @@ module PulpAnsibleClient
497
497
  def ==(o)
498
498
  return true if self.equal?(o)
499
499
  self.class == o.class &&
500
- artifact == o.artifact &&
501
500
  pulp_href == o.pulp_href &&
501
+ artifact == o.artifact &&
502
502
  pulp_created == o.pulp_created &&
503
503
  md5 == o.md5 &&
504
504
  sha1 == o.sha1 &&
@@ -532,7 +532,7 @@ module PulpAnsibleClient
532
532
  # Calculates hash code according to all attributes.
533
533
  # @return [Integer] Hash code
534
534
  def hash
535
- [artifact, pulp_href, pulp_created, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, license, name, namespace, repository, tags, version].hash
535
+ [pulp_href, artifact, pulp_created, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, license, name, namespace, repository, tags, version].hash
536
536
  end
537
537
 
538
538
  # Builds the object from hash
@@ -48,6 +48,18 @@ module PulpAnsibleClient
48
48
  # The policy to use when downloading content.
49
49
  attr_accessor :policy
50
50
 
51
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections.
52
+ attr_accessor :total_timeout
53
+
54
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
55
+ attr_accessor :connect_timeout
56
+
57
+ # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
58
+ attr_accessor :sock_connect_timeout
59
+
60
+ # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
61
+ attr_accessor :sock_read_timeout
62
+
51
63
  # Attribute mapping from ruby-style variable name to JSON key.
52
64
  def self.attribute_map
53
65
  {
@@ -61,7 +73,11 @@ module PulpAnsibleClient
61
73
  :'username' => :'username',
62
74
  :'password' => :'password',
63
75
  :'download_concurrency' => :'download_concurrency',
64
- :'policy' => :'policy'
76
+ :'policy' => :'policy',
77
+ :'total_timeout' => :'total_timeout',
78
+ :'connect_timeout' => :'connect_timeout',
79
+ :'sock_connect_timeout' => :'sock_connect_timeout',
80
+ :'sock_read_timeout' => :'sock_read_timeout'
65
81
  }
66
82
  end
67
83
 
@@ -78,7 +94,11 @@ module PulpAnsibleClient
78
94
  :'username' => :'String',
79
95
  :'password' => :'String',
80
96
  :'download_concurrency' => :'Integer',
81
- :'policy' => :'PolicyEnum'
97
+ :'policy' => :'PolicyEnum',
98
+ :'total_timeout' => :'Float',
99
+ :'connect_timeout' => :'Float',
100
+ :'sock_connect_timeout' => :'Float',
101
+ :'sock_read_timeout' => :'Float'
82
102
  }
83
103
  end
84
104
 
@@ -91,6 +111,10 @@ module PulpAnsibleClient
91
111
  :'proxy_url',
92
112
  :'username',
93
113
  :'password',
114
+ :'total_timeout',
115
+ :'connect_timeout',
116
+ :'sock_connect_timeout',
117
+ :'sock_read_timeout'
94
118
  ])
95
119
  end
96
120
 
@@ -152,6 +176,22 @@ module PulpAnsibleClient
152
176
  if attributes.key?(:'policy')
153
177
  self.policy = attributes[:'policy']
154
178
  end
179
+
180
+ if attributes.key?(:'total_timeout')
181
+ self.total_timeout = attributes[:'total_timeout']
182
+ end
183
+
184
+ if attributes.key?(:'connect_timeout')
185
+ self.connect_timeout = attributes[:'connect_timeout']
186
+ end
187
+
188
+ if attributes.key?(:'sock_connect_timeout')
189
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
190
+ end
191
+
192
+ if attributes.key?(:'sock_read_timeout')
193
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
194
+ end
155
195
  end
156
196
 
157
197
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -170,6 +210,22 @@ module PulpAnsibleClient
170
210
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
171
211
  end
172
212
 
213
+ if !@total_timeout.nil? && @total_timeout < 0.0
214
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
215
+ end
216
+
217
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
218
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
219
+ end
220
+
221
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
222
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
223
+ end
224
+
225
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
226
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
227
+ end
228
+
173
229
  invalid_properties
174
230
  end
175
231
 
@@ -179,6 +235,10 @@ module PulpAnsibleClient
179
235
  return false if @name.nil?
180
236
  return false if @url.nil?
181
237
  return false if !@download_concurrency.nil? && @download_concurrency < 1
238
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
239
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
240
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
241
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
182
242
  true
183
243
  end
184
244
 
@@ -192,6 +252,46 @@ module PulpAnsibleClient
192
252
  @download_concurrency = download_concurrency
193
253
  end
194
254
 
255
+ # Custom attribute writer method with validation
256
+ # @param [Object] total_timeout Value to be assigned
257
+ def total_timeout=(total_timeout)
258
+ if !total_timeout.nil? && total_timeout < 0.0
259
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
260
+ end
261
+
262
+ @total_timeout = total_timeout
263
+ end
264
+
265
+ # Custom attribute writer method with validation
266
+ # @param [Object] connect_timeout Value to be assigned
267
+ def connect_timeout=(connect_timeout)
268
+ if !connect_timeout.nil? && connect_timeout < 0.0
269
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
270
+ end
271
+
272
+ @connect_timeout = connect_timeout
273
+ end
274
+
275
+ # Custom attribute writer method with validation
276
+ # @param [Object] sock_connect_timeout Value to be assigned
277
+ def sock_connect_timeout=(sock_connect_timeout)
278
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
279
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
280
+ end
281
+
282
+ @sock_connect_timeout = sock_connect_timeout
283
+ end
284
+
285
+ # Custom attribute writer method with validation
286
+ # @param [Object] sock_read_timeout Value to be assigned
287
+ def sock_read_timeout=(sock_read_timeout)
288
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
289
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
290
+ end
291
+
292
+ @sock_read_timeout = sock_read_timeout
293
+ end
294
+
195
295
  # Checks equality by comparing each attribute.
196
296
  # @param [Object] Object to be compared
197
297
  def ==(o)
@@ -207,7 +307,11 @@ module PulpAnsibleClient
207
307
  username == o.username &&
208
308
  password == o.password &&
209
309
  download_concurrency == o.download_concurrency &&
210
- policy == o.policy
310
+ policy == o.policy &&
311
+ total_timeout == o.total_timeout &&
312
+ connect_timeout == o.connect_timeout &&
313
+ sock_connect_timeout == o.sock_connect_timeout &&
314
+ sock_read_timeout == o.sock_read_timeout
211
315
  end
212
316
 
213
317
  # @see the `==` method
@@ -219,7 +323,7 @@ module PulpAnsibleClient
219
323
  # Calculates hash code according to all attributes.
220
324
  # @return [Integer] Hash code
221
325
  def hash
222
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy].hash
326
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout].hash
223
327
  end
224
328
 
225
329
  # Builds the object from hash