pulp_rpm_client 3.14.9 → 3.16.2
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 -5
- 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 +1 -1
- data/docs/PatchedrpmRpmRepository.md +3 -3
- data/docs/PatchedrpmUlnRemote.md +1 -1
- 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 +1 -1
- data/docs/RpmRpmRemoteResponse.md +1 -1
- data/docs/RpmRpmRepository.md +3 -3
- data/docs/RpmRpmRepositoryResponse.md +3 -3
- data/docs/RpmUlnRemote.md +1 -1
- data/docs/RpmUlnRemoteResponse.md +1 -1
- data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +12 -0
- data/lib/pulp_rpm_client/api/content_modulemds_api.rb +24 -0
- data/lib/pulp_rpm_client/api/content_packages_api.rb +4 -0
- data/lib/pulp_rpm_client/configuration.rb +2 -2
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_distribution.rb +30 -0
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_remote.rb +166 -1
- data/lib/pulp_rpm_client/models/patchedrpm_rpm_repository.rb +47 -16
- data/lib/pulp_rpm_client/models/patchedrpm_uln_remote.rb +166 -1
- data/lib/pulp_rpm_client/models/rpm_modulemd.rb +114 -0
- data/lib/pulp_rpm_client/models/rpm_modulemd_defaults.rb +57 -0
- data/lib/pulp_rpm_client/models/rpm_package.rb +19 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_distribution.rb +38 -0
- data/lib/pulp_rpm_client/models/rpm_rpm_remote.rb +174 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_remote_response.rb +1 -1
- data/lib/pulp_rpm_client/models/rpm_rpm_repository.rb +51 -16
- data/lib/pulp_rpm_client/models/rpm_rpm_repository_response.rb +17 -16
- data/lib/pulp_rpm_client/models/rpm_uln_remote.rb +182 -1
- data/lib/pulp_rpm_client/models/rpm_uln_remote_response.rb +1 -1
- data/lib/pulp_rpm_client/version.rb +1 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/patchedrpm_rpm_repository_spec.rb +1 -1
- data/spec/models/rpm_rpm_repository_response_spec.rb +1 -1
- data/spec/models/rpm_rpm_repository_spec.rb +1 -1
- metadata +2 -2
@@ -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)
|
@@ -74,7 +74,7 @@ module PulpRpmClient
|
|
74
74
|
# Headers for aiohttp.Clientsession
|
75
75
|
attr_accessor :headers
|
76
76
|
|
77
|
-
# Limits
|
77
|
+
# Limits requests per second for each concurrent downloader
|
78
78
|
attr_accessor :rate_limit
|
79
79
|
|
80
80
|
# Authentication token for SLES repositories.
|
@@ -272,10 +272,50 @@ module PulpRpmClient
|
|
272
272
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
273
273
|
end
|
274
274
|
|
275
|
+
if @name.to_s.length < 1
|
276
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
277
|
+
end
|
278
|
+
|
275
279
|
if @url.nil?
|
276
280
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
277
281
|
end
|
278
282
|
|
283
|
+
if @url.to_s.length < 1
|
284
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
285
|
+
end
|
286
|
+
|
287
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
288
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
289
|
+
end
|
290
|
+
|
291
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
292
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
293
|
+
end
|
294
|
+
|
295
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
296
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
297
|
+
end
|
298
|
+
|
299
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
300
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
301
|
+
end
|
302
|
+
|
303
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
304
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
305
|
+
end
|
306
|
+
|
307
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
308
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
309
|
+
end
|
310
|
+
|
311
|
+
if !@username.nil? && @username.to_s.length < 1
|
312
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
313
|
+
end
|
314
|
+
|
315
|
+
if !@password.nil? && @password.to_s.length < 1
|
316
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
317
|
+
end
|
318
|
+
|
279
319
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
280
320
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
281
321
|
end
|
@@ -296,6 +336,10 @@ module PulpRpmClient
|
|
296
336
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
297
337
|
end
|
298
338
|
|
339
|
+
if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
|
340
|
+
invalid_properties.push('invalid value for "sles_auth_token", the character length must be great than or equal to 1.')
|
341
|
+
end
|
342
|
+
|
299
343
|
invalid_properties
|
300
344
|
end
|
301
345
|
|
@@ -303,15 +347,134 @@ module PulpRpmClient
|
|
303
347
|
# @return true if the model is valid
|
304
348
|
def valid?
|
305
349
|
return false if @name.nil?
|
350
|
+
return false if @name.to_s.length < 1
|
306
351
|
return false if @url.nil?
|
352
|
+
return false if @url.to_s.length < 1
|
353
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
354
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
355
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
356
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
357
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
358
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
359
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
360
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
307
361
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
308
362
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
309
363
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
310
364
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
311
365
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
366
|
+
return false if !@sles_auth_token.nil? && @sles_auth_token.to_s.length < 1
|
312
367
|
true
|
313
368
|
end
|
314
369
|
|
370
|
+
# Custom attribute writer method with validation
|
371
|
+
# @param [Object] name Value to be assigned
|
372
|
+
def name=(name)
|
373
|
+
if name.nil?
|
374
|
+
fail ArgumentError, 'name cannot be nil'
|
375
|
+
end
|
376
|
+
|
377
|
+
if name.to_s.length < 1
|
378
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
379
|
+
end
|
380
|
+
|
381
|
+
@name = name
|
382
|
+
end
|
383
|
+
|
384
|
+
# Custom attribute writer method with validation
|
385
|
+
# @param [Object] url Value to be assigned
|
386
|
+
def url=(url)
|
387
|
+
if url.nil?
|
388
|
+
fail ArgumentError, 'url cannot be nil'
|
389
|
+
end
|
390
|
+
|
391
|
+
if url.to_s.length < 1
|
392
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
393
|
+
end
|
394
|
+
|
395
|
+
@url = url
|
396
|
+
end
|
397
|
+
|
398
|
+
# Custom attribute writer method with validation
|
399
|
+
# @param [Object] ca_cert Value to be assigned
|
400
|
+
def ca_cert=(ca_cert)
|
401
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
402
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
403
|
+
end
|
404
|
+
|
405
|
+
@ca_cert = ca_cert
|
406
|
+
end
|
407
|
+
|
408
|
+
# Custom attribute writer method with validation
|
409
|
+
# @param [Object] client_cert Value to be assigned
|
410
|
+
def client_cert=(client_cert)
|
411
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
412
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
413
|
+
end
|
414
|
+
|
415
|
+
@client_cert = client_cert
|
416
|
+
end
|
417
|
+
|
418
|
+
# Custom attribute writer method with validation
|
419
|
+
# @param [Object] client_key Value to be assigned
|
420
|
+
def client_key=(client_key)
|
421
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
422
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
423
|
+
end
|
424
|
+
|
425
|
+
@client_key = client_key
|
426
|
+
end
|
427
|
+
|
428
|
+
# Custom attribute writer method with validation
|
429
|
+
# @param [Object] proxy_url Value to be assigned
|
430
|
+
def proxy_url=(proxy_url)
|
431
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
432
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
433
|
+
end
|
434
|
+
|
435
|
+
@proxy_url = proxy_url
|
436
|
+
end
|
437
|
+
|
438
|
+
# Custom attribute writer method with validation
|
439
|
+
# @param [Object] proxy_username Value to be assigned
|
440
|
+
def proxy_username=(proxy_username)
|
441
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
442
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
443
|
+
end
|
444
|
+
|
445
|
+
@proxy_username = proxy_username
|
446
|
+
end
|
447
|
+
|
448
|
+
# Custom attribute writer method with validation
|
449
|
+
# @param [Object] proxy_password Value to be assigned
|
450
|
+
def proxy_password=(proxy_password)
|
451
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
452
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
453
|
+
end
|
454
|
+
|
455
|
+
@proxy_password = proxy_password
|
456
|
+
end
|
457
|
+
|
458
|
+
# Custom attribute writer method with validation
|
459
|
+
# @param [Object] username Value to be assigned
|
460
|
+
def username=(username)
|
461
|
+
if !username.nil? && username.to_s.length < 1
|
462
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
463
|
+
end
|
464
|
+
|
465
|
+
@username = username
|
466
|
+
end
|
467
|
+
|
468
|
+
# Custom attribute writer method with validation
|
469
|
+
# @param [Object] password Value to be assigned
|
470
|
+
def password=(password)
|
471
|
+
if !password.nil? && password.to_s.length < 1
|
472
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
473
|
+
end
|
474
|
+
|
475
|
+
@password = password
|
476
|
+
end
|
477
|
+
|
315
478
|
# Custom attribute writer method with validation
|
316
479
|
# @param [Object] download_concurrency Value to be assigned
|
317
480
|
def download_concurrency=(download_concurrency)
|
@@ -362,6 +525,16 @@ module PulpRpmClient
|
|
362
525
|
@sock_read_timeout = sock_read_timeout
|
363
526
|
end
|
364
527
|
|
528
|
+
# Custom attribute writer method with validation
|
529
|
+
# @param [Object] sles_auth_token Value to be assigned
|
530
|
+
def sles_auth_token=(sles_auth_token)
|
531
|
+
if !sles_auth_token.nil? && sles_auth_token.to_s.length < 1
|
532
|
+
fail ArgumentError, 'invalid value for "sles_auth_token", the character length must be great than or equal to 1.'
|
533
|
+
end
|
534
|
+
|
535
|
+
@sles_auth_token = sles_auth_token
|
536
|
+
end
|
537
|
+
|
365
538
|
# Checks equality by comparing each attribute.
|
366
539
|
# @param [Object] Object to be compared
|
367
540
|
def ==(o)
|
@@ -67,7 +67,7 @@ module PulpRpmClient
|
|
67
67
|
# Headers for aiohttp.Clientsession
|
68
68
|
attr_accessor :headers
|
69
69
|
|
70
|
-
# Limits
|
70
|
+
# Limits requests per second for each concurrent downloader
|
71
71
|
attr_accessor :rate_limit
|
72
72
|
|
73
73
|
# Authentication token for SLES repositories.
|