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.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +8 -8
  4. data/docs/ContentPackagesApi.md +6 -4
  5. data/docs/DistributionsNpmApi.md +3 -3
  6. data/docs/NpmNpmDistribution.md +1 -3
  7. data/docs/NpmNpmDistributionResponse.md +1 -3
  8. data/docs/NpmNpmRemote.md +10 -8
  9. data/docs/NpmNpmRemoteResponse.md +8 -6
  10. data/docs/NpmNpmRepository.md +3 -1
  11. data/docs/NpmNpmRepositoryResponse.md +3 -1
  12. data/docs/NpmPackage.md +2 -0
  13. data/docs/PatchednpmNpmDistribution.md +1 -3
  14. data/docs/PatchednpmNpmRemote.md +10 -8
  15. data/docs/PatchednpmNpmRepository.md +3 -1
  16. data/docs/PulpNpmPackagesApi.md +1 -1
  17. data/docs/RemotesNpmApi.md +3 -3
  18. data/docs/Repair.md +17 -0
  19. data/docs/RepositoriesNpmApi.md +3 -3
  20. data/docs/RepositoriesNpmVersionsApi.md +7 -7
  21. data/docs/RepositoryAddRemoveContent.md +2 -2
  22. data/docs/RepositoryVersionResponse.md +2 -0
  23. data/lib/pulp_npm_client/api/content_packages_api.rb +23 -4
  24. data/lib/pulp_npm_client/api/distributions_npm_api.rb +8 -4
  25. data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +1 -1
  26. data/lib/pulp_npm_client/api/remotes_npm_api.rb +8 -4
  27. data/lib/pulp_npm_client/api/repositories_npm_api.rb +8 -4
  28. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +17 -13
  29. data/lib/pulp_npm_client/api_client.rb +13 -12
  30. data/lib/pulp_npm_client/api_error.rb +1 -1
  31. data/lib/pulp_npm_client/configuration.rb +11 -3
  32. data/lib/pulp_npm_client/models/async_operation_response.rb +1 -1
  33. data/lib/pulp_npm_client/models/content_summary_response.rb +1 -1
  34. data/lib/pulp_npm_client/models/npm_npm_distribution.rb +44 -17
  35. data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +6 -17
  36. data/lib/pulp_npm_client/models/npm_npm_remote.rb +180 -10
  37. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +20 -8
  38. data/lib/pulp_npm_client/models/npm_npm_repository.rb +63 -2
  39. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +29 -2
  40. data/lib/pulp_npm_client/models/npm_package.rb +69 -2
  41. data/lib/pulp_npm_client/models/npm_package_response.rb +1 -1
  42. data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +1 -1
  43. data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +1 -1
  44. data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +1 -1
  45. data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +1 -1
  46. data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +1 -1
  47. data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +36 -17
  48. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +172 -10
  49. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +59 -2
  50. data/lib/pulp_npm_client/models/policy_enum.rb +1 -1
  51. data/lib/pulp_npm_client/models/{repository_version.rb → repair.rb} +14 -13
  52. data/lib/pulp_npm_client/models/repository_add_remove_content.rb +3 -3
  53. data/lib/pulp_npm_client/models/repository_sync_url.rb +1 -1
  54. data/lib/pulp_npm_client/models/repository_version_response.rb +11 -2
  55. data/lib/pulp_npm_client/version.rb +2 -2
  56. data/lib/pulp_npm_client.rb +2 -3
  57. data/pulp_npm_client.gemspec +2 -2
  58. data/spec/api/content_packages_api_spec.rb +3 -2
  59. data/spec/api/distributions_npm_api_spec.rb +2 -2
  60. data/spec/api/pulp_npm_packages_api_spec.rb +1 -1
  61. data/spec/api/remotes_npm_api_spec.rb +2 -2
  62. data/spec/api/repositories_npm_api_spec.rb +2 -2
  63. data/spec/api/repositories_npm_versions_api_spec.rb +3 -3
  64. data/spec/api_client_spec.rb +2 -2
  65. data/spec/configuration_spec.rb +4 -4
  66. data/spec/models/async_operation_response_spec.rb +1 -1
  67. data/spec/models/content_summary_response_spec.rb +1 -1
  68. data/spec/models/npm_npm_distribution_response_spec.rb +1 -7
  69. data/spec/models/npm_npm_distribution_spec.rb +1 -7
  70. data/spec/models/npm_npm_remote_response_spec.rb +7 -1
  71. data/spec/models/npm_npm_remote_spec.rb +7 -1
  72. data/spec/models/npm_npm_repository_response_spec.rb +7 -1
  73. data/spec/models/npm_npm_repository_spec.rb +7 -1
  74. data/spec/models/npm_package_response_spec.rb +1 -1
  75. data/spec/models/npm_package_spec.rb +7 -1
  76. data/spec/models/paginated_repository_version_response_list_spec.rb +1 -1
  77. data/spec/models/paginatednpm_npm_distribution_response_list_spec.rb +1 -1
  78. data/spec/models/paginatednpm_npm_remote_response_list_spec.rb +1 -1
  79. data/spec/models/paginatednpm_npm_repository_response_list_spec.rb +1 -1
  80. data/spec/models/paginatednpm_package_response_list_spec.rb +1 -1
  81. data/spec/models/patchednpm_npm_distribution_spec.rb +1 -7
  82. data/spec/models/patchednpm_npm_remote_spec.rb +7 -1
  83. data/spec/models/patchednpm_npm_repository_spec.rb +7 -1
  84. data/spec/models/policy_enum_spec.rb +1 -1
  85. data/spec/models/{repository_version_spec.rb → repair_spec.rb} +8 -8
  86. data/spec/models/repository_add_remove_content_spec.rb +1 -1
  87. data/spec/models/repository_sync_url_spec.rb +1 -1
  88. data/spec/models/repository_version_response_spec.rb +7 -1
  89. data/spec/spec_helper.rb +1 -1
  90. metadata +37 -35
  91. data/docs/ContentSummary.md +0 -21
  92. data/docs/RepositoryVersion.md +0 -17
  93. data/lib/pulp_npm_client/models/content_summary.rb +0 -246
  94. 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.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -37,9 +37,6 @@ module PulpNpmClient
