pulp_ansible_client 0.5.0 → 0.5.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/AnsibleCollectionRemote.md +8 -0
  4. data/docs/AnsibleCollectionRemoteResponse.md +8 -0
  5. data/docs/AnsibleCollectionVersionResponse.md +2 -2
  6. data/docs/AnsibleRoleRemote.md +9 -1
  7. data/docs/AnsibleRoleRemoteResponse.md +9 -1
  8. data/docs/AnsibleRoleResponse.md +2 -2
  9. data/docs/PatchedansibleCollectionRemote.md +8 -0
  10. data/docs/PatchedansibleRoleRemote.md +9 -1
  11. data/docs/RepositoriesAnsibleVersionsApi.md +2 -2
  12. data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +4 -4
  13. data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +105 -1
  14. data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +105 -1
  15. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
  16. data/lib/pulp_ansible_client/models/ansible_role_remote.rb +108 -4
  17. data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +108 -4
  18. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  19. data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +105 -1
  20. data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +108 -4
  21. data/lib/pulp_ansible_client/version.rb +1 -1
  22. data/spec/api/repositories_ansible_versions_api_spec.rb +2 -2
  23. data/spec/models/ansible_collection_remote_response_spec.rb +24 -0
  24. data/spec/models/ansible_collection_remote_spec.rb +24 -0
  25. data/spec/models/ansible_collection_version_response_spec.rb +2 -2
  26. data/spec/models/ansible_role_remote_response_spec.rb +24 -0
  27. data/spec/models/ansible_role_remote_spec.rb +24 -0
  28. data/spec/models/ansible_role_response_spec.rb +2 -2
  29. data/spec/models/patchedansible_collection_remote_spec.rb +24 -0
  30. data/spec/models/patchedansible_role_remote_spec.rb +24 -0
  31. metadata +63 -63
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06d49068f4042f95e0a63ef10e4ec541df2c066550753568d01b6b0e539aff28
4
- data.tar.gz: 7a221568c195e5ce3441ab85afc253d01ec7c1f46e23f499cd9c19b619d7d624
3
+ metadata.gz: 353af4868feaf7e99a92a5797d66e4e8e3bb98ffd30e210fc2c047571448ece0
4
+ data.tar.gz: 804cc5ee7b339dcf0e7b5fe5ecfe724abe6a2d2c745a10de4f3a787759d97dd9
5
5
  SHA512:
6
- metadata.gz: f394d3d5f5fa05ed2d8e1696915cc67c7409a302cf523ac7cddbc442d80795c6e9c96bf9955f5b23ee4027e6ad7077e8be5e35738cecce486b0e7f416175557d
7
- data.tar.gz: 7f2650d0ee08a3beed65b912bdc536db449193d4f942232bf205c527f69827c35a153a56822d804b3d280a0b33cec28c74b15471199bdb8b7b1276815a6904c0
6
+ metadata.gz: 8cb8e71ffbbd04e2564a920d99cb06be5747eb1ce220ea8515407daf69ca962b1df2e5246dc24c1f7a8d75121c3b9889fdc9faa9773a2a58a85159413ca459bb
7
+ data.tar.gz: 870855554ae76e9278b88c47338c30b5c026c6b873bed288011b1d0b28f14731463138e92dd1ebace128c2a0159afcdd907e12091b741f320ec454c061933121
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 0.5.0
10
+ - Package version: 0.5.5
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_ansible_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_ansible_client-0.5.0.gem
27
+ gem install ./pulp_ansible_client-0.5.5.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_ansible_client-0.5.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_ansible_client-0.5.5.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_ansible_client', '~> 0.5.0'
36
+ gem 'pulp_ansible_client', '~> 0.5.5'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -15,6 +15,10 @@ Name | Type | Description | Notes
15
15
  **password** | **String** | The password to be used for authentication when syncing. | [optional]
16
16
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
17
17
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
18
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
19
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
20
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
21
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
18
22
  **requirements_file** | **String** | The string version of Collection requirements yaml. | [optional]
