pulp_rpm_client 3.13.3 → 3.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -6
- data/docs/ContentAdvisoriesApi.md +1 -1
- data/docs/ContentDistributionTreesApi.md +1 -1
- data/docs/ContentModulemdDefaultsApi.md +1 -1
- data/docs/ContentModulemdsApi.md +1 -1
- data/docs/ContentPackagecategoriesApi.md +1 -1
- data/docs/ContentPackageenvironmentsApi.md +1 -1
- data/docs/ContentPackagegroupsApi.md +1 -1
- data/docs/ContentPackagelangpacksApi.md +1 -1
- data/docs/ContentPackagesApi.md +1 -1
- data/docs/ContentRepoMetadataFilesApi.md +1 -1
- data/docs/DistributionsRpmApi.md +1 -1
- data/docs/PatchedrpmRpmRemote.md +7 -5
- data/docs/PatchedrpmRpmRepository.md +5 -5
- data/docs/PatchedrpmUlnRemote.md +7 -5
- data/docs/PublicationsRpmApi.md +1 -1
- data/docs/RemotesRpmApi.md +1 -1
- data/docs/RemotesUlnApi.md +1 -1
- data/docs/RepositoriesRpmApi.md +1 -1
- data/docs/RepositoriesRpmVersionsApi.md +1 -1
- data/docs/RpmCopyApi.md +1 -1
- data/docs/RpmRpmRemote.md +7 -5
- data/docs/RpmRpmRemoteResponse.md +7 -5
- data/docs/RpmRpmRepository.md +5 -5
- data/docs/RpmRpmRepositoryResponse.md +5 -5
- data/docs/RpmUlnRemote.md +7 -5
- data/docs/RpmUlnRemoteResponse.md +7 -5
- data/lib/pulp_rpm_client/configuration.rb +2 -2
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +18 -6
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +19 -18
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +18 -6
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +18 -6
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +18 -6
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +19 -18
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +19 -18
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +18 -6
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +18 -6
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/lib/pulp_rpm_client.rb +0 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/patchedrpm_rpm_remote_spec.rb +6 -0
- data/spec/models/patchedrpm_rpm_repository_spec.rb +1 -1
- data/spec/models/patchedrpm_uln_remote_spec.rb +6 -0
- data/spec/models/rpm_rpm_remote_response_spec.rb +6 -0
- data/spec/models/rpm_rpm_remote_spec.rb +6 -0
- data/spec/models/rpm_rpm_repository_response_spec.rb +1 -1
- data/spec/models/rpm_rpm_repository_spec.rb +1 -1
- data/spec/models/rpm_uln_remote_response_spec.rb +6 -0
- data/spec/models/rpm_uln_remote_spec.rb +6 -0
- metadata +65 -69
- data/docs/NullEnum.md +0 -16
- data/lib/pulp_rpm_client/models/null_enum.rb +0 -35
- data/spec/models/null_enum_spec.rb +0 -35
@@ -24,8 +24,9 @@ module PulpRpmClient
|
|
24
24
|
attr_accessor :description
|
25
25
|
|
26
26
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
27
|
-
attr_accessor :
|
27
|
+
attr_accessor :retain_repo_versions
|
28
28
|
|
29
|
+
# An optional remote to use by default when syncing.
|
29
30
|
attr_accessor :remote
|
30
31
|
|
31
32
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
@@ -58,7 +59,7 @@ module PulpRpmClient
|
|
58
59
|
:'pulp_labels' => :'pulp_labels',
|
59
60
|
:'name' => :'name',
|
60
61
|
:'description' => :'description',
|
61
|
-
:'
|
62
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
62
63
|
:'remote' => :'remote',
|
63
64
|
:'autopublish' => :'autopublish',
|
64
65
|
:'metadata_signing_service' => :'metadata_signing_service',
|
@@ -77,13 +78,13 @@ module PulpRpmClient
|
|
77
78
|
:'pulp_labels' => :'Object',
|
78
79
|
:'name' => :'String',
|
79
80
|
:'description' => :'String',
|
80
|
-
:'
|
81
|
+
:'retain_repo_versions' => :'Integer',
|
81
82
|
:'remote' => :'String',
|
82
83
|
:'autopublish' => :'Boolean',
|
83
84
|
:'metadata_signing_service' => :'String',
|
84
85
|
:'retain_package_versions' => :'Integer',
|
85
|
-
:'metadata_checksum_type' => :'
|
86
|
-
:'package_checksum_type' => :'
|
86
|
+
:'metadata_checksum_type' => :'MetadataChecksumTypeEnum',
|
87
|
+
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
87
88
|
:'gpgcheck' => :'Integer',
|
88
89
|
:'repo_gpgcheck' => :'Integer',
|
89
90
|
:'sqlite_metadata' => :'Boolean'
|
@@ -94,7 +95,7 @@ module PulpRpmClient
|
|
94
95
|
def self.openapi_nullable
|
95
96
|
Set.new([
|
96
97
|
:'description',
|
97
|
-
:'
|
98
|
+
:'retain_repo_versions',
|
98
99
|
:'remote',
|
99
100
|
:'metadata_signing_service',
|
100
101
|
:'metadata_checksum_type',
|
@@ -129,8 +130,8 @@ module PulpRpmClient
|
|
129
130
|
self.description = attributes[:'description']
|
130
131
|
end
|
131
132
|
|
132
|
-
if attributes.key?(:'
|
133
|
-
self.
|
133
|
+
if attributes.key?(:'retain_repo_versions')
|
134
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
134
135
|
end
|
135
136
|
|
136
137
|
if attributes.key?(:'remote')
|
@@ -186,8 +187,8 @@ module PulpRpmClient
|
|
186
187
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
187
188
|
end
|
188
189
|
|
189
|
-
if !@
|
190
|
-
invalid_properties.push('invalid value for "
|
190
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
191
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
191
192
|
end
|
192
193
|
|
193
194
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
@@ -217,7 +218,7 @@ module PulpRpmClient
|
|
217
218
|
# @return true if the model is valid
|
218
219
|
def valid?
|
219
220
|
return false if @name.nil?
|
220
|
-
return false if !@
|
221
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
221
222
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
222
223
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
223
224
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
@@ -227,13 +228,13 @@ module PulpRpmClient
|
|
227
228
|
end
|
228
229
|
|
229
230
|
# Custom attribute writer method with validation
|
230
|
-
# @param [Object]
|
231
|
-
def
|
232
|
-
if !
|
233
|
-
fail ArgumentError, 'invalid value for "
|
231
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
232
|
+
def retain_repo_versions=(retain_repo_versions)
|
233
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
234
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
234
235
|
end
|
235
236
|
|
236
|
-
@
|
237
|
+
@retain_repo_versions = retain_repo_versions
|
237
238
|
end
|
238
239
|
|
239
240
|
# Custom attribute writer method with validation
|
@@ -282,7 +283,7 @@ module PulpRpmClient
|
|
282
283
|
pulp_labels == o.pulp_labels &&
|
283
284
|
name == o.name &&
|
284
285
|
description == o.description &&
|
285
|
-
|
286
|
+
retain_repo_versions == o.retain_repo_versions &&
|
286
287
|
remote == o.remote &&
|
287
288
|
autopublish == o.autopublish &&
|
288
289
|
metadata_signing_service == o.metadata_signing_service &&
|
@@ -303,7 +304,7 @@ module PulpRpmClient
|
|
303
304
|
# Calculates hash code according to all attributes.
|
304
305
|
# @return [Integer] Hash code
|
305
306
|
def hash
|
306
|
-
[pulp_labels, name, description,
|
307
|
+
[pulp_labels, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
307
308
|
end
|
308
309
|
|
309
310
|
# Builds the object from hash
|
@@ -33,8 +33,9 @@ module PulpRpmClient
|
|
33
33
|
attr_accessor :description
|
34
34
|
|
35
35
|
# Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
|
36
|
-
attr_accessor :
|
36
|
+
attr_accessor :retain_repo_versions
|
37
37
|
|
38
|
+
# An optional remote to use by default when syncing.
|
38
39
|
attr_accessor :remote
|
39
40
|
|
40
41
|
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
@@ -71,7 +72,7 @@ module PulpRpmClient
|
|
71
72
|
:'latest_version_href' => :'latest_version_href',
|
72
73
|
:'name' => :'name',
|
73
74
|
:'description' => :'description',
|
74
|
-
:'
|
75
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
75
76
|
:'remote' => :'remote',
|
76
77
|
:'autopublish' => :'autopublish',
|
77
78
|
:'metadata_signing_service' => :'metadata_signing_service',
|
@@ -94,13 +95,13 @@ module PulpRpmClient
|
|
94
95
|
:'latest_version_href' => :'String',
|
95
96
|
:'name' => :'String',
|
96
97
|
:'description' => :'String',
|
97
|
-
:'
|
98
|
+
:'retain_repo_versions' => :'Integer',
|
98
99
|
:'remote' => :'String',
|
99
100
|
:'autopublish' => :'Boolean',
|
100
101
|
:'metadata_signing_service' => :'String',
|
101
102
|
:'retain_package_versions' => :'Integer',
|
102
|
-
:'metadata_checksum_type' => :'
|
103
|
-
:'package_checksum_type' => :'
|
103
|
+
:'metadata_checksum_type' => :'MetadataChecksumTypeEnum',
|
104
|
+
:'package_checksum_type' => :'PackageChecksumTypeEnum',
|
104
105
|
:'gpgcheck' => :'Integer',
|
105
106
|
:'repo_gpgcheck' => :'Integer',
|
106
107
|
:'sqlite_metadata' => :'Boolean'
|
@@ -111,7 +112,7 @@ module PulpRpmClient
|
|
111
112
|
def self.openapi_nullable
|
112
113
|
Set.new([
|
113
114
|
:'description',
|
114
|
-
:'
|
115
|
+
:'retain_repo_versions',
|
115
116
|
:'remote',
|
116
117
|
:'metadata_signing_service',
|
117
118
|
:'metadata_checksum_type',
|
@@ -162,8 +163,8 @@ module PulpRpmClient
|
|
162
163
|
self.description = attributes[:'description']
|
163
164
|
end
|
164
165
|
|
165
|
-
if attributes.key?(:'
|
166
|
-
self.
|
166
|
+
if attributes.key?(:'retain_repo_versions')
|
167
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
167
168
|
end
|
168
169
|
|
169
170
|
if attributes.key?(:'remote')
|
@@ -219,8 +220,8 @@ module PulpRpmClient
|
|
219
220
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
220
221
|
end
|
221
222
|
|
222
|
-
if !@
|
223
|
-
invalid_properties.push('invalid value for "
|
223
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
224
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
224
225
|
end
|
225
226
|
|
226
227
|
if !@retain_package_versions.nil? && @retain_package_versions < 0
|
@@ -250,7 +251,7 @@ module PulpRpmClient
|
|
250
251
|
# @return true if the model is valid
|
251
252
|
def valid?
|
252
253
|
return false if @name.nil?
|
253
|
-
return false if !@
|
254
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
254
255
|
return false if !@retain_package_versions.nil? && @retain_package_versions < 0
|
255
256
|
return false if !@gpgcheck.nil? && @gpgcheck > 1
|
256
257
|
return false if !@gpgcheck.nil? && @gpgcheck < 0
|
@@ -260,13 +261,13 @@ module PulpRpmClient
|
|
260
261
|
end
|
261
262
|
|
262
263
|
# Custom attribute writer method with validation
|
263
|
-
# @param [Object]
|
264
|
-
def
|
265
|
-
if !
|
266
|
-
fail ArgumentError, 'invalid value for "
|
264
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
265
|
+
def retain_repo_versions=(retain_repo_versions)
|
266
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
267
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
267
268
|
end
|
268
269
|
|
269
|
-
@
|
270
|
+
@retain_repo_versions = retain_repo_versions
|
270
271
|
end
|
271
272
|
|
272
273
|
# Custom attribute writer method with validation
|
@@ -319,7 +320,7 @@ module PulpRpmClient
|
|
319
320
|
latest_version_href == o.latest_version_href &&
|
320
321
|
name == o.name &&
|
321
322
|
description == o.description &&
|
322
|
-
|
323
|
+
retain_repo_versions == o.retain_repo_versions &&
|
323
324
|
remote == o.remote &&
|
324
325
|
autopublish == o.autopublish &&
|
325
326
|
metadata_signing_service == o.metadata_signing_service &&
|
@@ -340,7 +341,7 @@ module PulpRpmClient
|
|
340
341
|
# Calculates hash code according to all attributes.
|
341
342
|
# @return [Integer] Hash code
|
342
343
|
def hash
|
343
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description,
|
344
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish, metadata_signing_service, retain_package_versions, metadata_checksum_type, package_checksum_type, gpgcheck, repo_gpgcheck, sqlite_metadata].hash
|
344
345
|
end
|
345
346
|
|
346
347
|
# Builds the object from hash
|
@@ -50,22 +50,25 @@ module PulpRpmClient
|
|
50
50
|
|
51
51
|
attr_accessor :pulp_labels
|
52
52
|
|
53
|
-
# Total number of simultaneous connections.
|
53
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
54
54
|
attr_accessor :download_concurrency
|
55
55
|
|
56
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
57
|
+
attr_accessor :max_retries
|
58
|
+
|
56
59
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
57
60
|
attr_accessor :policy
|
58
61
|
|
59
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
62
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
60
63
|
attr_accessor :total_timeout
|
61
64
|
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
66
|
attr_accessor :connect_timeout
|
64
67
|
|
65
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
68
|
+
# 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.
|
66
69
|
attr_accessor :sock_connect_timeout
|
67
70
|
|
68
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
71
|
+
# 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.
|
69
72
|
attr_accessor :sock_read_timeout
|
70
73
|
|
71
74
|
# Headers for aiohttp.Clientsession
|
@@ -93,6 +96,7 @@ module PulpRpmClient
|
|
93
96
|
:'password' => :'password',
|
94
97
|
:'pulp_labels' => :'pulp_labels',
|
95
98
|
:'download_concurrency' => :'download_concurrency',
|
99
|
+
:'max_retries' => :'max_retries',
|
96
100
|
:'policy' => :'policy',
|
97
101
|
:'total_timeout' => :'total_timeout',
|
98
102
|
:'connect_timeout' => :'connect_timeout',
|
@@ -120,6 +124,7 @@ module PulpRpmClient
|
|
120
124
|
:'password' => :'String',
|
121
125
|
:'pulp_labels' => :'Object',
|
122
126
|
:'download_concurrency' => :'Integer',
|
127
|
+
:'max_retries' => :'Integer',
|
123
128
|
:'policy' => :'PolicyEnum',
|
124
129
|
:'total_timeout' => :'Float',
|
125
130
|
:'connect_timeout' => :'Float',
|
@@ -140,6 +145,8 @@ module PulpRpmClient
|
|
140
145
|
:'proxy_url',
|
141
146
|
:'proxy_username',
|
142
147
|
:'proxy_password',
|
148
|
+
:'download_concurrency',
|
149
|
+
:'max_retries',
|
143
150
|
:'total_timeout',
|
144
151
|
:'connect_timeout',
|
145
152
|
:'sock_connect_timeout',
|
@@ -216,6 +223,10 @@ module PulpRpmClient
|
|
216
223
|
self.download_concurrency = attributes[:'download_concurrency']
|
217
224
|
end
|
218
225
|
|
226
|
+
if attributes.key?(:'max_retries')
|
227
|
+
self.max_retries = attributes[:'max_retries']
|
228
|
+
end
|
229
|
+
|
219
230
|
if attributes.key?(:'policy')
|
220
231
|
self.policy = attributes[:'policy']
|
221
232
|
end
|
@@ -377,6 +388,7 @@ module PulpRpmClient
|
|
377
388
|
password == o.password &&
|
378
389
|
pulp_labels == o.pulp_labels &&
|
379
390
|
download_concurrency == o.download_concurrency &&
|
391
|
+
max_retries == o.max_retries &&
|
380
392
|
policy == o.policy &&
|
381
393
|
total_timeout == o.total_timeout &&
|
382
394
|
connect_timeout == o.connect_timeout &&
|
@@ -396,7 +408,7 @@ module PulpRpmClient
|
|
396
408
|
# Calculates hash code according to all attributes.
|
397
409
|
# @return [Integer] Hash code
|
398
410
|
def hash
|
399
|
-
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, uln_server_base_url].hash
|
411
|
+
[name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, uln_server_base_url].hash
|
400
412
|
end
|
401
413
|
|
402
414
|
# Builds the object from hash
|
@@ -49,22 +49,25 @@ module PulpRpmClient
|
|
49
49
|
# Timestamp of the most recent update of the remote.
|
50
50
|
attr_accessor :pulp_last_updated
|
51
51
|
|
52
|
-
# Total number of simultaneous connections.
|
52
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
53
53
|
attr_accessor :download_concurrency
|
54
54
|
|
55
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
56
|
+
attr_accessor :max_retries
|
57
|
+
|
55
58
|
# The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
|
56
59
|
attr_accessor :policy
|
57
60
|
|
58
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections.
|
61
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
59
62
|
attr_accessor :total_timeout
|
60
63
|
|
61
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections.
|
64
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
62
65
|
attr_accessor :connect_timeout
|
63
66
|
|
64
|
-
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
|
67
|
+
# 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.
|
65
68
|
attr_accessor :sock_connect_timeout
|
66
69
|
|
67
|
-
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
|
70
|
+
# 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.
|
68
71
|
attr_accessor :sock_read_timeout
|
69
72
|
|
70
73
|
# Headers for aiohttp.Clientsession
|
@@ -92,6 +95,7 @@ module PulpRpmClient
|
|
92
95
|
:'pulp_labels' => :'pulp_labels',
|
93
96
|
:'pulp_last_updated' => :'pulp_last_updated',
|
94
97
|
:'download_concurrency' => :'download_concurrency',
|
98
|
+
:'max_retries' => :'max_retries',
|
95
99
|
:'policy' => :'policy',
|
96
100
|
:'total_timeout' => :'total_timeout',
|
97
101
|
:'connect_timeout' => :'connect_timeout',
|
@@ -119,6 +123,7 @@ module PulpRpmClient
|
|
119
123
|
:'pulp_labels' => :'Object',
|
120
124
|
:'pulp_last_updated' => :'DateTime',
|
121
125
|
:'download_concurrency' => :'Integer',
|
126
|
+
:'max_retries' => :'Integer',
|
122
127
|
:'policy' => :'PolicyEnum',
|
123
128
|
:'total_timeout' => :'Float',
|
124
129
|
:'connect_timeout' => :'Float',
|
@@ -136,6 +141,8 @@ module PulpRpmClient
|
|
136
141
|
:'ca_cert',
|
137
142
|
:'client_cert',
|
138
143
|
:'proxy_url',
|
144
|
+
:'download_concurrency',
|
145
|
+
:'max_retries',
|
139
146
|
:'total_timeout',
|
140
147
|
:'connect_timeout',
|
141
148
|
:'sock_connect_timeout',
|
@@ -212,6 +219,10 @@ module PulpRpmClient
|
|
212
219
|
self.download_concurrency = attributes[:'download_concurrency']
|
213
220
|
end
|
214
221
|
|
222
|
+
if attributes.key?(:'max_retries')
|
223
|
+
self.max_retries = attributes[:'max_retries']
|
224
|
+
end
|
225
|
+
|
215
226
|
if attributes.key?(:'policy')
|
216
227
|
self.policy = attributes[:'policy']
|
217
228
|
end
|
@@ -373,6 +384,7 @@ module PulpRpmClient
|
|
373
384
|
pulp_labels == o.pulp_labels &&
|
374
385
|
pulp_last_updated == o.pulp_last_updated &&
|
375
386
|
download_concurrency == o.download_concurrency &&
|
387
|
+
max_retries == o.max_retries &&
|
376
388
|
policy == o.policy &&
|
377
389
|
total_timeout == o.total_timeout &&
|
378
390
|
connect_timeout == o.connect_timeout &&
|
@@ -392,7 +404,7 @@ module PulpRpmClient
|
|
392
404
|
# Calculates hash code according to all attributes.
|
393
405
|
# @return [Integer] Hash code
|
394
406
|
def hash
|
395
|
-
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, username, password, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, uln_server_base_url].hash
|
407
|
+
[pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, username, password, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, uln_server_base_url].hash
|
396
408
|
end
|
397
409
|
|
398
410
|
# Builds the object from hash
|
data/lib/pulp_rpm_client.rb
CHANGED
@@ -26,7 +26,6 @@ require 'pulp_rpm_client/models/content_summary_response'
|
|
26
26
|
require 'pulp_rpm_client/models/copy'
|
27
27
|
require 'pulp_rpm_client/models/image_response'
|
28
28
|
require 'pulp_rpm_client/models/metadata_checksum_type_enum'
|
29
|
-
require 'pulp_rpm_client/models/null_enum'
|
30
29
|
require 'pulp_rpm_client/models/package_checksum_type_enum'
|
31
30
|
require 'pulp_rpm_client/models/paginated_repository_version_response_list'
|
32
31
|
require 'pulp_rpm_client/models/paginatedrpm_distribution_tree_response_list'
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpRpmClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("
|
21
|
+
# uri = URI.parse("https://pulp")
|
22
22
|
# PulpRpmClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpRpmClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("
|
31
|
+
# expect(config.base_url).to eq("https://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("
|
38
|
+
# expect(config.base_url).to eq("https://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -110,6 +110,12 @@ describe 'PatchedrpmRpmRemote' do
|
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
+
describe 'test attribute "max_retries"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
113
119
|
describe 'test attribute "policy"' do
|
114
120
|
it 'should work' do
|
115
121
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -50,7 +50,7 @@ describe 'PatchedrpmRpmRepository' do
|
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "retain_repo_versions"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|