pulp_rpm_client 3.32.0 → 3.32.2
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/ContentModulemdsApi.md +1 -1
- data/docs/Copy.md +1 -1
- data/docs/PatchedrpmRpmRepository.md +1 -1
- data/docs/RpmModulemd.md +3 -3
- data/docs/RpmModulemdDefaults.md +1 -1
- data/docs/RpmModulemdDefaultsResponse.md +1 -1
- data/docs/RpmModulemdResponse.md +3 -3
- data/docs/RpmPackageCategoryResponse.md +3 -3
- data/docs/RpmPackageEnvironmentResponse.md +4 -4
- data/docs/RpmPackageGroupResponse.md +3 -3
- data/docs/RpmPackageLangpacksResponse.md +1 -1
- data/docs/RpmPackageResponse.md +10 -10
- data/docs/RpmRpmPublication.md +1 -1
- data/docs/RpmRpmPublicationResponse.md +1 -1
- data/docs/RpmRpmRemoteResponse.md +1 -1
- data/docs/RpmRpmRepository.md +1 -1
- data/docs/RpmRpmRepositoryResponse.md +1 -1
- data/docs/RpmUlnRemoteResponse.md +1 -1
- data/docs/RpmUpdateCollection.md +1 -1
- data/docs/RpmUpdateCollectionResponse.md +2 -2
- data/docs/RpmUpdateRecordResponse.md +2 -2
- data/lib/pulp_rpm_client/models/copy.rb +1 -0
- data/lib/pulp_rpm_client/models/paginated_repository_version_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_distribution_tree_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_defaults_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_obsolete_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_modulemd_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_package_category_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_package_environment_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_package_group_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_package_langpacks_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_package_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_repo_metadata_file_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_alternate_content_source_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_distribution_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_publication_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_remote_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_rpm_repository_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_uln_remote_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/paginatedrpm_update_record_response_list.rb +2 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +15 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +19 -0
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +15 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +1 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults_response.rb +1 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_package_category_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_package_environment_response.rb +4 -4
- data/lib/pulp_rpm_client/models/rpm_package_group_response.rb +3 -3
- data/lib/pulp_rpm_client/models/rpm_package_langpacks_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_package_response.rb +10 -0
- data/lib/pulp_rpm_client/models/rpm_repository_sync_url.rb +1 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_publication.rb +2 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_publication_response.rb +2 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +15 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +15 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +19 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +20 -0
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +15 -0
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +15 -0
- data/lib/pulp_rpm_client/models/rpm_update_collection.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_update_collection_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- metadata +80 -80
@@ -337,6 +337,10 @@ module PulpRpmClient
|
|
337
337
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
338
338
|
end
|
339
339
|
|
340
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
341
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
342
|
+
end
|
343
|
+
|
340
344
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
341
345
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
342
346
|
end
|
@@ -374,6 +378,7 @@ module PulpRpmClient
|
|
374
378
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
375
379
|
return false if !@username.nil? && @username.to_s.length < 1
|
376
380
|
return false if !@password.nil? && @password.to_s.length < 1
|
381
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
377
382
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
378
383
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
379
384
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -498,6 +503,16 @@ module PulpRpmClient
|
|
498
503
|
@password = password
|
499
504
|
end
|
500
505
|
|
506
|
+
# Custom attribute writer method with validation
|
507
|
+
# @param [Object] download_concurrency Value to be assigned
|
508
|
+
def download_concurrency=(download_concurrency)
|
509
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
510
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
511
|
+
end
|
512
|
+
|
513
|
+
@download_concurrency = download_concurrency
|
514
|
+
end
|
515
|
+
|
501
516
|
# Custom attribute writer method with validation
|
502
517
|
# @param [Object] total_timeout Value to be assigned
|
503
518
|
def total_timeout=(total_timeout)
|
@@ -94,11 +94,11 @@ module PulpRpmClient
|
|
94
94
|
:'static_context' => :'Boolean',
|
95
95
|
:'context' => :'String',
|
96
96
|
:'arch' => :'String',
|
97
|
-
:'artifacts' => :'
|
98
|
-
:'dependencies' => :'
|
97
|
+
:'artifacts' => :'Object',
|
98
|
+
:'dependencies' => :'Object',
|
99
99
|
:'packages' => :'Array<String>',
|
100
100
|
:'snippet' => :'String',
|
101
|
-
:'profiles' => :'
|
101
|
+
:'profiles' => :'Object',
|
102
102
|
:'description' => :'String'
|
103
103
|
}
|
104
104
|
end
|
@@ -108,10 +108,10 @@ module PulpRpmClient
|
|
108
108
|
:'static_context' => :'Boolean',
|
109
109
|
:'context' => :'String',
|
110
110
|
:'arch' => :'String',
|
111
|
-
:'artifacts' => :'
|
112
|
-
:'dependencies' => :'
|
111
|
+
:'artifacts' => :'Object',
|
112
|
+
:'dependencies' => :'Object',
|
113
113
|
:'packages' => :'Array<String>',
|
114
|
-
:'profiles' => :'
|
114
|
+
:'profiles' => :'Object',
|
115
115
|
:'description' => :'String'
|
116
116
|
}
|
117
117
|
end
|
@@ -94,9 +94,9 @@ module PulpRpmClient
|
|
94
94
|
:'name' => :'String',
|
95
95
|
:'description' => :'String',
|
96
96
|
:'display_order' => :'Integer',
|
97
|
-
:'group_ids' => :'
|
98
|
-
:'desc_by_lang' => :'
|
99
|
-
:'name_by_lang' => :'
|
97
|
+
:'group_ids' => :'Object',
|
98
|
+
:'desc_by_lang' => :'Object',
|
99
|
+
:'name_by_lang' => :'Object',
|
100
100
|
:'digest' => :'String'
|
101
101
|
}
|
102
102
|
end
|
@@ -98,10 +98,10 @@ module PulpRpmClient
|
|
98
98
|
:'name' => :'String',
|
99
99
|
:'description' => :'String',
|
100
100
|
:'display_order' => :'Integer',
|
101
|
-
:'group_ids' => :'
|
102
|
-
:'option_ids' => :'
|
103
|
-
:'desc_by_lang' => :'
|
104
|
-
:'name_by_lang' => :'
|
101
|
+
:'group_ids' => :'Object',
|
102
|
+
:'option_ids' => :'Object',
|
103
|
+
:'desc_by_lang' => :'Object',
|
104
|
+
:'name_by_lang' => :'Object',
|
105
105
|
:'digest' => :'String'
|
106
106
|
}
|
107
107
|
end
|
@@ -108,10 +108,10 @@ module PulpRpmClient
|
|
108
108
|
:'display_order' => :'Integer',
|
109
109
|
:'name' => :'String',
|
110
110
|
:'description' => :'String',
|
111
|
-
:'packages' => :'
|
111
|
+
:'packages' => :'Object',
|
112
112
|
:'biarch_only' => :'Boolean',
|
113
|
-
:'desc_by_lang' => :'
|
114
|
-
:'name_by_lang' => :'
|
113
|
+
:'desc_by_lang' => :'Object',
|
114
|
+
:'name_by_lang' => :'Object',
|
115
115
|
:'digest' => :'String'
|
116
116
|
}
|
117
117
|
end
|
@@ -83,24 +83,34 @@ module PulpRpmClient
|
|
83
83
|
# URL with more information about the packaged software
|
84
84
|
attr_accessor :url
|
85
85
|
|
86
|
+
# Changelogs that package contains
|
86
87
|
attr_accessor :changelogs
|
87
88
|
|
89
|
+
# Files that package contains
|
88
90
|
attr_accessor :files
|
89
91
|
|
92
|
+
# Capabilities the package requires
|
90
93
|
attr_accessor :requires
|
91
94
|
|
95
|
+
# Capabilities the package provides
|
92
96
|
attr_accessor :provides
|
93
97
|
|
98
|
+
# Capabilities the package conflicts
|
94
99
|
attr_accessor :conflicts
|
95
100
|
|
101
|
+
# Capabilities the package obsoletes
|
96
102
|
attr_accessor :obsoletes
|
97
103
|
|
104
|
+
# Capabilities the package suggests
|
98
105
|
attr_accessor :suggests
|
99
106
|
|
107
|
+
# Capabilities the package enhances
|
100
108
|
attr_accessor :enhances
|
101
109
|
|
110
|
+
# Capabilities the package recommends
|
102
111
|
attr_accessor :recommends
|
103
112
|
|
113
|
+
# Capabilities the package supplements
|
104
114
|
attr_accessor :supplements
|
105
115
|
|
106
116
|
# DEPRECATED: Base location of this package. This field will be removed in a future release of pulp_rpm.
|
@@ -26,6 +26,7 @@ module PulpRpmClient
|
|
26
26
|
# The preferred checksum type used during repo publishes. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
27
27
|
attr_accessor :checksum_type
|
28
28
|
|
29
|
+
# A JSON document describing the config.repo file Pulp should generate for this repo
|
29
30
|
attr_accessor :repo_config
|
30
31
|
|
31
32
|
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
@@ -91,6 +92,7 @@ module PulpRpmClient
|
|
91
92
|
def self.openapi_nullable
|
92
93
|
Set.new([
|
93
94
|
:'repo_config',
|
95
|
+
:'layout'
|
94
96
|
])
|
95
97
|
end
|
96
98
|
|
@@ -52,6 +52,7 @@ module PulpRpmClient
|
|
52
52
|
# REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operational since pulp_rpm 3.25.0 release
|
53
53
|
attr_accessor :sqlite_metadata
|
54
54
|
|
55
|
+
# A JSON document describing the config.repo file Pulp should generate for this repo
|
55
56
|
attr_accessor :repo_config
|
56
57
|
|
57
58
|
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
@@ -135,6 +136,7 @@ module PulpRpmClient
|
|
135
136
|
def self.openapi_nullable
|
136
137
|
Set.new([
|
137
138
|
:'repo_config',
|
139
|
+
:'layout'
|
138
140
|
])
|
139
141
|
end
|
140
142
|
|
@@ -351,6 +351,10 @@ module PulpRpmClient
|
|
351
351
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
352
352
|
end
|
353
353
|
|
354
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
355
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
356
|
+
end
|
357
|
+
|
354
358
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
355
359
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
356
360
|
end
|
@@ -390,6 +394,7 @@ module PulpRpmClient
|
|
390
394
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
391
395
|
return false if !@username.nil? && @username.to_s.length < 1
|
392
396
|
return false if !@password.nil? && @password.to_s.length < 1
|
397
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
393
398
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
394
399
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
395
400
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -506,6 +511,16 @@ module PulpRpmClient
|
|
506
511
|
@password = password
|
507
512
|
end
|
508
513
|
|
514
|
+
# Custom attribute writer method with validation
|
515
|
+
# @param [Object] download_concurrency Value to be assigned
|
516
|
+
def download_concurrency=(download_concurrency)
|
517
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
518
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
519
|
+
end
|
520
|
+
|
521
|
+
@download_concurrency = download_concurrency
|
522
|
+
end
|
523
|
+
|
509
524
|
# Custom attribute writer method with validation
|
510
525
|
# @param [Object] total_timeout Value to be assigned
|
511
526
|
def total_timeout=(total_timeout)
|
@@ -307,6 +307,10 @@ module PulpRpmClient
|
|
307
307
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
308
308
|
end
|
309
309
|
|
310
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
311
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
312
|
+
end
|
313
|
+
|
310
314
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
311
315
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
312
316
|
end
|
@@ -332,6 +336,7 @@ module PulpRpmClient
|
|
332
336
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
333
337
|
return false if @name.nil?
|
334
338
|
return false if @url.nil?
|
339
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
335
340
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
336
341
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
337
342
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -339,6 +344,16 @@ module PulpRpmClient
|
|
339
344
|
true
|
340
345
|
end
|
341
346
|
|
347
|
+
# Custom attribute writer method with validation
|
348
|
+
# @param [Object] download_concurrency Value to be assigned
|
349
|
+
def download_concurrency=(download_concurrency)
|
350
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
351
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
352
|
+
end
|
353
|
+
|
354
|
+
@download_concurrency = download_concurrency
|
355
|
+
end
|
356
|
+
|
342
357
|
# Custom attribute writer method with validation
|
343
358
|
# @param [Object] total_timeout Value to be assigned
|
344
359
|
def total_timeout=(total_timeout)
|
@@ -48,6 +48,7 @@ module PulpRpmClient
|
|
48
48
|
# The preferred checksum type during repo publish. * `unknown` - unknown * `md5` - md5 * `sha1` - sha1 * `sha224` - sha224 * `sha256` - sha256 * `sha384` - sha384 * `sha512` - sha512
|
49
49
|
attr_accessor :checksum_type
|
50
50
|
|
51
|
+
# A JSON document describing the config.repo file Pulp should generate for this repo
|
51
52
|
attr_accessor :repo_config
|
52
53
|
|
53
54
|
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
@@ -131,7 +132,10 @@ module PulpRpmClient
|
|
131
132
|
:'remote',
|
132
133
|
:'metadata_signing_service',
|
133
134
|
:'package_signing_service',
|
135
|
+
:'checksum_type',
|
134
136
|
:'repo_config',
|
137
|
+
:'compression_type',
|
138
|
+
:'layout'
|
135
139
|
])
|
136
140
|
end
|
137
141
|
|
@@ -232,6 +236,10 @@ module PulpRpmClient
|
|
232
236
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
233
237
|
end
|
234
238
|
|
239
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
240
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
241
|
+
end
|
242
|
+
|
235
243
|
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
236
244
|
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
|
237
245
|
end
|
@@ -250,6 +258,7 @@ module PulpRpmClient
|
|
250
258
|
return false if @name.nil?
|
251
259
|
return false if @name.to_s.length < 1
|
252
260
|
return false if !@description.nil? && @description.to_s.length < 1
|
261
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
253
262
|
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
254
263
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
255
264
|
true
|
@@ -279,6 +288,16 @@ module PulpRpmClient
|
|
279
288
|
@description = description
|
280
289
|
end
|
281
290
|
|
291
|
+
# Custom attribute writer method with validation
|
292
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
293
|
+
def retain_repo_versions=(retain_repo_versions)
|
294
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
295
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
296
|
+
end
|
297
|
+
|
298
|
+
@retain_repo_versions = retain_repo_versions
|
299
|
+
end
|
300
|
+
|
282
301
|
# Custom attribute writer method with validation
|
283
302
|
# @param [Object] package_signing_fingerprint Value to be assigned
|
284
303
|
def package_signing_fingerprint=(package_signing_fingerprint)
|
@@ -78,6 +78,7 @@ module PulpRpmClient
|
|
78
78
|
# REMOVED: An option specifying whether Pulp should generate SQLite metadata. Not operation since pulp_rpm 3.25.0 release
|
79
79
|
attr_accessor :sqlite_metadata
|
80
80
|
|
81
|
+
# A JSON document describing the config.repo file Pulp should generate for this repo
|
81
82
|
attr_accessor :repo_config
|
82
83
|
|
83
84
|
# The compression type to use for metadata files. * `zstd` - zstd * `gz` - gz
|
@@ -183,7 +184,11 @@ module PulpRpmClient
|
|
183
184
|
:'remote',
|
184
185
|
:'metadata_signing_service',
|
185
186
|
:'package_signing_service',
|
187
|
+
:'checksum_type',
|
188
|
+
:'package_checksum_type',
|
186
189
|
:'repo_config',
|
190
|
+
:'compression_type',
|
191
|
+
:'layout'
|
187
192
|
])
|
188
193
|
end
|
189
194
|
|
@@ -322,6 +327,10 @@ module PulpRpmClient
|
|
322
327
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
323
328
|
end
|
324
329
|
|
330
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
331
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
332
|
+
end
|
333
|
+
|
325
334
|
if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
326
335
|
invalid_properties.push('invalid value for "package_signing_fingerprint", the character length must be smaller than or equal to 40.')
|
327
336
|
end
|
@@ -354,6 +363,7 @@ module PulpRpmClient
|
|
354
363
|
def valid?
|
355
364
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
356
365
|
return false if @name.nil?
|
366
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
357
367
|
return false if !@package_signing_fingerprint.nil? && @package_signing_fingerprint.to_s.length > 40
|
358
368
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
359
369
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
@@ -363,6 +373,16 @@ module PulpRpmClient
|
|
363
373
|
true
|
364
374
|
end
|
365
375
|
|
376
|
+
# Custom attribute writer method with validation
|
377
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
378
|
+
def retain_repo_versions=(retain_repo_versions)
|
379
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
380
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
381
|
+
end
|
382
|
+
|
383
|
+
@retain_repo_versions = retain_repo_versions
|
384
|
+
end
|
385
|
+
|
366
386
|
# Custom attribute writer method with validation
|
367
387
|
# @param [Object] package_signing_fingerprint Value to be assigned
|
368
388
|
def package_signing_fingerprint=(package_signing_fingerprint)
|
@@ -361,6 +361,10 @@ module PulpRpmClient
|
|
361
361
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
362
362
|
end
|
363
363
|
|
364
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
365
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
366
|
+
end
|
367
|
+
|
364
368
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
365
369
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
366
370
|
end
|
@@ -402,6 +406,7 @@ module PulpRpmClient
|
|
402
406
|
return false if @username.to_s.length < 1
|
403
407
|
return false if @password.nil?
|
404
408
|
return false if @password.to_s.length < 1
|
409
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
405
410
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
406
411
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
407
412
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -526,6 +531,16 @@ module PulpRpmClient
|
|
526
531
|
@password = password
|
527
532
|
end
|
528
533
|
|
534
|
+
# Custom attribute writer method with validation
|
535
|
+
# @param [Object] download_concurrency Value to be assigned
|
536
|
+
def download_concurrency=(download_concurrency)
|
537
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
538
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
539
|
+
end
|
540
|
+
|
541
|
+
@download_concurrency = download_concurrency
|
542
|
+
end
|
543
|
+
|
529
544
|
# Custom attribute writer method with validation
|
530
545
|
# @param [Object] total_timeout Value to be assigned
|
531
546
|
def total_timeout=(total_timeout)
|
@@ -307,6 +307,10 @@ module PulpRpmClient
|
|
307
307
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
308
308
|
end
|
309
309
|
|
310
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
311
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
312
|
+
end
|
313
|
+
|
310
314
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
311
315
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
312
316
|
end
|
@@ -332,6 +336,7 @@ module PulpRpmClient
|
|
332
336
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
333
337
|
return false if @name.nil?
|
334
338
|
return false if @url.nil?
|
339
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
335
340
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
336
341
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
337
342
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
@@ -339,6 +344,16 @@ module PulpRpmClient
|
|
339
344
|
true
|
340
345
|
end
|
341
346
|
|
347
|
+
# Custom attribute writer method with validation
|
348
|
+
# @param [Object] download_concurrency Value to be assigned
|
349
|
+
def download_concurrency=(download_concurrency)
|
350
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
351
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
352
|
+
end
|
353
|
+
|
354
|
+
@download_concurrency = download_concurrency
|
355
|
+
end
|
356
|
+
|
342
357
|
# Custom attribute writer method with validation
|
343
358
|
# @param [Object] total_timeout Value to be assigned
|
344
359
|
def total_timeout=(total_timeout)
|