19
23
  **auth_url** | **String** | The URL to receive a session token from, e.g. used with Automation Hub. | [optional]
20
24
  **token** | **String** | The token key to use for authentication. See https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-clientfor more details | [optional]
@@ -35,6 +39,10 @@ instance = PulpAnsibleClient::AnsibleCollectionRemote.new(name: null,
35
39
  password: null,
36
40
  download_concurrency: null,
37
41
  policy: null,
42
+ total_timeout: null,
43
+ connect_timeout: null,
44
+ sock_connect_timeout: null,
45
+ sock_read_timeout: null,
38
46
  requirements_file: null,
39
47
  auth_url: null,
40
48
  token: null)
@@ -18,6 +18,10 @@ Name | Type | Description | Notes
18
18
  **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
19
19
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
20
20
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
21
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
22
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
23
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
24
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
21
25
  **requirements_file** | **String** | The string version of Collection requirements yaml. | [optional]
22
26
  **auth_url** | **String** | The URL to receive a session token from, e.g. used with Automation Hub. | [optional]
23
27
  **token** | **String** | The token key to use for authentication. See https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-clientfor more details | [optional]
@@ -41,6 +45,10 @@ instance = PulpAnsibleClient::AnsibleCollectionRemoteResponse.new(pulp_href: nul
41
45
  pulp_last_updated: null,
42
46
  download_concurrency: null,
43
47
  policy: null,
48
+ total_timeout: null,
49
+ connect_timeout: null,
50
+ sock_connect_timeout: null,
51
+ sock_read_timeout: null,
44
52
  requirements_file: null,
45
53
  auth_url: null,
46
54
  token: null)
@@ -5,8 +5,8 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
8
  **artifact** | **String** | Artifact file representing the physical content |
9
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
10
10
  **md5** | **String** | The MD5 checksum if available. | [optional] [readonly]
11
11
  **sha1** | **String** | The SHA-1 checksum if available. | [optional] [readonly]
12
12
  **sha224** | **String** | The SHA-224 checksum if available. | [optional] [readonly]
@@ -35,8 +35,8 @@ Name | Type | Description | Notes
35
35
  require 'PulpAnsibleClient'
36
36
 
37
37
  instance = PulpAnsibleClient::AnsibleCollectionVersionResponse.new(pulp_href: null,
38
- pulp_created: null,
39
38
  artifact: null,
39
+ pulp_created: null,
40
40
  md5: null,
41
41
  sha1: null,
42
42
  sha224: null,
@@ -15,6 +15,10 @@ Name | Type | Description | Notes
15
15
  **password** | **String** | The password to be used for authentication when syncing. | [optional]
16
16
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
17
17
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
18
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
19
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
20
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
21
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
18
22
 
19
23
  ## Code Sample
20
24
 
@@ -31,7 +35,11 @@ instance = PulpAnsibleClient::AnsibleRoleRemote.new(name: null,
31
35
  username: null,
32
36
  password: null,
33
37
  download_concurrency: null,
34
- policy: null)
38
+ policy: null,
39
+ total_timeout: null,
40
+ connect_timeout: null,
41
+ sock_connect_timeout: null,
42
+ sock_read_timeout: null)
35
43
  ```
36
44
 
37
45
 
@@ -18,6 +18,10 @@ Name | Type | Description | Notes
18
18
  **pulp_last_updated** | **DateTime** | Timestamp of the most recent update of the remote. | [optional] [readonly]
19
19
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
20
20
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
21
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
22
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
23
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
24
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
21
25
 
22
26
  ## Code Sample
23
27
 
@@ -37,7 +41,11 @@ instance = PulpAnsibleClient::AnsibleRoleRemoteResponse.new(pulp_href: null,
37
41
  password: null,
38
42
  pulp_last_updated: null,
39
43
  download_concurrency: null,
40
- policy: null)
44
+ policy: null,
45
+ total_timeout: null,
46
+ connect_timeout: null,
47
+ sock_connect_timeout: null,
48
+ sock_read_timeout: null)
41
49
  ```
