pulp_ansible_client 0.5.2 → 0.5.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.
- checksums.yaml +4 -4
- data/README.md +7 -4
- data/docs/AnsibleCollectionRemote.md +8 -0
- data/docs/AnsibleCollectionRemoteResponse.md +8 -0
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleRoleRemote.md +9 -1
- data/docs/AnsibleRoleRemoteResponse.md +9 -1
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ArtifactRefResponse.md +21 -0
- data/docs/CollectionResponse.md +2 -2
- data/docs/CollectionVersionResponse.md +1 -1
- data/docs/PaginatedCollectionResponseList.md +2 -2
- data/docs/PaginatedCollectionResponseListLinks.md +23 -0
- data/docs/PaginatedCollectionResponseListMeta.md +17 -0
- data/docs/PaginatedCollectionVersionResponseList.md +2 -2
- data/docs/PatchedansibleCollectionRemote.md +8 -0
- data/docs/PatchedansibleRoleRemote.md +9 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +2 -2
- data/lib/pulp_ansible_client.rb +3 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +4 -4
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +105 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +105 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +108 -4
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +108 -4
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
- data/lib/pulp_ansible_client/models/artifact_ref_response.rb +240 -0
- data/lib/pulp_ansible_client/models/collection_response.rb +2 -2
- data/lib/pulp_ansible_client/models/collection_version_response.rb +1 -1
- data/lib/pulp_ansible_client/models/paginated_collection_response_list.rb +2 -2
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_links.rb +237 -0
- data/lib/pulp_ansible_client/models/paginated_collection_response_list_meta.rb +206 -0
- data/lib/pulp_ansible_client/models/paginated_collection_version_response_list.rb +2 -2
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +105 -1
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +108 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/repositories_ansible_versions_api_spec.rb +2 -2
- data/spec/models/ansible_collection_remote_response_spec.rb +24 -0
- data/spec/models/ansible_collection_remote_spec.rb +24 -0
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_role_remote_response_spec.rb +24 -0
- data/spec/models/ansible_role_remote_spec.rb +24 -0
- data/spec/models/ansible_role_response_spec.rb +3 -3
- data/spec/models/artifact_ref_response_spec.rb +53 -0
- data/spec/models/paginated_collection_response_list_links_spec.rb +59 -0
- data/spec/models/paginated_collection_response_list_meta_spec.rb +41 -0
- data/spec/models/patchedansible_collection_remote_spec.rb +24 -0
- data/spec/models/patchedansible_role_remote_spec.rb +24 -0
- metadata +74 -62
@@ -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
|
@@ -15,14 +15,14 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for CollectionVersion Content.
|
17
17
|
class AnsibleCollectionVersionResponse
|
18
|
-
# Timestamp of creation.
|
19
|
-
attr_accessor :pulp_created
|
20
|
-
|
21
18
|
attr_accessor :pulp_href
|
22
19
|
|
23
20
|
# Artifact file representing the physical content
|
24
21
|
attr_accessor :artifact
|
25
22
|
|
23
|
+
# Timestamp of creation.
|
24
|
+
attr_accessor :pulp_created
|
25
|
+
|
26
26
|
# The MD5 checksum if available.
|
27
27
|
attr_accessor :md5
|
28
28
|
|
@@ -88,9 +88,9 @@ module PulpAnsibleClient
|
|
88
88
|
# Attribute mapping from ruby-style variable name to JSON key.
|
89
89
|
def self.attribute_map
|
90
90
|
{
|
91
|
-
:'pulp_created' => :'pulp_created',
|
92
91
|
:'pulp_href' => :'pulp_href',
|
93
92
|
:'artifact' => :'artifact',
|
93
|
+
:'pulp_created' => :'pulp_created',
|
94
94
|
:'md5' => :'md5',
|
95
95
|
:'sha1' => :'sha1',
|
96
96
|
:'sha224' => :'sha224',
|
@@ -118,9 +118,9 @@ module PulpAnsibleClient
|
|
118
118
|
# Attribute type mapping.
|
119
119
|
def self.openapi_types
|
120
120
|
{
|
121
|
-
:'pulp_created' => :'DateTime',
|
122
121
|
:'pulp_href' => :'String',
|
123
122
|
:'artifact' => :'String',
|
123
|
+
:'pulp_created' => :'DateTime',
|
124
124
|
:'md5' => :'String',
|
125
125
|
:'sha1' => :'String',
|
126
126
|
:'sha224' => :'String',
|
@@ -166,10 +166,6 @@ module PulpAnsibleClient
|
|
166
166
|
h[k.to_sym] = v
|
167
167
|
}
|
168
168
|
|
169
|
-
if attributes.key?(:'pulp_created')
|
170
|
-
self.pulp_created = attributes[:'pulp_created']
|
171
|
-
end
|
172
|
-
|
173
169
|
if attributes.key?(:'pulp_href')
|
174
170
|
self.pulp_href = attributes[:'pulp_href']
|
175
171
|
end
|
@@ -178,6 +174,10 @@ module PulpAnsibleClient
|
|
178
174
|
self.artifact = attributes[:'artifact']
|
179
175
|
end
|
180
176
|
|
177
|
+
if attributes.key?(:'pulp_created')
|
178
|
+
self.pulp_created = attributes[:'pulp_created']
|
179
|
+
end
|
180
|
+
|
181
181
|
if attributes.key?(:'md5')
|
182
182
|
self.md5 = attributes[:'md5']
|
183
183
|
end
|
@@ -497,9 +497,9 @@ module PulpAnsibleClient
|
|
497
497
|
def ==(o)
|
498
498
|
return true if self.equal?(o)
|
499
499
|
self.class == o.class &&
|
500
|
-
pulp_created == o.pulp_created &&
|
501
500
|
pulp_href == o.pulp_href &&
|
502
501
|
artifact == o.artifact &&
|
502
|
+
pulp_created == o.pulp_created &&
|
503
503
|
md5 == o.md5 &&
|
504
504
|
sha1 == o.sha1 &&
|
505
505
|
sha224 == o.sha224 &&
|
@@ -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
|
-
[
|
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
|
@@ -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
|
# Attribute mapping from ruby-style variable name to JSON key.
|
60
72
|
def self.attribute_map
|
61
73
|
{
|
@@ -72,7 +84,11 @@ module PulpAnsibleClient
|
|
72
84
|
:'password' => :'password',
|
73
85
|
:'pulp_last_updated' => :'pulp_last_updated',
|
74
86
|
:'download_concurrency' => :'download_concurrency',
|
75
|
-
:'policy' => :'policy'
|
87
|
+
:'policy' => :'policy',
|
88
|
+
:'total_timeout' => :'total_timeout',
|
89
|
+
:'connect_timeout' => :'connect_timeout',
|
90
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
91
|
+
:'sock_read_timeout' => :'sock_read_timeout'
|
76
92
|
}
|
77
93
|
end
|
78
94
|
|
@@ -92,7 +108,11 @@ module PulpAnsibleClient
|
|
92
108
|
:'password' => :'String',
|
93
109
|
:'pulp_last_updated' => :'DateTime',
|
94
110
|
:'download_concurrency' => :'Integer',
|
95
|
-
:'policy' => :'PolicyEnum'
|
111
|
+
:'policy' => :'PolicyEnum',
|
112
|
+
:'total_timeout' => :'Float',
|
113
|
+
:'connect_timeout' => :'Float',
|
114
|
+
:'sock_connect_timeout' => :'Float',
|
115
|
+
:'sock_read_timeout' => :'Float'
|
96
116
|
}
|
97
117
|
end
|
98
118
|
|
@@ -105,6 +125,10 @@ module PulpAnsibleClient
|
|
105
125
|
:'proxy_url',
|
106
126
|
:'username',
|
107
127
|
:'password',
|
128
|
+
:'total_timeout',
|
129
|
+
:'connect_timeout',
|
130
|
+
:'sock_connect_timeout',
|
131
|
+
:'sock_read_timeout'
|
108
132
|
])
|
109
133
|
end
|
110
134
|
|
@@ -178,6 +202,22 @@ module PulpAnsibleClient
|
|
178
202
|
if attributes.key?(:'policy')
|
179
203
|
self.policy = attributes[:'policy']
|
180
204
|
end
|
205
|
+
|
206
|
+
if attributes.key?(:'total_timeout')
|
207
|
+
self.total_timeout = attributes[:'total_timeout']
|
208
|
+
end
|
209
|
+
|
210
|
+
if attributes.key?(:'connect_timeout')
|
211
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
212
|
+
end
|
213
|
+
|
214
|
+
if attributes.key?(:'sock_connect_timeout')
|
215
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
216
|
+
end
|
217
|
+
|
218
|
+
if attributes.key?(:'sock_read_timeout')
|
219
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
220
|
+
end
|
181
221
|
end
|
182
222
|
|
183
223
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -196,6 +236,22 @@ module PulpAnsibleClient
|
|
196
236
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
197
237
|
end
|
198
238
|
|
239
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
240
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
241
|
+
end
|
242
|
+
|
243
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
244
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
245
|
+
end
|
246
|
+
|
247
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
248
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
249
|
+
end
|
250
|
+
|
251
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
252
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
253
|
+
end
|
254
|
+
|
199
255
|
invalid_properties
|
200
256
|
end
|
201
257
|
|
@@ -205,6 +261,10 @@ module PulpAnsibleClient
|
|
205
261
|
return false if @name.nil?
|
206
262
|
return false if @url.nil?
|
207
263
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
264
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
265
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
266
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
267
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
208
268
|
true
|
209
269
|
end
|
210
270
|
|
@@ -218,6 +278,46 @@ module PulpAnsibleClient
|
|
218
278
|
@download_concurrency = download_concurrency
|
219
279
|
end
|
220
280
|
|
281
|
+
# Custom attribute writer method with validation
|
282
|
+
# @param [Object] total_timeout Value to be assigned
|
283
|
+
def total_timeout=(total_timeout)
|
284
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
285
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
286
|
+
end
|
287
|
+
|
288
|
+
@total_timeout = total_timeout
|
289
|
+
end
|
290
|
+
|
291
|
+
# Custom attribute writer method with validation
|
292
|
+
# @param [Object] connect_timeout Value to be assigned
|
293
|
+
def connect_timeout=(connect_timeout)
|
294
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
295
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
296
|
+
end
|
297
|
+
|
298
|
+
@connect_timeout = connect_timeout
|
299
|
+
end
|
300
|
+
|
301
|
+
# Custom attribute writer method with validation
|
302
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
303
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
304
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
305
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
306
|
+
end
|
307
|
+
|
308
|
+
@sock_connect_timeout = sock_connect_timeout
|
309
|
+
end
|
310
|
+
|
311
|
+
# Custom attribute writer method with validation
|
312
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
313
|
+
def sock_read_timeout=(sock_read_timeout)
|
314
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
315
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
316
|
+
end
|
317
|
+
|
318
|
+
@sock_read_timeout = sock_read_timeout
|
319
|
+
end
|
320
|
+
|
221
321
|
# Checks equality by comparing each attribute.
|
222
322
|
# @param [Object] Object to be compared
|
223
323
|
def ==(o)
|
@@ -236,7 +336,11 @@ module PulpAnsibleClient
|
|
236
336
|
password == o.password &&
|
237
337
|
pulp_last_updated == o.pulp_last_updated &&
|
238
338
|
download_concurrency == o.download_concurrency &&
|
239
|
-
policy == o.policy
|
339
|
+
policy == o.policy &&
|
340
|
+
total_timeout == o.total_timeout &&
|
341
|
+
connect_timeout == o.connect_timeout &&
|
342
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
343
|
+
sock_read_timeout == o.sock_read_timeout
|
240
344
|
end
|
241
345
|
|
242
346
|
# @see the `==` method
|
@@ -248,7 +352,7 @@ module PulpAnsibleClient
|
|
248
352
|
# Calculates hash code according to all attributes.
|
249
353
|
# @return [Integer] Hash code
|
250
354
|
def hash
|
251
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_last_updated, download_concurrency, policy].hash
|
355
|
+
[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].hash
|
252
356
|
end
|
253
357
|
|
254
358
|
# Builds the object from hash
|