pulp_rpm_client 3.16.1 → 3.16.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -74,7 +74,7 @@ module PulpRpmClient
74
74
  # Headers for aiohttp.Clientsession
75
75
  attr_accessor :headers
76
76
 
77
- # Limits total download rate in requests per second
77
+ # Limits requests per second for each concurrent downloader
78
78
  attr_accessor :rate_limit
79
79
 
80
80
  # Base URL of the ULN server. If the uln_server_base_url is not provided pulp_rpm willuse the contents of the DEFAULT_ULN_SERVER_BASE_URL setting instead.
@@ -266,6 +266,46 @@ module PulpRpmClient
266
266
  # @return Array for valid properties with the reasons
267
267
  def list_invalid_properties
268
268
  invalid_properties = Array.new
269
+ if !@name.nil? && @name.to_s.length < 1
270
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
271
+ end
272
+
273
+ if !@url.nil? && @url.to_s.length < 1
274
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
275
+ end
276
+
277
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
278
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
279
+ end
280
+
281
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
282
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
283
+ end
284
+
285
+ if !@client_key.nil? && @client_key.to_s.length < 1
286
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
287
+ end
288
+
289
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
290
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
291
+ end
292
+
293
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
294
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
295
+ end
296
+
297
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
298
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
299
+ end
300
+
301
+ if !@username.nil? && @username.to_s.length < 1
302
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
303
+ end
304
+
305
+ if !@password.nil? && @password.to_s.length < 1
306
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
307
+ end
308
+
269
309
  if !@download_concurrency.nil? && @download_concurrency < 1
270
310
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
271
311
  end
@@ -286,20 +326,135 @@ module PulpRpmClient
286
326
  invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
287
327
  end
288
328
 
329
+ if !@uln_server_base_url.nil? && @uln_server_base_url.to_s.length < 1
330
+ invalid_properties.push('invalid value for "uln_server_base_url", the character length must be great than or equal to 1.')
331
+ end
332
+
289
333
  invalid_properties
290
334
  end
291
335
 
292
336
  # Check to see if the all the properties in the model are valid
293
337
  # @return true if the model is valid
294
338
  def valid?
339
+ return false if !@name.nil? && @name.to_s.length < 1
340
+ return false if !@url.nil? && @url.to_s.length < 1
341
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
342
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
343
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
344
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
345
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
346
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
347
+ return false if !@username.nil? && @username.to_s.length < 1
348
+ return false if !@password.nil? && @password.to_s.length < 1
295
349
  return false if !@download_concurrency.nil? && @download_concurrency < 1
296
350
  return false if !@total_timeout.nil? && @total_timeout < 0.0
297
351
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
298
352
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
299
353
  return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
354
+ return false if !@uln_server_base_url.nil? && @uln_server_base_url.to_s.length < 1
300
355
  true
301
356
  end
302
357
 
358
+ # Custom attribute writer method with validation
359
+ # @param [Object] name Value to be assigned
360
+ def name=(name)
361
+ if !name.nil? && name.to_s.length < 1
362
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
363
+ end
364
+
365
+ @name = name
366
+ end
367
+
368
+ # Custom attribute writer method with validation
369
+ # @param [Object] url Value to be assigned
370
+ def url=(url)
371
+ if !url.nil? && url.to_s.length < 1
372
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
373
+ end
374
+
375
+ @url = url
376
+ end
377
+
378
+ # Custom attribute writer method with validation
379
+ # @param [Object] ca_cert Value to be assigned
380
+ def ca_cert=(ca_cert)
381
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
382
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
383
+ end
384
+
385
+ @ca_cert = ca_cert
386
+ end
387
+
388
+ # Custom attribute writer method with validation
389
+ # @param [Object] client_cert Value to be assigned
390
+ def client_cert=(client_cert)
391
+ if !client_cert.nil? && client_cert.to_s.length < 1
392
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
393
+ end
394
+
395
+ @client_cert = client_cert
396
+ end
397
+
398
+ # Custom attribute writer method with validation
399
+ # @param [Object] client_key Value to be assigned
400
+ def client_key=(client_key)
401
+ if !client_key.nil? && client_key.to_s.length < 1
402
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
403
+ end
404
+
405
+ @client_key = client_key
406
+ end
407
+
408
+ # Custom attribute writer method with validation
409
+ # @param [Object] proxy_url Value to be assigned
410
+ def proxy_url=(proxy_url)
411
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
412
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
413
+ end
414
+
415
+ @proxy_url = proxy_url
416
+ end
417
+
418
+ # Custom attribute writer method with validation
419
+ # @param [Object] proxy_username Value to be assigned
420
+ def proxy_username=(proxy_username)
421
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
422
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
423
+ end
424
+
425
+ @proxy_username = proxy_username
426
+ end
427
+
428
+ # Custom attribute writer method with validation
429
+ # @param [Object] proxy_password Value to be assigned
430
+ def proxy_password=(proxy_password)
431
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
432
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
433
+ end
434
+
435
+ @proxy_password = proxy_password
436
+ end
437
+
438
+ # Custom attribute writer method with validation
439
+ # @param [Object] username Value to be assigned
440
+ def username=(username)
441
+ if !username.nil? && username.to_s.length < 1
442
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
443
+ end
444
+
445
+ @username = username
446
+ end
447
+
448
+ # Custom attribute writer method with validation
449
+ # @param [Object] password Value to be assigned
450
+ def password=(password)
451
+ if !password.nil? && password.to_s.length < 1
452
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
453
+ end
454
+
455
+ @password = password
456
+ end
457
+
303
458
  # Custom attribute writer method with validation
