pulp_npm_client 0.1.0a3 → 0.1.0a4
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/Gemfile +1 -1
- data/README.md +8 -8
- data/docs/ContentPackagesApi.md +6 -4
- data/docs/DistributionsNpmApi.md +3 -3
- data/docs/NpmNpmDistribution.md +1 -3
- data/docs/NpmNpmDistributionResponse.md +1 -3
- data/docs/NpmNpmRemote.md +10 -8
- data/docs/NpmNpmRemoteResponse.md +8 -6
- data/docs/NpmNpmRepository.md +3 -1
- data/docs/NpmNpmRepositoryResponse.md +3 -1
- data/docs/NpmPackage.md +2 -0
- data/docs/PatchednpmNpmDistribution.md +1 -3
- data/docs/PatchednpmNpmRemote.md +10 -8
- data/docs/PatchednpmNpmRepository.md +3 -1
- data/docs/PulpNpmPackagesApi.md +1 -1
- data/docs/RemotesNpmApi.md +3 -3
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesNpmApi.md +3 -3
- data/docs/RepositoriesNpmVersionsApi.md +7 -7
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositoryVersionResponse.md +2 -0
- data/lib/pulp_npm_client/api/content_packages_api.rb +23 -4
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +8 -4
- data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +1 -1
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +8 -4
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +8 -4
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +17 -13
- data/lib/pulp_npm_client/api_client.rb +13 -12
- data/lib/pulp_npm_client/api_error.rb +1 -1
- data/lib/pulp_npm_client/configuration.rb +11 -3
- data/lib/pulp_npm_client/models/async_operation_response.rb +1 -1
- data/lib/pulp_npm_client/models/content_summary_response.rb +1 -1
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +44 -17
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +6 -17
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +180 -10
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +20 -8
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +63 -2
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +29 -2
- data/lib/pulp_npm_client/models/npm_package.rb +69 -2
- data/lib/pulp_npm_client/models/npm_package_response.rb +1 -1
- data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +1 -1
- data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +1 -1
- data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +1 -1
- data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +1 -1
- data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +1 -1
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +36 -17
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +172 -10
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +59 -2
- data/lib/pulp_npm_client/models/policy_enum.rb +1 -1
- data/lib/pulp_npm_client/models/{repository_version.rb → repair.rb} +14 -13
- data/lib/pulp_npm_client/models/repository_add_remove_content.rb +3 -3
- data/lib/pulp_npm_client/models/repository_sync_url.rb +1 -1
- data/lib/pulp_npm_client/models/repository_version_response.rb +11 -2
- data/lib/pulp_npm_client/version.rb +2 -2
- data/lib/pulp_npm_client.rb +2 -3
- data/pulp_npm_client.gemspec +2 -2
- data/spec/api/content_packages_api_spec.rb +3 -2
- data/spec/api/distributions_npm_api_spec.rb +2 -2
- data/spec/api/pulp_npm_packages_api_spec.rb +1 -1
- data/spec/api/remotes_npm_api_spec.rb +2 -2
- data/spec/api/repositories_npm_api_spec.rb +2 -2
- data/spec/api/repositories_npm_versions_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/async_operation_response_spec.rb +1 -1
- data/spec/models/content_summary_response_spec.rb +1 -1
- data/spec/models/npm_npm_distribution_response_spec.rb +1 -7
- data/spec/models/npm_npm_distribution_spec.rb +1 -7
- data/spec/models/npm_npm_remote_response_spec.rb +7 -1
- data/spec/models/npm_npm_remote_spec.rb +7 -1
- data/spec/models/npm_npm_repository_response_spec.rb +7 -1
- data/spec/models/npm_npm_repository_spec.rb +7 -1
- data/spec/models/npm_package_response_spec.rb +1 -1
- data/spec/models/npm_package_spec.rb +7 -1
- data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
- data/spec/models/paginatednpm_npm_distribution_response_list_spec.rb +1 -1
- data/spec/models/paginatednpm_npm_remote_response_list_spec.rb +1 -1
- data/spec/models/paginatednpm_npm_repository_response_list_spec.rb +1 -1
- data/spec/models/paginatednpm_package_response_list_spec.rb +1 -1
- data/spec/models/patchednpm_npm_distribution_spec.rb +1 -7
- data/spec/models/patchednpm_npm_remote_spec.rb +7 -1
- data/spec/models/patchednpm_npm_repository_spec.rb +7 -1
- data/spec/models/policy_enum_spec.rb +1 -1
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +8 -8
- data/spec/models/repository_add_remove_content_spec.rb +1 -1
- data/spec/models/repository_sync_url_spec.rb +1 -1
- data/spec/models/repository_version_response_spec.rb +7 -1
- data/spec/spec_helper.rb +1 -1
- metadata +37 -35
- data/docs/ContentSummary.md +0 -21
- data/docs/RepositoryVersion.md +0 -17
- data/lib/pulp_npm_client/models/content_summary.rb +0 -246
- data/spec/models/content_summary_spec.rb +0 -53
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,39 +39,42 @@ module PulpNpmClient
|
|
39
39
|
# The username to authenticte to the proxy.
|
40
40
|
attr_accessor :proxy_username
|
41
41
|
|
42
|
-
# The password to
|
42
|
+
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
43
43
|
attr_accessor :proxy_password
|
44
44
|
|
45
45
|
# The username to be used for authentication when syncing.
|
46
46
|
attr_accessor :username
|
47
47
|
|
48
|
-
# The password to be used for authentication when syncing.
|
48
|
+
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
49
49
|
attr_accessor :password
|
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
|
72
75
|
attr_accessor :headers
|
73
76
|
|
74
|
-
# Limits
|
77
|
+
# Limits requests per second for each concurrent downloader
|
75
78
|
attr_accessor :rate_limit
|
76
79
|
|
77
80
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -90,6 +93,7 @@ module PulpNpmClient
|
|
90
93
|
:'password' => :'password',
|
91
94
|
:'pulp_labels' => :'pulp_labels',
|
92
95
|
:'download_concurrency' => :'download_concurrency',
|
96
|
+
:'max_retries' => :'max_retries',
|
93
97
|
:'policy' => :'policy',
|
94
98
|
:'total_timeout' => :'total_timeout',
|
95
99
|
:'connect_timeout' => :'connect_timeout',
|
@@ -116,6 +120,7 @@ module PulpNpmClient
|
|
116
120
|
:'password' => :'String',
|
117
121
|
:'pulp_labels' => :'Object',
|
118
122
|
:'download_concurrency' => :'Integer',
|
123
|
+
:'max_retries' => :'Integer',
|
119
124
|
:'policy' => :'PolicyEnum',
|
120
125
|
:'total_timeout' => :'Float',
|
121
126
|
:'connect_timeout' => :'Float',
|
@@ -137,6 +142,8 @@ module PulpNpmClient
|
|
137
142
|
:'proxy_password',
|
138
143
|
:'username',
|
139
144
|
:'password',
|
145
|
+
:'download_concurrency',
|
146
|
+
:'max_retries',
|
140
147
|
:'total_timeout',
|
141
148
|
:'connect_timeout',
|
142
149
|
:'sock_connect_timeout',
|
@@ -212,6 +219,10 @@ module PulpNpmClient
|
|
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
|
@@ -247,6 +258,46 @@ module PulpNpmClient
|
|
247
258
|
# @return Array for valid properties with the reasons
|
248
259
|
def list_invalid_properties
|
249
260
|
invalid_properties = Array.new
|
261
|
+
if !@name.nil? && @name.to_s.length < 1
|
262
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
263
|
+
end
|
264
|
+
|
265
|
+
if !@url.nil? && @url.to_s.length < 1
|
266
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
267
|
+
end
|
268
|
+
|
269
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
270
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
271
|
+
end
|
272
|
+
|
273
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
274
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
275
|
+
end
|
276
|
+
|
277
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
278
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
279
|
+
end
|
280
|
+
|
281
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
282
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
283
|
+
end
|
284
|
+
|
285
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
286
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
287
|
+
end
|
288
|
+
|
289
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
290
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
291
|
+
end
|
292
|
+
|
293
|
+
if !@username.nil? && @username.to_s.length < 1
|
294
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
295
|
+
end
|
296
|
+
|
297
|
+
if !@password.nil? && @password.to_s.length < 1
|
298
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
299
|
+
end
|
300
|
+
|
250
301
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
251
302
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
252
303
|
end
|
@@ -273,6 +324,16 @@ module PulpNpmClient
|
|
273
324
|
# Check to see if the all the properties in the model are valid
|
274
325
|
# @return true if the model is valid
|
275
326
|
def valid?
|
327
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
328
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
329
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
330
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
331
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
332
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
333
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
334
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
335
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
336
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
276
337
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
277
338
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
278
339
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
@@ -281,6 +342,106 @@ module PulpNpmClient
|
|
281
342
|
true
|
282
343
|
end
|
283
344
|
|
345
|
+
# Custom attribute writer method with validation
|
346
|
+
# @param [Object] name Value to be assigned
|
347
|
+
def name=(name)
|
348
|
+
if !name.nil? && name.to_s.length < 1
|
349
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
350
|
+
end
|
351
|
+
|
352
|
+
@name = name
|
353
|
+
end
|
354
|
+
|
355
|
+
# Custom attribute writer method with validation
|
356
|
+
# @param [Object] url Value to be assigned
|
357
|
+
def url=(url)
|
358
|
+
if !url.nil? && url.to_s.length < 1
|
359
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
360
|
+
end
|
361
|
+
|
362
|
+
@url = url
|
363
|
+
end
|
364
|
+
|
365
|
+
# Custom attribute writer method with validation
|
366
|
+
# @param [Object] ca_cert Value to be assigned
|
367
|
+
def ca_cert=(ca_cert)
|
368
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
369
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
370
|
+
end
|
371
|
+
|
372
|
+
@ca_cert = ca_cert
|
373
|
+
end
|
374
|
+
|
375
|
+
# Custom attribute writer method with validation
|
376
|
+
# @param [Object] client_cert Value to be assigned
|
377
|
+
def client_cert=(client_cert)
|
378
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
379
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
380
|
+
end
|
381
|
+
|
382
|
+
@client_cert = client_cert
|
383
|
+
end
|
384
|
+
|
385
|
+
# Custom attribute writer method with validation
|
386
|
+
# @param [Object] client_key Value to be assigned
|
387
|
+
def client_key=(client_key)
|
388
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
389
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
390
|
+
end
|
391
|
+
|
392
|
+
@client_key = client_key
|
393
|
+
end
|
394
|
+
|
395
|
+
# Custom attribute writer method with validation
|
396
|
+
# @param [Object] proxy_url Value to be assigned
|
397
|
+
def proxy_url=(proxy_url)
|
398
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
399
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
400
|
+
end
|
401
|
+
|
402
|
+
@proxy_url = proxy_url
|
403
|
+
end
|
404
|
+
|
405
|
+
# Custom attribute writer method with validation
|
406
|
+
# @param [Object] proxy_username Value to be assigned
|
407
|
+
def proxy_username=(proxy_username)
|
408
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
409
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
410
|
+
end
|
411
|
+
|
412
|
+
@proxy_username = proxy_username
|
413
|
+
end
|
414
|
+
|
415
|
+
# Custom attribute writer method with validation
|
416
|
+
# @param [Object] proxy_password Value to be assigned
|
417
|
+
def proxy_password=(proxy_password)
|
418
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
419
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
420
|
+
end
|
421
|
+
|
422
|
+
@proxy_password = proxy_password
|
423
|
+
end
|
424
|
+
|
425
|
+
# Custom attribute writer method with validation
|
426
|
+
# @param [Object] username Value to be assigned
|
427
|
+
def username=(username)
|
428
|
+
if !username.nil? && username.to_s.length < 1
|
429
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
430
|
+
end
|
431
|
+
|
432
|
+
@username = username
|
433
|
+
end
|
434
|
+
|
435
|
+
# Custom attribute writer method with validation
|
436
|
+
# @param [Object] password Value to be assigned
|
437
|
+
def password=(password)
|
438
|
+
if !password.nil? && password.to_s.length < 1
|
439
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
440
|
+
end
|
441
|
+
|
442
|
+
@password = password
|
443
|
+
end
|
444
|
+
|
284
445
|
# Custom attribute writer method with validation
|
285
446
|
# @param [Object] download_concurrency Value to be assigned
|
286
447
|
def download_concurrency=(download_concurrency)
|
@@ -349,6 +510,7 @@ module PulpNpmClient
|
|
349
510
|
password == o.password &&
|
350
511
|
pulp_labels == o.pulp_labels &&
|
351
512
|
download_concurrency == o.download_concurrency &&
|
513
|
+
max_retries == o.max_retries &&
|
352
514
|
policy == o.policy &&
|
353
515
|
total_timeout == o.total_timeout &&
|
354
516
|
connect_timeout == o.connect_timeout &&
|
@@ -367,7 +529,7 @@ module PulpNpmClient
|
|
367
529
|
# Calculates hash code according to all attributes.
|
368
530
|
# @return [Integer] Hash code
|
369
531
|
def hash
|
370
|
-
[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].hash
|
532
|
+
[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].hash
|
371
533
|
end
|
372
534
|
|
373
535
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -23,6 +23,10 @@ module PulpNpmClient
|
|
23
23
|
# An optional description.
|
24
24
|
attr_accessor :description
|
25
25
|
|
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 :retain_repo_versions
|
28
|
+
|
29
|
+
# An optional remote to use by default when syncing.
|
26
30
|
attr_accessor :remote
|
27
31
|
|
28
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -31,6 +35,7 @@ module PulpNpmClient
|
|
31
35
|
:'pulp_labels' => :'pulp_labels',
|
32
36
|
:'name' => :'name',
|
33
37
|
:'description' => :'description',
|
38
|
+
:'retain_repo_versions' => :'retain_repo_versions',
|
34
39
|
:'remote' => :'remote'
|
35
40
|
}
|
36
41
|
end
|
@@ -41,6 +46,7 @@ module PulpNpmClient
|
|
41
46
|
:'pulp_labels' => :'Object',
|
42
47
|
:'name' => :'String',
|
43
48
|
:'description' => :'String',
|
49
|
+
:'retain_repo_versions' => :'Integer',
|
44
50
|
:'remote' => :'String'
|
45
51
|
}
|
46
52
|
end
|
@@ -49,6 +55,7 @@ module PulpNpmClient
|
|
49
55
|
def self.openapi_nullable
|
50
56
|
Set.new([
|
51
57
|
:'description',
|
58
|
+
:'retain_repo_versions',
|
52
59
|
:'remote'
|
53
60
|
])
|
54
61
|
end
|
@@ -80,6 +87,10 @@ module PulpNpmClient
|
|
80
87
|
self.description = attributes[:'description']
|
81
88
|
end
|
82
89
|
|
90
|
+
if attributes.key?(:'retain_repo_versions')
|
91
|
+
self.retain_repo_versions = attributes[:'retain_repo_versions']
|
92
|
+
end
|
93
|
+
|
83
94
|
if attributes.key?(:'remote')
|
84
95
|
self.remote = attributes[:'remote']
|
85
96
|
end
|
@@ -89,15 +100,60 @@ module PulpNpmClient
|
|
89
100
|
# @return Array for valid properties with the reasons
|
90
101
|
def list_invalid_properties
|
91
102
|
invalid_properties = Array.new
|
103
|
+
if !@name.nil? && @name.to_s.length < 1
|
104
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
105
|
+
end
|
106
|
+
|
107
|
+
if !@description.nil? && @description.to_s.length < 1
|
108
|
+
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
109
|
+
end
|
110
|
+
|
111
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
112
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
113
|
+
end
|
114
|
+
|
92
115
|
invalid_properties
|
93
116
|
end
|
94
117
|
|
95
118
|
# Check to see if the all the properties in the model are valid
|
96
119
|
# @return true if the model is valid
|
97
120
|
def valid?
|
121
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
122
|
+
return false if !@description.nil? && @description.to_s.length < 1
|
123
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
98
124
|
true
|
99
125
|
end
|
100
126
|
|
127
|
+
# Custom attribute writer method with validation
|
128
|
+
# @param [Object] name Value to be assigned
|
129
|
+
def name=(name)
|
130
|
+
if !name.nil? && name.to_s.length < 1
|
131
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
132
|
+
end
|
133
|
+
|
134
|
+
@name = name
|
135
|
+
end
|
136
|
+
|
137
|
+
# Custom attribute writer method with validation
|
138
|
+
# @param [Object] description Value to be assigned
|
139
|
+
def description=(description)
|
140
|
+
if !description.nil? && description.to_s.length < 1
|
141
|
+
fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
|
142
|
+
end
|
143
|
+
|
144
|
+
@description = description
|
145
|
+
end
|
146
|
+
|
147
|
+
# Custom attribute writer method with validation
|
148
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
149
|
+
def retain_repo_versions=(retain_repo_versions)
|
150
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
151
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
152
|
+
end
|
153
|
+
|
154
|
+
@retain_repo_versions = retain_repo_versions
|
155
|
+
end
|
156
|
+
|
101
157
|
# Checks equality by comparing each attribute.
|
102
158
|
# @param [Object] Object to be compared
|
103
159
|
def ==(o)
|
@@ -106,6 +162,7 @@ module PulpNpmClient
|
|
106
162
|
pulp_labels == o.pulp_labels &&
|
107
163
|
name == o.name &&
|
108
164
|
description == o.description &&
|
165
|
+
retain_repo_versions == o.retain_repo_versions &&
|
109
166
|
remote == o.remote
|
110
167
|
end
|
111
168
|
|
@@ -118,7 +175,7 @@ module PulpNpmClient
|
|
118
175
|
# Calculates hash code according to all attributes.
|
119
176
|
# @return [Integer] Hash code
|
120
177
|
def hash
|
121
|
-
[pulp_labels, name, description, remote].hash
|
178
|
+
[pulp_labels, name, description, retain_repo_versions, remote].hash
|
122
179
|
end
|
123
180
|
|
124
181
|
# Builds the object from hash
|
@@ -6,29 +6,28 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpNpmClient
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
attr_accessor :base_version
|
16
|
+
class Repair
|
17
|
+
# Will verify that the checksum of all stored files matches what saved in the database. Otherwise only the existence of the files will be checked. Enabled by default
|
18
|
+
attr_accessor :verify_checksums
|
20
19
|
|
21
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
21
|
def self.attribute_map
|
23
22
|
{
|
24
|
-
:'
|
23
|
+
:'verify_checksums' => :'verify_checksums'
|
25
24
|
}
|
26
25
|
end
|
27
26
|
|
28
27
|
# Attribute type mapping.
|
29
28
|
def self.openapi_types
|
30
29
|
{
|
31
|
-
:'
|
30
|
+
:'verify_checksums' => :'Boolean'
|
32
31
|
}
|
33
32
|
end
|
34
33
|
|
@@ -42,19 +41,21 @@ module PulpNpmClient
|
|
42
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
43
42
|
def initialize(attributes = {})
|
44
43
|
if (!attributes.is_a?(Hash))
|
45
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpNpmClient::
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpNpmClient::Repair` initialize method"
|
46
45
|
end
|
47
46
|
|
48
47
|
# check to see if the attribute exists and convert string to symbol for hash key
|
49
48
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
50
49
|
if (!self.class.attribute_map.key?(k.to_sym))
|
51
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpNpmClient::
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpNpmClient::Repair`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
52
51
|
end
|
53
52
|
h[k.to_sym] = v
|
54
53
|
}
|
55
54
|
|
56
|
-
if attributes.key?(:'
|
57
|
-
self.
|
55
|
+
if attributes.key?(:'verify_checksums')
|
56
|
+
self.verify_checksums = attributes[:'verify_checksums']
|
57
|
+
else
|
58
|
+
self.verify_checksums = true
|
58
59
|
end
|
59
60
|
end
|
60
61
|
|
@@ -76,7 +77,7 @@ module PulpNpmClient
|
|
76
77
|
def ==(o)
|
77
78
|
return true if self.equal?(o)
|
78
79
|
self.class == o.class &&
|
79
|
-
|
80
|
+
verify_checksums == o.verify_checksums
|
80
81
|
end
|
81
82
|
|
82
83
|
# @see the `==` method
|
@@ -88,7 +89,7 @@ module PulpNpmClient
|
|
88
89
|
# Calculates hash code according to all attributes.
|
89
90
|
# @return [Integer] Hash code
|
90
91
|
def hash
|
91
|
-
[
|
92
|
+
[verify_checksums].hash
|
92
93
|
end
|
93
94
|
|
94
95
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -36,8 +36,8 @@ module PulpNpmClient
|
|
36
36
|
# Attribute type mapping.
|
37
37
|
def self.openapi_types
|
38
38
|
{
|
39
|
-
:'add_content_units' => :'Array<
|
40
|
-
:'remove_content_units' => :'Array<
|
39
|
+
:'add_content_units' => :'Array<AnyType>',
|
40
|
+
:'remove_content_units' => :'Array<AnyType>',
|
41
41
|
:'base_version' => :'String'
|
42
42
|
}
|
43
43
|
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,6 +22,8 @@ module PulpNpmClient
|
|
22
22
|
|
23
23
|
attr_accessor :number
|
24
24
|
|
25
|
+
attr_accessor :repository
|
26
|
+
|
25
27
|
# A repository version whose content was used as the initial set of content for this repository version
|
26
28
|
attr_accessor :base_version
|
27
29
|
|
@@ -34,6 +36,7 @@ module PulpNpmClient
|
|
34
36
|
:'pulp_href' => :'pulp_href',
|
35
37
|
:'pulp_created' => :'pulp_created',
|
36
38
|
:'number' => :'number',
|
39
|
+
:'repository' => :'repository',
|
37
40
|
:'base_version' => :'base_version',
|
38
41
|
:'content_summary' => :'content_summary'
|
39
42
|
}
|
@@ -45,6 +48,7 @@ module PulpNpmClient
|
|
45
48
|
:'pulp_href' => :'String',
|
46
49
|
:'pulp_created' => :'DateTime',
|
47
50
|
:'number' => :'Integer',
|
51
|
+
:'repository' => :'String',
|
48
52
|
:'base_version' => :'String',
|
49
53
|
:'content_summary' => :'ContentSummaryResponse'
|
50
54
|
}
|
@@ -83,6 +87,10 @@ module PulpNpmClient
|
|
83
87
|
self.number = attributes[:'number']
|
84
88
|
end
|
85
89
|
|
90
|
+
if attributes.key?(:'repository')
|
91
|
+
self.repository = attributes[:'repository']
|
92
|
+
end
|
93
|
+
|
86
94
|
if attributes.key?(:'base_version')
|
87
95
|
self.base_version = attributes[:'base_version']
|
88
96
|
end
|
@@ -113,6 +121,7 @@ module PulpNpmClient
|
|
113
121
|
pulp_href == o.pulp_href &&
|
114
122
|
pulp_created == o.pulp_created &&
|
115
123
|
number == o.number &&
|
124
|
+
repository == o.repository &&
|
116
125
|
base_version == o.base_version &&
|
117
126
|
content_summary == o.content_summary
|
118
127
|
end
|
@@ -126,7 +135,7 @@ module PulpNpmClient
|
|
126
135
|
# Calculates hash code according to all attributes.
|
127
136
|
# @return [Integer] Hash code
|
128
137
|
def hash
|
129
|
-
[pulp_href, pulp_created, number, base_version, content_summary].hash
|
138
|
+
[pulp_href, pulp_created, number, repository, base_version, content_summary].hash
|
130
139
|
end
|
131
140
|
|
132
141
|
# Builds the object from hash
|
@@ -6,10 +6,10 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module PulpNpmClient
|
14
|
-
VERSION = '0.1.
|
14
|
+
VERSION = '0.1.0a4'
|
15
15
|
end
|
data/lib/pulp_npm_client.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,7 +18,6 @@ require 'pulp_npm_client/configuration'
|
|
18
18
|
|
19
19
|
# Models
|
20
20
|
require 'pulp_npm_client/models/async_operation_response'
|
21
|
-
require 'pulp_npm_client/models/content_summary'
|
22
21
|
require 'pulp_npm_client/models/content_summary_response'
|
23
22
|
require 'pulp_npm_client/models/npm_npm_distribution'
|
24
23
|
require 'pulp_npm_client/models/npm_npm_distribution_response'
|
@@ -37,9 +36,9 @@ require 'pulp_npm_client/models/patchednpm_npm_distribution'
|
|
37
36
|
require 'pulp_npm_client/models/patchednpm_npm_remote'
|
38
37
|
require 'pulp_npm_client/models/patchednpm_npm_repository'
|
39
38
|
require 'pulp_npm_client/models/policy_enum'
|
39
|
+
require 'pulp_npm_client/models/repair'
|
40
40
|
require 'pulp_npm_client/models/repository_add_remove_content'
|
41
41
|
require 'pulp_npm_client/models/repository_sync_url'
|
42
|
-
require 'pulp_npm_client/models/repository_version'
|
43
42
|
require 'pulp_npm_client/models/repository_version_response'
|
44
43
|
|
45
44
|
# APIs
|
data/pulp_npm_client.gemspec
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
The version of the OpenAPI document: v3
|
9
9
|
Contact: pulp-list@redhat.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version: 4.
|
11
|
+
OpenAPI Generator version: 4.3.1
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
|
|
27
27
|
s.license = 'GPL-2.0+'
|
28
28
|
s.required_ruby_version = ">= 1.9"
|
29
29
|
|
30
|
-
s.add_runtime_dependency 'faraday', '
|
30
|
+
s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
|
31
31
|
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
32
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -42,6 +42,7 @@ describe 'ContentPackagesApi' do
|
|
42
42
|
# @option opts [String] :artifact Artifact file representing the physical content
|
43
43
|
# @option opts [File] :file An uploaded file that may be turned into the artifact of the content unit.
|
44
44
|
# @option opts [String] :repository A URI of a repository the new content unit should be associated with.
|
45
|
+
# @option opts [String] :upload An uncommitted upload that may be turned into the artifact of the content unit.
|
45
46
|
# @return [NpmPackageResponse]
|
46
47
|
describe 'create test' do
|
47
48
|
it 'should work' do
|
@@ -57,7 +58,7 @@ describe 'ContentPackagesApi' do
|
|
57
58
|
# @option opts [String] :name Filter results where name matches value
|
58
59
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
59
60
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
60
|
-
# @option opts [String] :ordering
|
61
|
+
# @option opts [Array<String>] :ordering Ordering
|
61
62
|
# @option opts [String] :repository_version Repository Version referenced by HREF
|
62
63
|
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
63
64
|
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|