pulpcore_client 3.110.3 → 3.111.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/ArtifactDistributionResponse.md +16 -16
- data/docs/ContentOpenpgpPublickeyApi.md +2 -0
- data/docs/PatchedUpstreamPulp.md +12 -0
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/docs/UpstreamPulp.md +12 -0
- data/docs/UpstreamPulpResponse.md +12 -0
- data/docs/UpstreamPulpsApi.md +2 -2
- data/lib/pulpcore_client/api/content_openpgp_publickey_api.rb +3 -0
- data/lib/pulpcore_client/api/upstream_pulps_api.rb +3 -3
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +80 -80
- data/lib/pulpcore_client/models/patched_upstream_pulp.rb +142 -1
- data/lib/pulpcore_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulpcore_client/models/upstream_pulp.rb +142 -1
- data/lib/pulpcore_client/models/upstream_pulp_response.rb +142 -1
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/content_openpgp_publickey_api_spec.rb +1 -0
- data/spec/api/upstream_pulps_api_spec.rb +1 -1
- data/spec/models/artifact_distribution_response_spec.rb +12 -12
- data/spec/models/patched_upstream_pulp_spec.rb +36 -0
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- data/spec/models/upstream_pulp_response_spec.rb +36 -0
- data/spec/models/upstream_pulp_spec.rb +36 -0
- metadata +1 -1
|
@@ -46,6 +46,24 @@ module PulpcoreClient
|
|
|
46
46
|
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
|
47
47
|
attr_accessor :password
|
|
48
48
|
|
|
49
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
50
|
+
attr_accessor :download_concurrency
|
|
51
|
+
|
|
52
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
53
|
+
attr_accessor :max_retries
|
|
54
|
+
|
|
55
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
56
|
+
attr_accessor :total_timeout
|
|
57
|
+
|
|
58
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
59
|
+
attr_accessor :connect_timeout
|
|
60
|
+
|
|
61
|
+
# 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.
|
|
62
|
+
attr_accessor :sock_connect_timeout
|
|
63
|
+
|
|
64
|
+
# 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.
|
|
65
|
+
attr_accessor :sock_read_timeout
|
|
66
|
+
|
|
49
67
|
# Filter distributions on the upstream Pulp using complex filtering. E.g. pulp_label_select=\"foo\" OR pulp_label_select=\"key=val\"
|
|
50
68
|
attr_accessor :q_select
|
|
51
69
|
|
|
@@ -87,6 +105,12 @@ module PulpcoreClient
|
|
|
87
105
|
:'tls_validation' => :'tls_validation',
|
|
88
106
|
:'username' => :'username',
|
|
89
107
|
:'password' => :'password',
|
|
108
|
+
:'download_concurrency' => :'download_concurrency',
|
|
109
|
+
:'max_retries' => :'max_retries',
|
|
110
|
+
:'total_timeout' => :'total_timeout',
|
|
111
|
+
:'connect_timeout' => :'connect_timeout',
|
|
112
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
113
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
90
114
|
:'q_select' => :'q_select',
|
|
91
115
|
:'policy' => :'policy'
|
|
92
116
|
}
|
|
@@ -110,6 +134,12 @@ module PulpcoreClient
|
|
|
110
134
|
:'tls_validation' => :'Boolean',
|
|
111
135
|
:'username' => :'String',
|
|
112
136
|
:'password' => :'String',
|
|
137
|
+
:'download_concurrency' => :'Integer',
|
|
138
|
+
:'max_retries' => :'Integer',
|
|
139
|
+
:'total_timeout' => :'Float',
|
|
140
|
+
:'connect_timeout' => :'Float',
|
|
141
|
+
:'sock_connect_timeout' => :'Float',
|
|
142
|
+
:'sock_read_timeout' => :'Float',
|
|
113
143
|
:'q_select' => :'String',
|
|
114
144
|
:'policy' => :'Policy357Enum'
|
|
115
145
|
}
|
|
@@ -124,6 +154,12 @@ module PulpcoreClient
|
|
|
124
154
|
:'client_key',
|
|
125
155
|
:'username',
|
|
126
156
|
:'password',
|
|
157
|
+
:'download_concurrency',
|
|
158
|
+
:'max_retries',
|
|
159
|
+
:'total_timeout',
|
|
160
|
+
:'connect_timeout',
|
|
161
|
+
:'sock_connect_timeout',
|
|
162
|
+
:'sock_read_timeout',
|
|
127
163
|
:'q_select',
|
|
128
164
|
])
|
|
129
165
|
end
|
|
@@ -183,6 +219,30 @@ module PulpcoreClient
|
|
|
183
219
|
self.password = attributes[:'password']
|
|
184
220
|
end
|
|
185
221
|
|
|
222
|
+
if attributes.key?(:'download_concurrency')
|
|
223
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
if attributes.key?(:'max_retries')
|
|
227
|
+
self.max_retries = attributes[:'max_retries']
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
if attributes.key?(:'total_timeout')
|
|
231
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'connect_timeout')
|
|
235
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
239
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
if attributes.key?(:'sock_read_timeout')
|
|
243
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
244
|
+
end
|
|
245
|
+
|
|
186
246
|
if attributes.key?(:'q_select')
|
|
187
247
|
self.q_select = attributes[:'q_select']
|
|
188
248
|
end
|
|
@@ -233,6 +293,26 @@ module PulpcoreClient
|
|
|
233
293
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
|
234
294
|
end
|
|
235
295
|
|
|
296
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
297
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
301
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
305
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
309
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
313
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
314
|
+
end
|
|
315
|
+
|
|
236
316
|
invalid_properties
|
|
237
317
|
end
|
|
238
318
|
|
|
@@ -249,6 +329,11 @@ module PulpcoreClient
|
|
|
249
329
|
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
|
250
330
|
return false if !@username.nil? && @username.to_s.length < 1
|
|
251
331
|
return false if !@password.nil? && @password.to_s.length < 1
|
|
332
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
333
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
334
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
335
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
336
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
252
337
|
true
|
|
253
338
|
end
|
|
254
339
|
|
|
@@ -354,6 +439,56 @@ module PulpcoreClient
|
|
|
354
439
|
@password = password
|
|
355
440
|
end
|
|
356
441
|
|
|
442
|
+
# Custom attribute writer method with validation
|
|
443
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
444
|
+
def download_concurrency=(download_concurrency)
|
|
445
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
446
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
@download_concurrency = download_concurrency
|
|
450
|
+
end
|
|
451
|
+
|
|
452
|
+
# Custom attribute writer method with validation
|
|
453
|
+
# @param [Object] total_timeout Value to be assigned
|
|
454
|
+
def total_timeout=(total_timeout)
|
|
455
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
456
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
@total_timeout = total_timeout
|
|
460
|
+
end
|
|
461
|
+
|
|
462
|
+
# Custom attribute writer method with validation
|
|
463
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
464
|
+
def connect_timeout=(connect_timeout)
|
|
465
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
466
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
@connect_timeout = connect_timeout
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# Custom attribute writer method with validation
|
|
473
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
474
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
475
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
476
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# Custom attribute writer method with validation
|
|
483
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
484
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
485
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
486
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
@sock_read_timeout = sock_read_timeout
|
|
490
|
+
end
|
|
491
|
+
|
|
357
492
|
# Checks equality by comparing each attribute.
|
|
358
493
|
# @param [Object] Object to be compared
|
|
359
494
|
def ==(o)
|
|
@@ -369,6 +504,12 @@ module PulpcoreClient
|
|
|
369
504
|
tls_validation == o.tls_validation &&
|
|
370
505
|
username == o.username &&
|
|
371
506
|
password == o.password &&
|
|
507
|
+
download_concurrency == o.download_concurrency &&
|
|
508
|
+
max_retries == o.max_retries &&
|
|
509
|
+
total_timeout == o.total_timeout &&
|
|
510
|
+
connect_timeout == o.connect_timeout &&
|
|
511
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
512
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
372
513
|
q_select == o.q_select &&
|
|
373
514
|
policy == o.policy
|
|
374
515
|
end
|
|
@@ -382,7 +523,7 @@ module PulpcoreClient
|
|
|
382
523
|
# Calculates hash code according to all attributes.
|
|
383
524
|
# @return [Integer] Hash code
|
|
384
525
|
def hash
|
|
385
|
-
[name, base_url, api_root, domain, ca_cert, client_cert, client_key, tls_validation, username, password, q_select, policy].hash
|
|
526
|
+
[name, base_url, api_root, domain, ca_cert, client_cert, client_key, tls_validation, username, password, download_concurrency, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, q_select, policy].hash
|
|
386
527
|
end
|
|
387
528
|
|
|
388
529
|
# Builds the object from hash
|
|
@@ -25,12 +25,16 @@ module PulpcoreClient
|
|
|
25
25
|
# A repository version whose content will be used as the initial set of content for the new repository version
|
|
26
26
|
attr_accessor :base_version
|
|
27
27
|
|
|
28
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true.
|
|
29
|
+
attr_accessor :overwrite
|
|
30
|
+
|
|
28
31
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
32
|
def self.attribute_map
|
|
30
33
|
{
|
|
31
34
|
:'add_content_units' => :'add_content_units',
|
|
32
35
|
:'remove_content_units' => :'remove_content_units',
|
|
33
|
-
:'base_version' => :'base_version'
|
|
36
|
+
:'base_version' => :'base_version',
|
|
37
|
+
:'overwrite' => :'overwrite'
|
|
34
38
|
}
|
|
35
39
|
end
|
|
36
40
|
|
|
@@ -44,7 +48,8 @@ module PulpcoreClient
|
|
|
44
48
|
{
|
|
45
49
|
:'add_content_units' => :'Array<String>',
|
|
46
50
|
:'remove_content_units' => :'Array<String>',
|
|
47
|
-
:'base_version' => :'String'
|
|
51
|
+
:'base_version' => :'String',
|
|
52
|
+
:'overwrite' => :'Boolean'
|
|
48
53
|
}
|
|
49
54
|
end
|
|
50
55
|
|
|
@@ -84,6 +89,12 @@ module PulpcoreClient
|
|
|
84
89
|
if attributes.key?(:'base_version')
|
|
85
90
|
self.base_version = attributes[:'base_version']
|
|
86
91
|
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'overwrite')
|
|
94
|
+
self.overwrite = attributes[:'overwrite']
|
|
95
|
+
else
|
|
96
|
+
self.overwrite = true
|
|
97
|
+
end
|
|
87
98
|
end
|
|
88
99
|
|
|
89
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -108,7 +119,8 @@ module PulpcoreClient
|
|
|
108
119
|
self.class == o.class &&
|
|
109
120
|
add_content_units == o.add_content_units &&
|
|
110
121
|
remove_content_units == o.remove_content_units &&
|
|
111
|
-
base_version == o.base_version
|
|
122
|
+
base_version == o.base_version &&
|
|
123
|
+
overwrite == o.overwrite
|
|
112
124
|
end
|
|
113
125
|
|
|
114
126
|
# @see the `==` method
|
|
@@ -120,7 +132,7 @@ module PulpcoreClient
|
|
|
120
132
|
# Calculates hash code according to all attributes.
|
|
121
133
|
# @return [Integer] Hash code
|
|
122
134
|
def hash
|
|
123
|
-
[add_content_units, remove_content_units, base_version].hash
|
|
135
|
+
[add_content_units, remove_content_units, base_version, overwrite].hash
|
|
124
136
|
end
|
|
125
137
|
|
|
126
138
|
# Builds the object from hash
|
|
@@ -46,6 +46,24 @@ module PulpcoreClient
|
|
|
46
46
|
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
|
47
47
|
attr_accessor :password
|
|
48
48
|
|
|
49
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
50
|
+
attr_accessor :download_concurrency
|
|
51
|
+
|
|
52
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
53
|
+
attr_accessor :max_retries
|
|
54
|
+
|
|
55
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
56
|
+
attr_accessor :total_timeout
|
|
57
|
+
|
|
58
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
59
|
+
attr_accessor :connect_timeout
|
|
60
|
+
|
|
61
|
+
# 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.
|
|
62
|
+
attr_accessor :sock_connect_timeout
|
|
63
|
+
|
|
64
|
+
# 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.
|
|
65
|
+
attr_accessor :sock_read_timeout
|
|
66
|
+
|
|
49
67
|
# Filter distributions on the upstream Pulp using complex filtering. E.g. pulp_label_select=\"foo\" OR pulp_label_select=\"key=val\"
|
|
50
68
|
attr_accessor :q_select
|
|
51
69
|
|
|
@@ -87,6 +105,12 @@ module PulpcoreClient
|
|
|
87
105
|
:'tls_validation' => :'tls_validation',
|
|
88
106
|
:'username' => :'username',
|
|
89
107
|
:'password' => :'password',
|
|
108
|
+
:'download_concurrency' => :'download_concurrency',
|
|
109
|
+
:'max_retries' => :'max_retries',
|
|
110
|
+
:'total_timeout' => :'total_timeout',
|
|
111
|
+
:'connect_timeout' => :'connect_timeout',
|
|
112
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
113
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
90
114
|
:'q_select' => :'q_select',
|
|
91
115
|
:'policy' => :'policy'
|
|
92
116
|
}
|
|
@@ -110,6 +134,12 @@ module PulpcoreClient
|
|
|
110
134
|
:'tls_validation' => :'Boolean',
|
|
111
135
|
:'username' => :'String',
|
|
112
136
|
:'password' => :'String',
|
|
137
|
+
:'download_concurrency' => :'Integer',
|
|
138
|
+
:'max_retries' => :'Integer',
|
|
139
|
+
:'total_timeout' => :'Float',
|
|
140
|
+
:'connect_timeout' => :'Float',
|
|
141
|
+
:'sock_connect_timeout' => :'Float',
|
|
142
|
+
:'sock_read_timeout' => :'Float',
|
|
113
143
|
:'q_select' => :'String',
|
|
114
144
|
:'policy' => :'Policy357Enum'
|
|
115
145
|
}
|
|
@@ -124,6 +154,12 @@ module PulpcoreClient
|
|
|
124
154
|
:'client_key',
|
|
125
155
|
:'username',
|
|
126
156
|
:'password',
|
|
157
|
+
:'download_concurrency',
|
|
158
|
+
:'max_retries',
|
|
159
|
+
:'total_timeout',
|
|
160
|
+
:'connect_timeout',
|
|
161
|
+
:'sock_connect_timeout',
|
|
162
|
+
:'sock_read_timeout',
|
|
127
163
|
:'q_select',
|
|
128
164
|
])
|
|
129
165
|
end
|
|
@@ -189,6 +225,30 @@ module PulpcoreClient
|
|
|
189
225
|
self.password = attributes[:'password']
|
|
190
226
|
end
|
|
191
227
|
|
|
228
|
+
if attributes.key?(:'download_concurrency')
|
|
229
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
if attributes.key?(:'max_retries')
|
|
233
|
+
self.max_retries = attributes[:'max_retries']
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
if attributes.key?(:'total_timeout')
|
|
237
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'connect_timeout')
|
|
241
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
245
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
if attributes.key?(:'sock_read_timeout')
|
|
249
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
250
|
+
end
|
|
251
|
+
|
|
192
252
|
if attributes.key?(:'q_select')
|
|
193
253
|
self.q_select = attributes[:'q_select']
|
|
194
254
|
end
|
|
@@ -251,6 +311,26 @@ module PulpcoreClient
|
|
|
251
311
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
|
252
312
|
end
|
|
253
313
|
|
|
314
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
315
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
319
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
323
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
327
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
331
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
332
|
+
end
|
|
333
|
+
|
|
254
334
|
invalid_properties
|
|
255
335
|
end
|
|
256
336
|
|
|
@@ -270,6 +350,11 @@ module PulpcoreClient
|
|
|
270
350
|
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
|
271
351
|
return false if !@username.nil? && @username.to_s.length < 1
|
|
272
352
|
return false if !@password.nil? && @password.to_s.length < 1
|
|
353
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
354
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
355
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
356
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
357
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
273
358
|
true
|
|
274
359
|
end
|
|
275
360
|
|
|
@@ -375,6 +460,56 @@ module PulpcoreClient
|
|
|
375
460
|
@password = password
|
|
376
461
|
end
|
|
377
462
|
|
|
463
|
+
# Custom attribute writer method with validation
|
|
464
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
465
|
+
def download_concurrency=(download_concurrency)
|
|
466
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
467
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
468
|
+
end
|
|
469
|
+
|
|
470
|
+
@download_concurrency = download_concurrency
|
|
471
|
+
end
|
|
472
|
+
|
|
473
|
+
# Custom attribute writer method with validation
|
|
474
|
+
# @param [Object] total_timeout Value to be assigned
|
|
475
|
+
def total_timeout=(total_timeout)
|
|
476
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
477
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
478
|
+
end
|
|
479
|
+
|
|
480
|
+
@total_timeout = total_timeout
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Custom attribute writer method with validation
|
|
484
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
485
|
+
def connect_timeout=(connect_timeout)
|
|
486
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
487
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
488
|
+
end
|
|
489
|
+
|
|
490
|
+
@connect_timeout = connect_timeout
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Custom attribute writer method with validation
|
|
494
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
495
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
496
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
497
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
498
|
+
end
|
|
499
|
+
|
|
500
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
501
|
+
end
|
|
502
|
+
|
|
503
|
+
# Custom attribute writer method with validation
|
|
504
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
505
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
506
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
507
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
@sock_read_timeout = sock_read_timeout
|
|
511
|
+
end
|
|
512
|
+
|
|
378
513
|
# Checks equality by comparing each attribute.
|
|
379
514
|
# @param [Object] Object to be compared
|
|
380
515
|
def ==(o)
|
|
@@ -390,6 +525,12 @@ module PulpcoreClient
|
|
|
390
525
|
tls_validation == o.tls_validation &&
|
|
391
526
|
username == o.username &&
|
|
392
527
|
password == o.password &&
|
|
528
|
+
download_concurrency == o.download_concurrency &&
|
|
529
|
+
max_retries == o.max_retries &&
|
|
530
|
+
total_timeout == o.total_timeout &&
|
|
531
|
+
connect_timeout == o.connect_timeout &&
|
|
532
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
533
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
393
534
|
q_select == o.q_select &&
|
|
394
535
|
policy == o.policy
|
|
395
536
|
end
|
|
@@ -403,7 +544,7 @@ module PulpcoreClient
|
|
|
403
544
|
# Calculates hash code according to all attributes.
|
|
404
545
|
# @return [Integer] Hash code
|
|
405
546
|
def hash
|
|
406
|
-
[name, base_url, api_root, domain, ca_cert, client_cert, client_key, tls_validation, username, password, q_select, policy].hash
|
|
547
|
+
[name, base_url, api_root, domain, ca_cert, client_cert, client_key, tls_validation, username, password, download_concurrency, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, q_select, policy].hash
|
|
407
548
|
end
|
|
408
549
|
|
|
409
550
|
# Builds the object from hash
|
|
@@ -48,6 +48,24 @@ module PulpcoreClient
|
|
|
48
48
|
# If True, TLS peer validation must be performed.
|
|
49
49
|
attr_accessor :tls_validation
|
|
50
50
|
|
|
51
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
52
|
+
attr_accessor :download_concurrency
|
|
53
|
+
|
|
54
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
55
|
+
attr_accessor :max_retries
|
|
56
|
+
|
|
57
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
58
|
+
attr_accessor :total_timeout
|
|
59
|
+
|
|
60
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
61
|
+
attr_accessor :connect_timeout
|
|
62
|
+
|
|
63
|
+
# 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.
|
|
64
|
+
attr_accessor :sock_connect_timeout
|
|
65
|
+
|
|
66
|
+
# 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.
|
|
67
|
+
attr_accessor :sock_read_timeout
|
|
68
|
+
|
|
51
69
|
# List of hidden (write only) fields
|
|
52
70
|
attr_accessor :hidden_fields
|
|
53
71
|
|
|
@@ -96,6 +114,12 @@ module PulpcoreClient
|
|
|
96
114
|
:'ca_cert' => :'ca_cert',
|
|
97
115
|
:'client_cert' => :'client_cert',
|
|
98
116
|
:'tls_validation' => :'tls_validation',
|
|
117
|
+
:'download_concurrency' => :'download_concurrency',
|
|
118
|
+
:'max_retries' => :'max_retries',
|
|
119
|
+
:'total_timeout' => :'total_timeout',
|
|
120
|
+
:'connect_timeout' => :'connect_timeout',
|
|
121
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
122
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
99
123
|
:'hidden_fields' => :'hidden_fields',
|
|
100
124
|
:'q_select' => :'q_select',
|
|
101
125
|
:'last_replication' => :'last_replication',
|
|
@@ -122,6 +146,12 @@ module PulpcoreClient
|
|
|
122
146
|
:'ca_cert' => :'String',
|
|
123
147
|
:'client_cert' => :'String',
|
|
124
148
|
:'tls_validation' => :'Boolean',
|
|
149
|
+
:'download_concurrency' => :'Integer',
|
|
150
|
+
:'max_retries' => :'Integer',
|
|
151
|
+
:'total_timeout' => :'Float',
|
|
152
|
+
:'connect_timeout' => :'Float',
|
|
153
|
+
:'sock_connect_timeout' => :'Float',
|
|
154
|
+
:'sock_read_timeout' => :'Float',
|
|
125
155
|
:'hidden_fields' => :'Array<GenericRemoteResponseHiddenFieldsInner>',
|
|
126
156
|
:'q_select' => :'String',
|
|
127
157
|
:'last_replication' => :'Time',
|
|
@@ -135,6 +165,12 @@ module PulpcoreClient
|
|
|
135
165
|
:'domain',
|
|
136
166
|
:'ca_cert',
|
|
137
167
|
:'client_cert',
|
|
168
|
+
:'download_concurrency',
|
|
169
|
+
:'max_retries',
|
|
170
|
+
:'total_timeout',
|
|
171
|
+
:'connect_timeout',
|
|
172
|
+
:'sock_connect_timeout',
|
|
173
|
+
:'sock_read_timeout',
|
|
138
174
|
:'q_select',
|
|
139
175
|
])
|
|
140
176
|
end
|
|
@@ -204,6 +240,30 @@ module PulpcoreClient
|
|
|
204
240
|
self.tls_validation = attributes[:'tls_validation']
|
|
205
241
|
end
|
|
206
242
|
|
|
243
|
+
if attributes.key?(:'download_concurrency')
|
|
244
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'max_retries')
|
|
248
|
+
self.max_retries = attributes[:'max_retries']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if attributes.key?(:'total_timeout')
|
|
252
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'connect_timeout')
|
|
256
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
260
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
261
|
+
end
|
|
262
|
+
|
|
263
|
+
if attributes.key?(:'sock_read_timeout')
|
|
264
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
265
|
+
end
|
|
266
|
+
|
|
207
267
|
if attributes.key?(:'hidden_fields')
|
|
208
268
|
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
209
269
|
self.hidden_fields = value
|
|
@@ -240,6 +300,26 @@ module PulpcoreClient
|
|
|
240
300
|
invalid_properties.push('invalid value for "api_root", api_root cannot be nil.')
|
|
241
301
|
end
|
|
242
302
|
|
|
303
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
304
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
308
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
312
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
316
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
320
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
321
|
+
end
|
|
322
|
+
|
|
243
323
|
invalid_properties
|
|
244
324
|
end
|
|
245
325
|
|
|
@@ -250,9 +330,64 @@ module PulpcoreClient
|
|
|
250
330
|
return false if @name.nil?
|
|
251
331
|
return false if @base_url.nil?
|
|
252
332
|
return false if @api_root.nil?
|
|
333
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
334
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
335
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
336
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
337
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
253
338
|
true
|
|
254
339
|
end
|
|
255
340
|
|
|
341
|
+
# Custom attribute writer method with validation
|
|
342
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
343
|
+
def download_concurrency=(download_concurrency)
|
|
344
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
345
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
@download_concurrency = download_concurrency
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# Custom attribute writer method with validation
|
|
352
|
+
# @param [Object] total_timeout Value to be assigned
|
|
353
|
+
def total_timeout=(total_timeout)
|
|
354
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
355
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
356
|
+
end
|
|
357
|
+
|
|
358
|
+
@total_timeout = total_timeout
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
# Custom attribute writer method with validation
|
|
362
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
363
|
+
def connect_timeout=(connect_timeout)
|
|
364
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
365
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
@connect_timeout = connect_timeout
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
# Custom attribute writer method with validation
|
|
372
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
373
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
374
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
375
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
376
|
+
end
|
|
377
|
+
|
|
378
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
# Custom attribute writer method with validation
|
|
382
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
383
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
384
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
385
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
@sock_read_timeout = sock_read_timeout
|
|
389
|
+
end
|
|
390
|
+
|
|
256
391
|
# Checks equality by comparing each attribute.
|
|
257
392
|
# @param [Object] Object to be compared
|
|
258
393
|
def ==(o)
|
|
@@ -269,6 +404,12 @@ module PulpcoreClient
|
|
|
269
404
|
ca_cert == o.ca_cert &&
|
|
270
405
|
client_cert == o.client_cert &&
|
|
271
406
|
tls_validation == o.tls_validation &&
|
|
407
|
+
download_concurrency == o.download_concurrency &&
|
|
408
|
+
max_retries == o.max_retries &&
|
|
409
|
+
total_timeout == o.total_timeout &&
|
|
410
|
+
connect_timeout == o.connect_timeout &&
|
|
411
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
412
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
272
413
|
hidden_fields == o.hidden_fields &&
|
|
273
414
|
q_select == o.q_select &&
|
|
274
415
|
last_replication == o.last_replication &&
|
|
@@ -284,7 +425,7 @@ module PulpcoreClient
|
|
|
284
425
|
# Calculates hash code according to all attributes.
|
|
285
426
|
# @return [Integer] Hash code
|
|
286
427
|
def hash
|
|
287
|
-
[pulp_href, prn, pulp_created, pulp_last_updated, name, base_url, api_root, domain, ca_cert, client_cert, tls_validation, hidden_fields, q_select, last_replication, policy].hash
|
|
428
|
+
[pulp_href, prn, pulp_created, pulp_last_updated, name, base_url, api_root, domain, ca_cert, client_cert, tls_validation, download_concurrency, max_retries, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, hidden_fields, q_select, last_replication, policy].hash
|
|
288
429
|
end
|
|
289
430
|
|
|
290
431
|
# Builds the object from hash
|