304
459
  # @param [Object] download_concurrency Value to be assigned
305
460
  def download_concurrency=(download_concurrency)
@@ -350,6 +505,16 @@ module PulpRpmClient
350
505
  @sock_read_timeout = sock_read_timeout
351
506
  end
352
507
 
508
+ # Custom attribute writer method with validation
509
+ # @param [Object] uln_server_base_url Value to be assigned
510
+ def uln_server_base_url=(uln_server_base_url)
511
+ if !uln_server_base_url.nil? && uln_server_base_url.to_s.length < 1
512
+ fail ArgumentError, 'invalid value for "uln_server_base_url", the character length must be great than or equal to 1.'
513
+ end
514
+
515
+ @uln_server_base_url = uln_server_base_url
516
+ end
517
+
353
518
  # Checks equality by comparing each attribute.
354
519
  # @param [Object] Object to be compared
355
520
  def ==(o)
@@ -178,26 +178,50 @@ module PulpRpmClient
178
178
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
179
179
  end
180
180
 
181
+ if @relative_path.to_s.length < 1
182
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
183
+ end
184
+
181
185
  if @name.nil?
182
186
  invalid_properties.push('invalid value for "name", name cannot be nil.')
183
187
  end
184
188
 
189
+ if @name.to_s.length < 1
190
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
191
+ end
192
+
185
193
  if @stream.nil?
186
194
  invalid_properties.push('invalid value for "stream", stream cannot be nil.')
187
195
  end
188
196
 
197
+ if @stream.to_s.length < 1
198
+ invalid_properties.push('invalid value for "stream", the character length must be great than or equal to 1.')
199
+ end
200
+
189
201
  if @version.nil?
190
202
  invalid_properties.push('invalid value for "version", version cannot be nil.')
191
203
  end
192
204
 
205
+ if @version.to_s.length < 1
206
+ invalid_properties.push('invalid value for "version", the character length must be great than or equal to 1.')
207
+ end
208
+
193
209
  if @context.nil?
194
210
  invalid_properties.push('invalid value for "context", context cannot be nil.')
195
211
  end
196
212
 
213
+ if @context.to_s.length < 1
214
+ invalid_properties.push('invalid value for "context", the character length must be great than or equal to 1.')
215
+ end
216
+
197
217
  if @arch.nil?
198
218
  invalid_properties.push('invalid value for "arch", arch cannot be nil.')
199
219
  end
200
220
 
221
+ if @arch.to_s.length < 1
222
+ invalid_properties.push('invalid value for "arch", the character length must be great than or equal to 1.')
223
+ end
224
+
201
225
  invalid_properties
202
226
  end
203
227
 
@@ -205,14 +229,104 @@ module PulpRpmClient
205
229
  # @return true if the model is valid
206
230
  def valid?
207
231
  return false if @relative_path.nil?
232
+ return false if @relative_path.to_s.length < 1
208
233
  return false if @name.nil?
234
+ return false if @name.to_s.length < 1
209
235
  return false if @stream.nil?
236
+ return false if @stream.to_s.length < 1
210
237
  return false if @version.nil?
