pulpcore_client 3.110.2 → 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.
@@ -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
@@ -66,7 +66,7 @@ module PulpcoreClient
66
66
  if attributes.key?(:'finished_before')
67
67
  self.finished_before = attributes[:'finished_before']
68
68
  else
69
- self.finished_before = '2026-04-07'
69
+ self.finished_before = '2026-04-13'
70
70
  end
71
71
 
72
72
  if attributes.key?(:'states')
@@ -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