42
50
 
43
51
 
@@ -5,8 +5,8 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
8
  **artifact** | **String** | Artifact file representing the physical content |
9
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
10
10
  **version** | **String** | |
11
11
  **name** | **String** | |
12
12
  **namespace** | **String** | |
@@ -17,8 +17,8 @@ Name | Type | Description | Notes
17
17
  require 'PulpAnsibleClient'
18
18
 
19
19
  instance = PulpAnsibleClient::AnsibleRoleResponse.new(pulp_href: null,
20
- pulp_created: null,
21
20
  artifact: null,
21
+ pulp_created: null,
22
22
  version: null,
23
23
  name: null,
24
24
  namespace: null)
@@ -15,6 +15,10 @@ Name | Type | Description | Notes
15
15
  **password** | **String** | The password to be used for authentication when syncing. | [optional]
16
16
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
17
17
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
18
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
19
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
20
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
21
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
18
22
  **requirements_file** | **String** | The string version of Collection requirements yaml. | [optional]
19
23
  **auth_url** | **String** | The URL to receive a session token from, e.g. used with Automation Hub. | [optional]
20
24
  **token** | **String** | The token key to use for authentication. See https://docs.ansible.com/ansible/latest/user_guide/collections_using.html#configuring-the-ansible-galaxy-clientfor more details | [optional]
@@ -35,6 +39,10 @@ instance = PulpAnsibleClient::PatchedansibleCollectionRemote.new(name: null,
35
39
  password: null,
36
40
  download_concurrency: null,
37
41
  policy: null,
42
+ total_timeout: null,
43
+ connect_timeout: null,
44
+ sock_connect_timeout: null,
45
+ sock_read_timeout: null,
38
46
  requirements_file: null,
39
47
  auth_url: null,
40
48
  token: null)
@@ -15,6 +15,10 @@ Name | Type | Description | Notes
15
15
  **password** | **String** | The password to be used for authentication when syncing. | [optional]
16
16
  **download_concurrency** | **Integer** | Total number of simultaneous connections. | [optional]
17
17
  **policy** | [**PolicyEnum**](PolicyEnum.md) | The policy to use when downloading content. | [optional]
18
+ **total_timeout** | **Float** | aiohttp.ClientTimeout.total (q.v.) for download-connections. | [optional]
19
+ **connect_timeout** | **Float** | aiohttp.ClientTimeout.connect (q.v.) for download-connections. | [optional]
20
+ **sock_connect_timeout** | **Float** | aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. | [optional]
21
+ **sock_read_timeout** | **Float** | aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. | [optional]
18
22
 
19
23
  ## Code Sample
20
24
 