238
+ return false if @version.to_s.length < 1
211
239
  return false if @context.nil?
240
+ return false if @context.to_s.length < 1
212
241
  return false if @arch.nil?
242
+ return false if @arch.to_s.length < 1
213
243
  true
214
244
  end
215
245
 
246
+ # Custom attribute writer method with validation
247
+ # @param [Object] relative_path Value to be assigned
248
+ def relative_path=(relative_path)
249
+ if relative_path.nil?
250
+ fail ArgumentError, 'relative_path cannot be nil'
251
+ end
252
+
253
+ if relative_path.to_s.length < 1
254
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
255
+ end
256
+
257
+ @relative_path = relative_path
258
+ end
259
+
260
+ # Custom attribute writer method with validation
261
+ # @param [Object] name Value to be assigned
262
+ def name=(name)
263
+ if name.nil?
264
+ fail ArgumentError, 'name cannot be nil'
265
+ end
266
+
267
+ if name.to_s.length < 1
268
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
269
+ end
270
+
271
+ @name = name
272
+ end
273
+
274
+ # Custom attribute writer method with validation
275
+ # @param [Object] stream Value to be assigned
276
+ def stream=(stream)
277
+ if stream.nil?
278
+ fail ArgumentError, 'stream cannot be nil'
279
+ end
280
+
281
+ if stream.to_s.length < 1
282
+ fail ArgumentError, 'invalid value for "stream", the character length must be great than or equal to 1.'
283
+ end
284
+
285
+ @stream = stream
286
+ end
287
+
288
+ # Custom attribute writer method with validation
289
+ # @param [Object] version Value to be assigned
290
+ def version=(version)
291
+ if version.nil?
292
+ fail ArgumentError, 'version cannot be nil'
293
+ end
294
+
295
+ if version.to_s.length < 1
296
+ fail ArgumentError, 'invalid value for "version", the character length must be great than or equal to 1.'
297
+ end
298
+
299
+ @version = version
300
+ end
301
+
302
+ # Custom attribute writer method with validation
303
+ # @param [Object] context Value to be assigned
304
+ def context=(context)
305
+ if context.nil?
306
+ fail ArgumentError, 'context cannot be nil'
307
+ end
308
+
309
+ if context.to_s.length < 1
310
+ fail ArgumentError, 'invalid value for "context", the character length must be great than or equal to 1.'
311
+ end
312
+
313
+ @context = context
314
+ end
315
+
316
+ # Custom attribute writer method with validation
317
+ # @param [Object] arch Value to be assigned
318
+ def arch=(arch)
319
+ if arch.nil?
320
+ fail ArgumentError, 'arch cannot be nil'
321
+ end
322
+
323
+ if arch.to_s.length < 1
324
+ fail ArgumentError, 'invalid value for "arch", the character length must be great than or equal to 1.'
325
+ end
326
+
327
+ @arch = arch
328
+ end
329
+
216
330
  # Checks equality by comparing each attribute.
217
331
  # @param [Object] Object to be compared
218
332
  def ==(o)
@@ -120,14 +120,26 @@ module PulpRpmClient
120
120
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
121
121
  end
122
122
 
123
+ if @relative_path.to_s.length < 1
124
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
125
+ end
126
+
123
127
  if @_module.nil?
124
128
  invalid_properties.push('invalid value for "_module", _module cannot be nil.')
125
129
  end
126
130
 
131
+ if @_module.to_s.length < 1
132
+ invalid_properties.push('invalid value for "_module", the character length must be great than or equal to 1.')
133
+ end
134
+
127
135
  if @stream.nil?
128
136
  invalid_properties.push('invalid value for "stream", stream cannot be nil.')
129
137
  end
130
138
 
139
+ if @stream.to_s.length < 1
140
+ invalid_properties.push('invalid value for "stream", the character length must be great than or equal to 1.')
141
+ end
142
+
131
143
  if @profiles.nil?
132
144
  invalid_properties.push('invalid value for "profiles", profiles cannot be nil.')
133
145
  end
@@ -139,12 +151,57 @@ module PulpRpmClient
139
151
  # @return true if the model is valid
140
152
  def valid?
141
153
  return false if @relative_path.nil?
154
+ return false if @relative_path.to_s.length < 1
142
155
  return false if @_module.nil?
156
+ return false if @_module.to_s.length < 1
143
157
  return false if @stream.nil?