37
37
  # The latest RepositoryVersion for this Repository will be served.
38
38
  attr_accessor :repository
39
39
 
40
- # RepositoryVersion to be served
41
- attr_accessor :repository_version
42
-
43
40
  # Attribute mapping from ruby-style variable name to JSON key.
44
41
  def self.attribute_map
45
42
  {
@@ -50,8 +47,7 @@ module PulpNpmClient
50
47
  :'content_guard' => :'content_guard',
51
48
  :'pulp_labels' => :'pulp_labels',
52
49
  :'name' => :'name',
53
- :'repository' => :'repository',
54
- :'repository_version' => :'repository_version'
50
+ :'repository' => :'repository'
55
51
  }
56
52
  end
57
53
 
@@ -65,8 +61,7 @@ module PulpNpmClient
65
61
  :'content_guard' => :'String',
66
62
  :'pulp_labels' => :'Object',
67
63
  :'name' => :'String',
68
- :'repository' => :'String',
69
- :'repository_version' => :'String'
64
+ :'repository' => :'String'
70
65
  }
71
66
  end
72
67
 
@@ -74,8 +69,7 @@ module PulpNpmClient
74
69
  def self.openapi_nullable
75
70
  Set.new([
76
71
  :'content_guard',
77
- :'repository',
78
- :'repository_version'
72
+ :'repository'
79
73
  ])
80
74
  end
81
75
 
@@ -125,10 +119,6 @@ module PulpNpmClient
125
119
  if attributes.key?(:'repository')
126
120
  self.repository = attributes[:'repository']
127
121
  end
128
-
129
- if attributes.key?(:'repository_version')
130
- self.repository_version = attributes[:'repository_version']
131
- end
132
122
  end
133
123
 
134
124
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -166,8 +156,7 @@ module PulpNpmClient
166
156
  content_guard == o.content_guard &&
167
157
  pulp_labels == o.pulp_labels &&
168
158
  name == o.name &&
169
- repository == o.repository &&
170
- repository_version == o.repository_version
159
+ repository == o.repository
171
160
  end
172
161
 
173
162
  # @see the `==` method
@@ -179,7 +168,7 @@ module PulpNpmClient
179
168
  # Calculates hash code according to all attributes.
180
169
  # @return [Integer] Hash code
181
170
  def hash
182
- [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, repository_version].hash
171
+ [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository].hash
183
172
  end
184
173
 