@@ -31,7 +35,11 @@ instance = PulpAnsibleClient::PatchedansibleRoleRemote.new(name: null,
31
35
  username: null,
32
36
  password: null,
33
37
  download_concurrency: null,
34
- policy: null)
38
+ policy: null,
39
+ total_timeout: null,
40
+ connect_timeout: null,
41
+ sock_connect_timeout: null,
42
+ sock_read_timeout: null)
35
43
  ```
36
44
 
37
45
 
@@ -17,7 +17,7 @@ Method | HTTP request | Description
17
17
 
18
18
  Delete a repository version
19
19
 
20
- Trigger an asynchronous task to delete a repositroy version.
20
+ Trigger an asynchronous task to delete a repository version.
21
21
 
22
22
  ### Example
23
23
 
@@ -222,7 +222,7 @@ Name | Type | Description | Notes
222
222
 
223
223
 
224
224
 
225
- Trigger an asynchronous task to repair a repositroy version.
225
+ Trigger an asynchronous task to repair a repository version.
226
226
 
227
227
  ### Example
228
228
 
@@ -20,7 +20,7 @@ module PulpAnsibleClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Delete a repository version
23
- # Trigger an asynchronous task to delete a repositroy version.
23
+ # Trigger an asynchronous task to delete a repository version.
24
24
  # @param ansible_ansible_repository_version_href [String]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [AsyncOperationResponse]
@@ -30,7 +30,7 @@ module PulpAnsibleClient
30
30
  end
31
31
 
32
32
  # Delete a repository version
33
- # Trigger an asynchronous task to delete a repositroy version.
33
+ # Trigger an asynchronous task to delete a repository version.
34
34
  # @param ansible_ansible_repository_version_href [String]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
@@ -268,7 +268,7 @@ module PulpAnsibleClient
268
268
  return data, status_code, headers
269
269
  end
270
270
 
271
- # Trigger an asynchronous task to repair a repositroy version.
271
+ # Trigger an asynchronous task to repair a repository version.
272
272
  # @param ansible_ansible_repository_version_href [String]
273
273
  # @param repository_version [RepositoryVersion]
274
274
  # @param [Hash] opts the optional parameters
@@ -278,7 +278,7 @@ module PulpAnsibleClient
278
278
  data
279
279
  end
280
280
 
281
- # Trigger an asynchronous task to repair a repositroy version.
281
+ # Trigger an asynchronous task to repair a repository version.
282
282
  # @param ansible_ansible_repository_version_href [String]
283
283
  # @param repository_version [RepositoryVersion]
284
284
  # @param [Hash] opts the optional parameters
@@ -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
  # The string version of Collection requirements yaml.
52
64
  attr_accessor :requirements_file
53
65
 
@@ -71,6 +83,10 @@ module PulpAnsibleClient
71
83
  :'password' => :'password',
72
84
  :'download_concurrency' => :'download_concurrency',
73
85
  :'policy' => :'policy',
86
+ :'total_timeout' => :'total_timeout',
87
+ :'connect_timeout' => :'connect_timeout',
88
+ :'sock_connect_timeout' => :'sock_connect_timeout',
89
+ :'sock_read_timeout' => :'sock_read_timeout',
74
90
  :'requirements_file' => :'requirements_file',
75
91
  :'auth_url' => :'auth_url',
76
92
  :'token' => :'token'
@@ -91,6 +107,10 @@ module PulpAnsibleClient
91
107
  :'password' => :'String',
92
108
  :'download_concurrency' => :'Integer',
93
109
  :'policy' => :'PolicyEnum',
110
+ :'total_timeout' => :'Float',
111
+ :'connect_timeout' => :'Float',
112
+ :'sock_connect_timeout' => :'Float',
113
+ :'sock_read_timeout' => :'Float',
94
114
  :'requirements_file' => :'String',
95
115
  :'auth_url' => :'String',
96
116
  :'token' => :'String'
@@ -106,6 +126,10 @@ module PulpAnsibleClient
106
126
  :'proxy_url',
107
127
  :'username',
108
128
  :'password',
129
+ :'total_timeout',
130
+ :'connect_timeout',
131
+ :'sock_connect_timeout',
132
+ :'sock_read_timeout',
109
133
  :'requirements_file',
110
134
  :'auth_url',
111
135
  :'token'
@@ -171,6 +195,22 @@ module PulpAnsibleClient
171
195
  self.policy = attributes[:'policy']
172
196
  end
173
197
 
198
+ if attributes.key?(:'total_timeout')
199
+ self.total_timeout = attributes[:'total_timeout']
200
+ end
201
+
202
+ if attributes.key?(:'connect_timeout')
203
+ self.connect_timeout = attributes[:'connect_timeout']
204
+ end
205
+
206
+ if attributes.key?(:'sock_connect_timeout')
207
+ self.sock_connect_timeout = attributes[:'sock_connect_timeout']
208
+ end
209
+
210
+ if attributes.key?(:'sock_read_timeout')
211
+ self.sock_read_timeout = attributes[:'sock_read_timeout']
212
+ end
213
+
174
214
  if attributes.key?(:'requirements_file')
175
215
  self.requirements_file = attributes[:'requirements_file']
176
216
  end
@@ -200,6 +240,22 @@ module PulpAnsibleClient
200
240
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
201
241
  end
202
242
 
243
+ if !@total_timeout.nil? && @total_timeout < 0.0
244
+ invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
245
+ end
246
+
247
+ if !@connect_timeout.nil? && @connect_timeout < 0.0
248
+ invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
249
+ end
250
+
251
+ if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
252
+ invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
253
+ end
254
+
255
+ if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
256
+ invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
257
+ end
258
+
203
259
  if !@auth_url.nil? && @auth_url.to_s.length > 255
204
260
  invalid_properties.push('invalid value for "auth_url", the character length must be smaller than or equal to 255.')
205
261
  end
@@ -217,6 +273,10 @@ module PulpAnsibleClient
217
273
  return false if @name.nil?
218
274
  return false if @url.nil?
219
275
  return false if !@download_concurrency.nil? && @download_concurrency < 1
276
+ return false if !@total_timeout.nil? && @total_timeout < 0.0
277
+ return false if !@connect_timeout.nil? && @connect_timeout < 0.0
278
+ return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
279
+ return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
220
280
  return false if !@auth_url.nil? && @auth_url.to_s.length > 255
221
281
  return false if !@token.nil? && @token.to_s.length > 2000
222
282
  true
@@ -232,6 +292,46 @@ module PulpAnsibleClient
232
292
  @download_concurrency = download_concurrency
233
293
  end
234
294
 
295
+ # Custom attribute writer method with validation
296
+ # @param [Object] total_timeout Value to be assigned
297
+ def total_timeout=(total_timeout)
298
+ if !total_timeout.nil? && total_timeout < 0.0
299
+ fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
300
+ end
301
+
302
+ @total_timeout = total_timeout
303
+ end
304
+
305
+ # Custom attribute writer method with validation
306
+ # @param [Object] connect_timeout Value to be assigned
307
+ def connect_timeout=(connect_timeout)
308
+ if !connect_timeout.nil? && connect_timeout < 0.0
309
+ fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
310
+ end
311
+
312
+ @connect_timeout = connect_timeout
313
+ end
314
+
315
+ # Custom attribute writer method with validation
316
+ # @param [Object] sock_connect_timeout Value to be assigned
317
+ def sock_connect_timeout=(sock_connect_timeout)
318
+ if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
319
+ fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
320
+ end
321
+
322
+ @sock_connect_timeout = sock_connect_timeout
323
+ end
324
+
325
+ # Custom attribute writer method with validation
326
+ # @param [Object] sock_read_timeout Value to be assigned
327
+ def sock_read_timeout=(sock_read_timeout)
328
+ if !sock_read_timeout.nil? && sock_read_timeout < 0.0
329
+ fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
330
+ end
331
+
332
+ @sock_read_timeout = sock_read_timeout
333
+ end
334
+
235
335
  # Custom attribute writer method with validation
236
336
  # @param [Object] auth_url Value to be assigned
237
337
  def auth_url=(auth_url)
@@ -268,6 +368,10 @@ module PulpAnsibleClient
268
368
  password == o.password &&
269
369
  download_concurrency == o.download_concurrency &&
270
370
  policy == o.policy &&
371
+ total_timeout == o.total_timeout &&
372
+ connect_timeout == o.connect_timeout &&
373
+ sock_connect_timeout == o.sock_connect_timeout &&
374
+ sock_read_timeout == o.sock_read_timeout &&
271
375
  requirements_file == o.requirements_file &&
272
376
  auth_url == o.auth_url &&
273
377
  token == o.token
@@ -282,7 +386,7 @@ module PulpAnsibleClient
282
386
  # Calculates hash code according to all attributes.
283
387
  # @return [Integer] Hash code
284
388
  def hash
285
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, download_concurrency, policy, requirements_file, auth_url, token].hash
389
+ [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, requirements_file, auth_url, token].hash
286
390
  end
287
391
 
288
392
  # Builds the object from hash
@@ -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