158
+ return false if @stream.to_s.length < 1
144
159
  return false if @profiles.nil?
145
160
  true
146
161
  end
147
162
 
163
+ # Custom attribute writer method with validation
164
+ # @param [Object] relative_path Value to be assigned
165
+ def relative_path=(relative_path)
166
+ if relative_path.nil?
167
+ fail ArgumentError, 'relative_path cannot be nil'
168
+ end
169
+
170
+ if relative_path.to_s.length < 1
171
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
172
+ end
173
+
174
+ @relative_path = relative_path
175
+ end
176
+
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] _module Value to be assigned
179
+ def _module=(_module)
180
+ if _module.nil?
181
+ fail ArgumentError, '_module cannot be nil'
182
+ end
183
+
184
+ if _module.to_s.length < 1
185
+ fail ArgumentError, 'invalid value for "_module", the character length must be great than or equal to 1.'
186
+ end
187
+
188
+ @_module = _module
189
+ end
190
+
191
+ # Custom attribute writer method with validation
192
+ # @param [Object] stream Value to be assigned
193
+ def stream=(stream)
194
+ if stream.nil?
195
+ fail ArgumentError, 'stream cannot be nil'
196
+ end
197
+
198
+ if stream.to_s.length < 1
199
+ fail ArgumentError, 'invalid value for "stream", the character length must be great than or equal to 1.'
200
+ end
201
+
202
+ @stream = stream
203
+ end
204
+
148
205
  # Checks equality by comparing each attribute.
149
206
  # @param [Object] Object to be compared
150
207
  def ==(o)
@@ -93,6 +93,10 @@ module PulpRpmClient
93
93
  invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
94
94
  end
95
95
 
96
+ if @relative_path.to_s.length < 1
97
+ invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
98
+ end
99
+
96
100
  invalid_properties
97
101
  end
98
102
 
@@ -100,9 +104,24 @@ module PulpRpmClient
100
104
  # @return true if the model is valid
101
105
  def valid?
102
106
  return false if @relative_path.nil?
107
+ return false if @relative_path.to_s.length < 1
103
108
  true
104
109
  end
105
110
 
111
+ # Custom attribute writer method with validation
112
+ # @param [Object] relative_path Value to be assigned
113
+ def relative_path=(relative_path)
114
+ if relative_path.nil?
115
+ fail ArgumentError, 'relative_path cannot be nil'
116
+ end
117
+
118
+ if relative_path.to_s.length < 1
119
+ fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
120
+ end
121
+
122
+ @relative_path = relative_path
123
+ end
124
+
106
125
  # Checks equality by comparing each attribute.
107
126
  # @param [Object] Object to be compared
108
127
  def ==(o)
@@ -113,10 +113,18 @@ module PulpRpmClient
113
113
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
114
114
  end
115
115
 
116
+ if @base_path.to_s.length < 1
117
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
118
+ end
119
+
116
120
  if @name.nil?
117
121
  invalid_properties.push('invalid value for "name", name cannot be nil.')
118
122
  end
119
123
 
124
+ if @name.to_s.length < 1
125
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
126
+ end
127
+
120
128
  invalid_properties
121
129
  end
122
130
 
@@ -124,10 +132,40 @@ module PulpRpmClient
124
132
  # @return true if the model is valid
125
133
  def valid?
126
134
  return false if @base_path.nil?
135
+ return false if @base_path.to_s.length < 1
127
136
  return false if @name.nil?
137
+ return false if @name.to_s.length < 1
128
138
  true
129
139
  end
130
140
 
141
+ # Custom attribute writer method with validation
142
+ # @param [Object] base_path Value to be assigned
143
+ def base_path=(base_path)
144
+ if base_path.nil?
145
+ fail ArgumentError, 'base_path cannot be nil'
146
+ end
147
+
148
+ if base_path.to_s.length < 1
149
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
150
+ end
151
+
152
+ @base_path = base_path
153
+ end
154
+
155
+ # Custom attribute writer method with validation
156
+ # @param [Object] name Value to be assigned
157
+ def name=(name)
158
+ if name.nil?
159
+ fail ArgumentError, 'name cannot be nil'
160
+ end
161
+
162
+ if name.to_s.length < 1
163
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
164
+ end
165
+
166
+ @name = name
167
+ end
168
+
131
169
  # Checks equality by comparing each attribute.
132
170
  # @param [Object] Object to be compared
133
171
  def ==(o)