185
174
  # 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.2.3
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 authenticte to the proxy.
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 total download rate in requests per second
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
@@ -251,10 +262,50 @@ module PulpNpmClient
251
262
  invalid_properties.push('invalid value for "name", name cannot be nil.')
252
263
  end
253
264
 
265
+ if @name.to_s.length < 1
266
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
267
+ end
268
+
254
269
  if @url.nil?
255
270
  invalid_properties.push('invalid value for "url", url cannot be nil.')
256
271
  end
257
272
 
273
+ if @url.to_s.length < 1
274
+ invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
275
+ end
276
+
277
+ if !@ca_cert.nil? && @ca_cert.to_s.length < 1
278
+ invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
279
+ end
280
+
281
+ if !@client_cert.nil? && @client_cert.to_s.length < 1
282
+ invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
283
+ end
284
+
285
+ if !@client_key.nil? && @client_key.to_s.length < 1
286
+ invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
287
+ end
288
+
289
+ if !@proxy_url.nil? && @proxy_url.to_s.length < 1
290
+ invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
291
+ end
292
+
293
+ if !@proxy_username.nil? && @proxy_username.to_s.length < 1
294
+ invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
295
+ end
296
+
297
+ if !@proxy_password.nil? && @proxy_password.to_s.length < 1
298
+ invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
299
+ end
300
+
301
+ if !@username.nil? && @username.to_s.length < 1
302
+ invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
303
+ end
304
+
305
+ if !@password.nil? && @password.to_s.length < 1
306
+ invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
307
+ end
308
+
258
309
  if !@download_concurrency.nil? && @download_concurrency < 1
259
310
  invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
260
311
  end
@@ -282,7 +333,17 @@ module PulpNpmClient
282
333
  # @return true if the model is valid
283
334
  def valid?
284
335
  return false if @name.nil?
336
+ return false if @name.to_s.length < 1
285
337
  return false if @url.nil?
338
+ return false if @url.to_s.length < 1
339
+ return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
340
+ return false if !@client_cert.nil? && @client_cert.to_s.length < 1
341
+ return false if !@client_key.nil? && @client_key.to_s.length < 1
342
+ return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
343
+ return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
344
+ return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
345
+ return false if !@username.nil? && @username.to_s.length < 1
346
+ return false if !@password.nil? && @password.to_s.length < 1
286
347
  return false if !@download_concurrency.nil? && @download_concurrency < 1
287
348
  return false if !@total_timeout.nil? && @total_timeout < 0.0
288
349
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
@@ -291,6 +352,114 @@ module PulpNpmClient
291
352
  true
292
353
  end
293
354
 
355
+ # Custom attribute writer method with validation
356
+ # @param [Object] name Value to be assigned
357
+ def name=(name)
358
+ if name.nil?
359
+ fail ArgumentError, 'name cannot be nil'
360
+ end
361
+
362
+ if name.to_s.length < 1
363
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
364
+ end
365
+
366
+ @name = name
367
+ end
368
+
369
+ # Custom attribute writer method with validation
370
+ # @param [Object] url Value to be assigned
371
+ def url=(url)
372
+ if url.nil?
373
+ fail ArgumentError, 'url cannot be nil'
374
+ end
375
+
376
+ if url.to_s.length < 1
377
+ fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
378
+ end
379
+
380
+ @url = url
381
+ end
382
+
383
+ # Custom attribute writer method with validation
384
+ # @param [Object] ca_cert Value to be assigned
385
+ def ca_cert=(ca_cert)
386
+ if !ca_cert.nil? && ca_cert.to_s.length < 1
387
+ fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
388
+ end
389
+
390
+ @ca_cert = ca_cert
391
+ end
392
+
393
+ # Custom attribute writer method with validation
394
+ # @param [Object] client_cert Value to be assigned
395
+ def client_cert=(client_cert)
396
+ if !client_cert.nil? && client_cert.to_s.length < 1
397
+ fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
398
+ end
399
+
400
+ @client_cert = client_cert
401
+ end
402
+
403
+ # Custom attribute writer method with validation
404
+ # @param [Object] client_key Value to be assigned
405
+ def client_key=(client_key)
406
+ if !client_key.nil? && client_key.to_s.length < 1
407
+ fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
408
+ end
409
+
410
+ @client_key = client_key
411
+ end
412
+
413
+ # Custom attribute writer method with validation
414
+ # @param [Object] proxy_url Value to be assigned
415
+ def proxy_url=(proxy_url)
416
+ if !proxy_url.nil? && proxy_url.to_s.length < 1
417
+ fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
418
+ end
419
+
420
+ @proxy_url = proxy_url
421
+ end
422
+
423
+ # Custom attribute writer method with validation
424
+ # @param [Object] proxy_username Value to be assigned
425
+ def proxy_username=(proxy_username)
426
+ if !proxy_username.nil? && proxy_username.to_s.length < 1
427
+ fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
428
+ end
429
+
430
+ @proxy_username = proxy_username
431
+ end
432
+
433
+ # Custom attribute writer method with validation
434
+ # @param [Object] proxy_password Value to be assigned
435
+ def proxy_password=(proxy_password)
436
+ if !proxy_password.nil? && proxy_password.to_s.length < 1
437
+ fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
438
+ end
439
+
440
+ @proxy_password = proxy_password
441
+ end
442
+
443
+ # Custom attribute writer method with validation
444
+ # @param [Object] username Value to be assigned
445
+ def username=(username)
446
+ if !username.nil? && username.to_s.length < 1
447
+ fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
448
+ end
449
+
450
+ @username = username
451
+ end
452
+
453
+ # Custom attribute writer method with validation
454
+ # @param [Object] password Value to be assigned
455
+ def password=(password)
456
+ if !password.nil? && password.to_s.length < 1
457
+ fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
458
+ end
459
+
460
+ @password = password
461
+ end
462
+
294
463
  # Custom attribute writer method with validation
295
464
  # @param [Object] download_concurrency Value to be assigned
296
465
  def download_concurrency=(download_concurrency)
@@ -359,6 +528,7 @@ module PulpNpmClient
359
528
  password == o.password &&
360
529
  pulp_labels == o.pulp_labels &&
361
530
  download_concurrency == o.download_concurrency &&
531
+ max_retries == o.max_retries &&
362
532
  policy == o.policy &&
363
533
  total_timeout == o.total_timeout &&
364
534
  connect_timeout == o.connect_timeout &&
@@ -377,7 +547,7 @@ module PulpNpmClient
377
547
  # Calculates hash code according to all attributes.
378
548
  # @return [Integer] Hash code
379
549
  def hash
380
- [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
550
+ [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
381
551
  end
382
552
 
383
553
  # 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.2.3
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -43,28 +43,31 @@ module PulpNpmClient
43
43
  # Timestamp of the most recent update of the remote.
44
44
  attr_accessor :pulp_last_updated
45
45
 
46
- # Total number of simultaneous connections.
46
+ # Total number of simultaneous connections. If not set then the default value will be used.
47
47
  attr_accessor :download_concurrency
48
48
 
49
+ # Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
50
+ attr_accessor :max_retries
51
+
49
52
  # The policy to use when downloading content. The possible values include: 'immediate', 'on_demand', and 'streamed'. 'immediate' is the default.
50
53
  attr_accessor :policy
51
54
 
52
- # aiohttp.ClientTimeout.total (q.v.) for download-connections.
55
+ # aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
53
56
  attr_accessor :total_timeout
54
57
 
55
- # aiohttp.ClientTimeout.connect (q.v.) for download-connections.
58
+ # aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
56
59
  attr_accessor :connect_timeout
57
60
 
58
- # aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections.
61
+ # 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.
59
62
  attr_accessor :sock_connect_timeout
60
63
 
61
- # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
64
+ # 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.
62
65
  attr_accessor :sock_read_timeout
63
66
 
64
67
  # Headers for aiohttp.Clientsession
65
68
  attr_accessor :headers
66
69
 
67
- # Limits total download rate in requests per second
70
+ # Limits requests per second for each concurrent downloader
68
71
  attr_accessor :rate_limit
69
72
 
70
73
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -81,6 +84,7 @@ module PulpNpmClient
81
84
  :'pulp_labels' => :'pulp_labels',
82
85
  :'pulp_last_updated' => :'pulp_last_updated',
83
86
  :'download_concurrency' => :'download_concurrency',
87
+ :'max_retries' => :'max_retries',
84
88
  :'policy' => :'policy',
85
89
  :'total_timeout' => :'total_timeout',
86
90
  :'connect_timeout' => :'connect_timeout',
@@ -105,6 +109,7 @@ module PulpNpmClient
105
109
  :'pulp_labels' => :'Object',
106
110
  :'pulp_last_updated' => :'DateTime',
107
111
  :'download_concurrency' => :'Integer',
112
+ :'max_retries' => :'Integer',
108
113
  :'policy' => :'PolicyEnum',
109
114
  :'total_timeout' => :'Float',
110
115
  :'connect_timeout' => :'Float',
@@ -121,6 +126,8 @@ module PulpNpmClient
121
126
  :'ca_cert',
122
127
  :'client_cert',
123
128
  :'proxy_url',
129
+ :'download_concurrency',
130
+ :'max_retries',
124
131
  :'total_timeout',
125
132
  :'connect_timeout',
126
133
  :'sock_connect_timeout',
@@ -188,6 +195,10 @@ module PulpNpmClient
188
195
  self.download_concurrency = attributes[:'download_concurrency']
189
196
  end
190
197
 
198
+ if attributes.key?(:'max_retries')
199
+ self.max_retries = attributes[:'max_retries']
200
+ end
201
+
191
202
  if attributes.key?(:'policy')
192
203
  self.policy = attributes[:'policy']
193
204
  end
@@ -333,6 +344,7 @@ module PulpNpmClient
333
344
  pulp_labels == o.pulp_labels &&
334
345
  pulp_last_updated == o.pulp_last_updated &&
335
346
  download_concurrency == o.download_concurrency &&
347
+ max_retries == o.max_retries &&
336
348
  policy == o.policy &&
337
349
  total_timeout == o.total_timeout &&
338
350
  connect_timeout == o.connect_timeout &&
@@ -351,7 +363,7 @@ module PulpNpmClient
351
363
  # Calculates hash code according to all attributes.
352
364
  # @return [Integer] Hash code
353
365
  def hash
354
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
366
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit].hash
355
367
  end
356
368
 
357
369
  # 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.2.3
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
@@ -93,6 +104,18 @@ module PulpNpmClient
93
104
  invalid_properties.push('invalid value for "name", name cannot be nil.')
94
105
  end
95
106
 
107
+ if @name.to_s.length < 1
108
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
109
+ end
110
+
111
+ if !@description.nil? && @description.to_s.length < 1
112
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
113
+ end
114
+
115
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
116
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
117
+ end
118
+
96
119
  invalid_properties
97
120
  end
98
121
 
@@ -100,9 +123,46 @@ module PulpNpmClient
100
123
  # @return true if the model is valid
101
124
  def valid?
102
125
  return false if @name.nil?
126
+ return false if @name.to_s.length < 1
127
+ return false if !@description.nil? && @description.to_s.length < 1
128
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
103
129
  true
104
130
  end
105
131
 
132
+ # Custom attribute writer method with validation
133
+ # @param [Object] name Value to be assigned
134
+ def name=(name)
135
+ if name.nil?
136
+ fail ArgumentError, 'name cannot be nil'
137
+ end
138
+
139
+ if name.to_s.length < 1
140
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
141
+ end
142
+
143
+ @name = name
144
+ end
145
+
146
+ # Custom attribute writer method with validation
147
+ # @param [Object] description Value to be assigned
148
+ def description=(description)
149
+ if !description.nil? && description.to_s.length < 1
150
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
151
+ end
152
+
153
+ @description = description
154
+ end
155
+
156
+ # Custom attribute writer method with validation
157
+ # @param [Object] retain_repo_versions Value to be assigned
158
+ def retain_repo_versions=(retain_repo_versions)
159
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
160
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
161
+ end
162
+
163
+ @retain_repo_versions = retain_repo_versions
164
+ end
165
+
106
166
  # Checks equality by comparing each attribute.
107
167
  # @param [Object] Object to be compared
108
168
  def ==(o)
@@ -111,6 +171,7 @@ module PulpNpmClient
111
171
  pulp_labels == o.pulp_labels &&
112
172
  name == o.name &&
113
173
  description == o.description &&
174
+ retain_repo_versions == o.retain_repo_versions &&
114
175
  remote == o.remote
115
176
  end
116
177
 
@@ -123,7 +184,7 @@ module PulpNpmClient
123
184
  # Calculates hash code according to all attributes.
124
185
  # @return [Integer] Hash code
125
186
  def hash
126
- [pulp_labels, name, description, remote].hash
187
+ [pulp_labels, name, description, retain_repo_versions, remote].hash
127
188
  end
128
189
 
129
190
  # Builds the object from hash