pulp_npm_client 0.3.3 → 0.5.0

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentPackagesApi.md +22 -8
  4. data/docs/DistributionsNpmApi.md +58 -30
  5. data/docs/NpmNpmRemoteResponse.md +1 -1
  6. data/docs/NpmPackageResponse.md +2 -0
  7. data/docs/RemotesNpmApi.md +58 -30
  8. data/docs/RepositoriesNpmApi.md +74 -38
  9. data/docs/RepositoriesNpmVersionsApi.md +22 -10
  10. data/docs/RepositoryVersionResponse.md +3 -1
  11. data/lib/pulp_npm_client/api/content_packages_api.rb +15 -0
  12. data/lib/pulp_npm_client/api/distributions_npm_api.rb +34 -10
  13. data/lib/pulp_npm_client/api/remotes_npm_api.rb +34 -10
  14. data/lib/pulp_npm_client/api/repositories_npm_api.rb +40 -10
  15. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +15 -3
  16. data/lib/pulp_npm_client/models/npm_npm_remote.rb +0 -15
  17. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +0 -15
  18. data/lib/pulp_npm_client/models/npm_npm_repository.rb +0 -15
  19. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +0 -15
  20. data/lib/pulp_npm_client/models/npm_package_response.rb +10 -1
  21. data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +0 -2
  22. data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +0 -2
  23. data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +0 -2
  24. data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +0 -2
  25. data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +0 -2
  26. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +0 -15
  27. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +0 -15
  28. data/lib/pulp_npm_client/models/repository_version_response.rb +13 -4
  29. data/lib/pulp_npm_client/version.rb +1 -1
  30. data/pulp_npm_client.gemspec +0 -1
  31. data/spec/api/content_packages_api_spec.rb +5 -0
  32. data/spec/api/distributions_npm_api_spec.rb +12 -4
  33. data/spec/api/remotes_npm_api_spec.rb +12 -4
  34. data/spec/api/repositories_npm_api_spec.rb +14 -4
  35. data/spec/api/repositories_npm_versions_api_spec.rb +5 -1
  36. data/spec/models/npm_package_response_spec.rb +6 -0
  37. data/spec/models/repository_version_response_spec.rb +6 -0
  38. metadata +24 -44
@@ -23,6 +23,7 @@ module PulpNpmClient
23
23
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
24
24
  # @param npm_npm_repository [NpmNpmRepository]
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
26
27
  # @return [NpmNpmRepositoryResponse]
27
28
  def create(npm_npm_repository, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(npm_npm_repository, opts)
@@ -33,6 +34,7 @@ module PulpNpmClient
33
34
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
34
35
  # @param npm_npm_repository [NpmNpmRepository]
35
36
  # @param [Hash] opts the optional parameters
37
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
36
38
  # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
37
39
  def create_with_http_info(npm_npm_repository, opts = {})
38
40
  if @api_client.config.debugging
@@ -57,6 +59,7 @@ module PulpNpmClient
57
59
  if !content_type.nil?
58
60
  header_params['Content-Type'] = content_type
59
61
  end
62
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
60
63
 
61
64
  # form parameters
62
65
  form_params = opts[:form_params] || {}
@@ -91,6 +94,7 @@ module PulpNpmClient
91
94
  # Trigger an asynchronous delete task
92
95
  # @param npm_npm_repository_href [String]
93
96
  # @param [Hash] opts the optional parameters
97
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
94
98
  # @return [AsyncOperationResponse]
95
99
  def delete(npm_npm_repository_href, opts = {})
96
100
  data, _status_code, _headers = delete_with_http_info(npm_npm_repository_href, opts)
@@ -101,6 +105,7 @@ module PulpNpmClient
101
105
  # Trigger an asynchronous delete task
102
106
  # @param npm_npm_repository_href [String]
103
107
  # @param [Hash] opts the optional parameters
108
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
104
109
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
105
110
  def delete_with_http_info(npm_npm_repository_href, opts = {})
106
111
  if @api_client.config.debugging
@@ -120,6 +125,7 @@ module PulpNpmClient
120
125
  header_params = opts[:header_params] || {}
121
126
  # HTTP header 'Accept' (if needed)
122
127
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
128
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
123
129
 
124
130
  # form parameters
125
131
  form_params = opts[:form_params] || {}
@@ -153,6 +159,7 @@ module PulpNpmClient
153
159
  # List npm repositorys
154
160
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
155
161
  # @param [Hash] opts the optional parameters
162
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
156
163
  # @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
157
164
  # @option opts [Integer] :limit Number of results to return per page.
158
165
  # @option opts [String] :name Filter results where name matches value
@@ -192,6 +199,7 @@ module PulpNpmClient
192
199
  # List npm repositorys
193
200
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
194
201
  # @param [Hash] opts the optional parameters
202
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
195
203
  # @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
196
204
  # @option opts [Integer] :limit Number of results to return per page.
197
205
  # @option opts [String] :name Filter results where name matches value
@@ -271,6 +279,7 @@ module PulpNpmClient
271
279
  header_params = opts[:header_params] || {}
272
280
  # HTTP header 'Accept' (if needed)
273
281
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
282
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
274
283
 
275
284
  # form parameters
276
285
  form_params = opts[:form_params] || {}
@@ -306,6 +315,7 @@ module PulpNpmClient
306
315
  # @param npm_npm_repository_href [String]
307
316
  # @param repository_add_remove_content [RepositoryAddRemoveContent]
308
317
  # @param [Hash] opts the optional parameters
318
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
309
319
  # @return [AsyncOperationResponse]
310
320
  def modify(npm_npm_repository_href, repository_add_remove_content, opts = {})
311
321
  data, _status_code, _headers = modify_with_http_info(npm_npm_repository_href, repository_add_remove_content, opts)
@@ -317,6 +327,7 @@ module PulpNpmClient
317
327
  # @param npm_npm_repository_href [String]
318
328
  # @param repository_add_remove_content [RepositoryAddRemoveContent]
319
329
  # @param [Hash] opts the optional parameters
330
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
320
331
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
321
332
  def modify_with_http_info(npm_npm_repository_href, repository_add_remove_content, opts = {})
322
333
  if @api_client.config.debugging
@@ -345,6 +356,7 @@ module PulpNpmClient
345
356
  if !content_type.nil?
346
357
  header_params['Content-Type'] = content_type
347
358
  end
359
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
348
360
 
349
361
  # form parameters
350
362
  form_params = opts[:form_params] || {}
@@ -376,22 +388,24 @@ module PulpNpmClient
376
388
  end
377
389
 
378
390
  # Update a npm repository
379
- # Trigger an asynchronous partial update task
391
+ # Update the entity partially and trigger an asynchronous task if necessary
380
392
  # @param npm_npm_repository_href [String]
381
393
  # @param patchednpm_npm_repository [PatchednpmNpmRepository]
382
394
  # @param [Hash] opts the optional parameters
383
- # @return [AsyncOperationResponse]
395
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
396
+ # @return [NpmNpmRepositoryResponse]
384
397
  def partial_update(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
385
398
  data, _status_code, _headers = partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts)
386
399
  data
387
400
  end
388
401
 
389
402
  # Update a npm repository
390
- # Trigger an asynchronous partial update task
403
+ # Update the entity partially and trigger an asynchronous task if necessary
391
404
  # @param npm_npm_repository_href [String]
392
405
  # @param patchednpm_npm_repository [PatchednpmNpmRepository]
393
406
  # @param [Hash] opts the optional parameters
394
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
407
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
408
+ # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
395
409
  def partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
396
410
  if @api_client.config.debugging
397
411
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.partial_update ...'
@@ -419,6 +433,7 @@ module PulpNpmClient
419
433
  if !content_type.nil?
420
434
  header_params['Content-Type'] = content_type
421
435
  end
436
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
422
437
 
423
438
  # form parameters
424
439
  form_params = opts[:form_params] || {}
@@ -427,7 +442,7 @@ module PulpNpmClient
427
442
  post_body = opts[:debug_body] || @api_client.object_to_http_body(patchednpm_npm_repository)
428
443
 
429
444
  # return_type
430
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
445
+ return_type = opts[:debug_return_type] || 'NpmNpmRepositoryResponse'
431
446
 
432
447
  # auth_names
433
448
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -453,6 +468,7 @@ module PulpNpmClient
453
468
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
454
469
  # @param npm_npm_repository_href [String]
455
470
  # @param [Hash] opts the optional parameters
471
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
456
472
  # @option opts [Array<String>] :fields A list of fields to include in the response.
457
473
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
458
474
  # @return [NpmNpmRepositoryResponse]
@@ -465,6 +481,7 @@ module PulpNpmClient
465
481
  # A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
466
482
  # @param npm_npm_repository_href [String]
467
483
  # @param [Hash] opts the optional parameters
484
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
468
485
  # @option opts [Array<String>] :fields A list of fields to include in the response.
469
486
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
470
487
  # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
@@ -488,6 +505,7 @@ module PulpNpmClient
488
505
  header_params = opts[:header_params] || {}
489
506
  # HTTP header 'Accept' (if needed)
490
507
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
508
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
491
509
 
492
510
  # form parameters
493
511
  form_params = opts[:form_params] || {}
@@ -523,6 +541,7 @@ module PulpNpmClient
523
541
  # @param npm_npm_repository_href [String]
524
542
  # @param set_label [SetLabel]
525
543
  # @param [Hash] opts the optional parameters
544
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
526
545
  # @return [SetLabelResponse]
527
546
  def set_label(npm_npm_repository_href, set_label, opts = {})
528
547
  data, _status_code, _headers = set_label_with_http_info(npm_npm_repository_href, set_label, opts)
@@ -534,6 +553,7 @@ module PulpNpmClient
534
553
  # @param npm_npm_repository_href [String]
535
554
  # @param set_label [SetLabel]
536
555
  # @param [Hash] opts the optional parameters
556
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
537
557
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
538
558
  def set_label_with_http_info(npm_npm_repository_href, set_label, opts = {})
539
559
  if @api_client.config.debugging
@@ -562,6 +582,7 @@ module PulpNpmClient
562
582
  if !content_type.nil?
563
583
  header_params['Content-Type'] = content_type
564
584
  end
585
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
565
586
 
566
587
  # form parameters
567
588
  form_params = opts[:form_params] || {}
@@ -597,6 +618,7 @@ module PulpNpmClient
597
618
  # @param npm_npm_repository_href [String]
598
619
  # @param repository_sync_url [RepositorySyncURL]
599
620
  # @param [Hash] opts the optional parameters
621
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
600
622
  # @return [AsyncOperationResponse]
601
623
  def sync(npm_npm_repository_href, repository_sync_url, opts = {})
602
624
  data, _status_code, _headers = sync_with_http_info(npm_npm_repository_href, repository_sync_url, opts)
@@ -608,6 +630,7 @@ module PulpNpmClient
608
630
  # @param npm_npm_repository_href [String]
609
631
  # @param repository_sync_url [RepositorySyncURL]
610
632
  # @param [Hash] opts the optional parameters
633
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
611
634
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
612
635
  def sync_with_http_info(npm_npm_repository_href, repository_sync_url, opts = {})
613
636
  if @api_client.config.debugging
@@ -636,6 +659,7 @@ module PulpNpmClient
636
659
  if !content_type.nil?
637
660
  header_params['Content-Type'] = content_type
638
661
  end
662
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
639
663
 
640
664
  # form parameters
641
665
  form_params = opts[:form_params] || {}
@@ -671,6 +695,7 @@ module PulpNpmClient
671
695
  # @param npm_npm_repository_href [String]
672
696
  # @param unset_label [UnsetLabel]
673
697
  # @param [Hash] opts the optional parameters
698
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
674
699
  # @return [UnsetLabelResponse]
675
700
  def unset_label(npm_npm_repository_href, unset_label, opts = {})
676
701
  data, _status_code, _headers = unset_label_with_http_info(npm_npm_repository_href, unset_label, opts)
@@ -682,6 +707,7 @@ module PulpNpmClient
682
707
  # @param npm_npm_repository_href [String]
683
708
  # @param unset_label [UnsetLabel]
684
709
  # @param [Hash] opts the optional parameters
710
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
685
711
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
686
712
  def unset_label_with_http_info(npm_npm_repository_href, unset_label, opts = {})
687
713
  if @api_client.config.debugging
@@ -710,6 +736,7 @@ module PulpNpmClient
710
736
  if !content_type.nil?
711
737
  header_params['Content-Type'] = content_type
712
738
  end
739
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
713
740
 
714
741
  # form parameters
715
742
  form_params = opts[:form_params] || {}
@@ -741,22 +768,24 @@ module PulpNpmClient
741
768
  end
742
769
 
743
770
  # Update a npm repository
744
- # Trigger an asynchronous update task
771
+ # Update the entity and trigger an asynchronous task if necessary
745
772
  # @param npm_npm_repository_href [String]
746
773
  # @param npm_npm_repository [NpmNpmRepository]
747
774
  # @param [Hash] opts the optional parameters
748
- # @return [AsyncOperationResponse]
775
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
776
+ # @return [NpmNpmRepositoryResponse]
749
777
  def update(npm_npm_repository_href, npm_npm_repository, opts = {})
750
778
  data, _status_code, _headers = update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts)
751
779
  data
752
780
  end
753
781
 
754
782
  # Update a npm repository
755
- # Trigger an asynchronous update task
783
+ # Update the entity and trigger an asynchronous task if necessary
756
784
  # @param npm_npm_repository_href [String]
757
785
  # @param npm_npm_repository [NpmNpmRepository]
758
786
  # @param [Hash] opts the optional parameters
759
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
787
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
788
+ # @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
760
789
  def update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts = {})
761
790
  if @api_client.config.debugging
762
791
  @api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.update ...'
@@ -784,6 +813,7 @@ module PulpNpmClient
784
813
  if !content_type.nil?
785
814
  header_params['Content-Type'] = content_type
786
815
  end
816
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
787
817
 
788
818
  # form parameters
789
819
  form_params = opts[:form_params] || {}
@@ -792,7 +822,7 @@ module PulpNpmClient
792
822
  post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_repository)
793
823
 
794
824
  # return_type
795
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
825
+ return_type = opts[:debug_return_type] || 'NpmNpmRepositoryResponse'
796
826
 
797
827
  # auth_names
798
828
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -23,6 +23,7 @@ module PulpNpmClient
23
23
  # Trigger an asynchronous task to delete a repository version.
24
24
  # @param npm_npm_repository_version_href [String]
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
26
27
  # @return [AsyncOperationResponse]
27
28
  def delete(npm_npm_repository_version_href, opts = {})
28
29
  data, _status_code, _headers = delete_with_http_info(npm_npm_repository_version_href, opts)
@@ -33,6 +34,7 @@ module PulpNpmClient
33
34
  # Trigger an asynchronous task to delete a repository version.
34
35
  # @param npm_npm_repository_version_href [String]
35
36
  # @param [Hash] opts the optional parameters
37
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
36
38
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
39
  def delete_with_http_info(npm_npm_repository_version_href, opts = {})
38
40
  if @api_client.config.debugging
@@ -52,6 +54,7 @@ module PulpNpmClient
52
54
  header_params = opts[:header_params] || {}
53
55
  # HTTP header 'Accept' (if needed)
54
56
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
57
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
55
58
 
56
59
  # form parameters
57
60
  form_params = opts[:form_params] || {}
@@ -86,6 +89,7 @@ module PulpNpmClient
86
89
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
87
90
  # @param npm_npm_repository_href [String]
88
91
  # @param [Hash] opts the optional parameters
92
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
89
93
  # @option opts [String] :content Content Unit referenced by HREF/PRN
90
94
  # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
91
95
  # @option opts [Integer] :limit Number of results to return per page.
@@ -96,7 +100,7 @@ module PulpNpmClient
96
100
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
97
101
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
98
102
  # @option opts [Integer] :offset The initial index from which to return the results.
99
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
103
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;content_ids&#x60; - Content ids * &#x60;-content_ids&#x60; - Content ids (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
100
104
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
101
105
  # @option opts [Time] :pulp_created Filter results where pulp_created matches value
102
106
  # @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
@@ -119,6 +123,7 @@ module PulpNpmClient
119
123
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
120
124
  # @param npm_npm_repository_href [String]
121
125
  # @param [Hash] opts the optional parameters
126
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
122
127
  # @option opts [String] :content Content Unit referenced by HREF/PRN
123
128
  # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
124
129
  # @option opts [Integer] :limit Number of results to return per page.
@@ -129,7 +134,7 @@ module PulpNpmClient
129
134
  # @option opts [Integer] :number__lte Filter results where number is less than or equal to value
130
135
  # @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
131
136
  # @option opts [Integer] :offset The initial index from which to return the results.
132
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
137
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;content_ids&#x60; - Content ids * &#x60;-content_ids&#x60; - Content ids (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
133
138
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
134
139
  # @option opts [Time] :pulp_created Filter results where pulp_created matches value
135
140
  # @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
@@ -151,7 +156,7 @@ module PulpNpmClient
151
156
  if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
152
157
  fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmVersionsApi.list"
153
158
  end
154
- allowable_values = ["-complete", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
159
+ allowable_values = ["-complete", "-content_ids", "-info", "-number", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "complete", "content_ids", "info", "number", "pk", "pulp_created", "pulp_id", "pulp_last_updated"]
155
160
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
156
161
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
157
162
  end
@@ -188,6 +193,7 @@ module PulpNpmClient
188
193
  header_params = opts[:header_params] || {}
189
194
  # HTTP header 'Accept' (if needed)
190
195
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
196
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
191
197
 
192
198
  # form parameters
193
199
  form_params = opts[:form_params] || {}
@@ -222,6 +228,7 @@ module PulpNpmClient
222
228
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
223
229
  # @param npm_npm_repository_version_href [String]
224
230
  # @param [Hash] opts the optional parameters
231
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
225
232
  # @option opts [Array<String>] :fields A list of fields to include in the response.
226
233
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
227
234
  # @return [RepositoryVersionResponse]
@@ -234,6 +241,7 @@ module PulpNpmClient
234
241
  # A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
235
242
  # @param npm_npm_repository_version_href [String]
236
243
  # @param [Hash] opts the optional parameters
244
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
237
245
  # @option opts [Array<String>] :fields A list of fields to include in the response.
238
246
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
239
247
  # @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
@@ -257,6 +265,7 @@ module PulpNpmClient
257
265
  header_params = opts[:header_params] || {}
258
266
  # HTTP header 'Accept' (if needed)
259
267
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
268
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
260
269
 
261
270
  # form parameters
262
271
  form_params = opts[:form_params] || {}
@@ -291,6 +300,7 @@ module PulpNpmClient
291
300
  # @param npm_npm_repository_version_href [String]
292
301
  # @param repair [Repair]
293
302
  # @param [Hash] opts the optional parameters
303
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
294
304
  # @return [AsyncOperationResponse]
295
305
  def repair(npm_npm_repository_version_href, repair, opts = {})
296
306
  data, _status_code, _headers = repair_with_http_info(npm_npm_repository_version_href, repair, opts)
@@ -301,6 +311,7 @@ module PulpNpmClient
301
311
  # @param npm_npm_repository_version_href [String]
302
312
  # @param repair [Repair]
303
313
  # @param [Hash] opts the optional parameters
314
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
304
315
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
305
316
  def repair_with_http_info(npm_npm_repository_version_href, repair, opts = {})
306
317
  if @api_client.config.debugging
@@ -329,6 +340,7 @@ module PulpNpmClient
329
340
  if !content_type.nil?
330
341
  header_params['Content-Type'] = content_type
331
342
  end
343
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
332
344
 
333
345
  # form parameters
334
346
  form_params = opts[:form_params] || {}
@@ -341,10 +341,6 @@ module PulpNpmClient
341
341
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
342
342
  end
343
343
 
344
- if !@download_concurrency.nil? && @download_concurrency < 1
345
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
346
- end
347
-
348
344
  if !@total_timeout.nil? && @total_timeout < 0.0
349
345
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
350
346
  end
@@ -380,7 +376,6 @@ module PulpNpmClient
380
376
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
381
377
  return false if !@username.nil? && @username.to_s.length < 1
382
378
  return false if !@password.nil? && @password.to_s.length < 1
383
- return false if !@download_concurrency.nil? && @download_concurrency < 1
384
379
  return false if !@total_timeout.nil? && @total_timeout < 0.0
385
380
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
386
381
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -496,16 +491,6 @@ module PulpNpmClient
496
491
  @password = password
497
492
  end
498
493
 
499
- # Custom attribute writer method with validation
500
- # @param [Object] download_concurrency Value to be assigned
501
- def download_concurrency=(download_concurrency)
502
- if !download_concurrency.nil? && download_concurrency < 1
503
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
504
- end
505
-
506
- @download_concurrency = download_concurrency
507
- end
508
-
509
494
  # Custom attribute writer method with validation
510
495
  # @param [Object] total_timeout Value to be assigned
511
496
  def total_timeout=(total_timeout)
@@ -297,10 +297,6 @@ module PulpNpmClient
297
297
  invalid_properties.push('invalid value for "url", url cannot be nil.')
298
298
  end
299
299
 
300
- if !@download_concurrency.nil? && @download_concurrency < 1
301
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
302
- end
303
-
304
300
  if !@total_timeout.nil? && @total_timeout < 0.0
305
301
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
306
302
  end
@@ -326,7 +322,6 @@ module PulpNpmClient
326
322
  warn '[DEPRECATED] the `valid?` method is obsolete'
327
323
  return false if @name.nil?
328
324
  return false if @url.nil?
329
- return false if !@download_concurrency.nil? && @download_concurrency < 1
330
325
  return false if !@total_timeout.nil? && @total_timeout < 0.0
331
326
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
332
327
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -334,16 +329,6 @@ module PulpNpmClient
334
329
  true
335
330
  end
336
331
 
337
- # Custom attribute writer method with validation
338
- # @param [Object] download_concurrency Value to be assigned
339
- def download_concurrency=(download_concurrency)
340
- if !download_concurrency.nil? && download_concurrency < 1
341
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
342
- end
343
-
344
- @download_concurrency = download_concurrency
345
- end
346
-
347
332
  # Custom attribute writer method with validation
348
333
  # @param [Object] total_timeout Value to be assigned
349
334
  def total_timeout=(total_timeout)
@@ -123,10 +123,6 @@ module PulpNpmClient
123
123
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
124
124
  end
125
125
 
126
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
127
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
128
- end
129
-
130
126
  invalid_properties
131
127
  end
132
128
 
@@ -137,7 +133,6 @@ module PulpNpmClient
137
133
  return false if @name.nil?
138
134
  return false if @name.to_s.length < 1
139
135
  return false if !@description.nil? && @description.to_s.length < 1
140
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
136
  true
142
137
  end
143
138
 
@@ -165,16 +160,6 @@ module PulpNpmClient
165
160
  @description = description
166
161
  end
167
162
 
168
- # Custom attribute writer method with validation
169
- # @param [Object] retain_repo_versions Value to be assigned
170
- def retain_repo_versions=(retain_repo_versions)
171
- if !retain_repo_versions.nil? && retain_repo_versions < 1
172
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
173
- end
174
-
175
- @retain_repo_versions = retain_repo_versions
176
- end
177
-
178
163
  # Checks equality by comparing each attribute.
179
164
  # @param [Object] Object to be compared
180
165
  def ==(o)
@@ -166,10 +166,6 @@ module PulpNpmClient
166
166
  invalid_properties.push('invalid value for "name", name cannot be nil.')
167
167
  end
168
168
 
169
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
170
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
171
- end
172
-
173
169
  invalid_properties
174
170
  end
175
171
 
@@ -178,20 +174,9 @@ module PulpNpmClient
178
174
  def valid?
179
175
  warn '[DEPRECATED] the `valid?` method is obsolete'
180
176
  return false if @name.nil?
181
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
182
177
  true
183
178
  end
184
179
 
185
- # Custom attribute writer method with validation
186
- # @param [Object] retain_repo_versions Value to be assigned
187
- def retain_repo_versions=(retain_repo_versions)
188
- if !retain_repo_versions.nil? && retain_repo_versions < 1
189
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
190
- end
191
-
192
- @retain_repo_versions = retain_repo_versions
193
- end
194
-
195
180
  # Checks equality by comparing each attribute.
196
181
  # @param [Object] Object to be compared
197
182
  def ==(o)
@@ -30,6 +30,8 @@ module PulpNpmClient
30
30
  # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
31
31
  attr_accessor :pulp_labels
32
32
 
33
+ attr_accessor :vuln_report
34
+
33
35
  # Artifact file representing the physical content
34
36
  attr_accessor :artifact
35
37
 
@@ -47,6 +49,7 @@ module PulpNpmClient
47
49
  :'pulp_created' => :'pulp_created',
48
50
  :'pulp_last_updated' => :'pulp_last_updated',
49
51
  :'pulp_labels' => :'pulp_labels',
52
+ :'vuln_report' => :'vuln_report',
50
53
  :'artifact' => :'artifact',
51
54
  :'relative_path' => :'relative_path',
52
55
  :'name' => :'name',
@@ -67,6 +70,7 @@ module PulpNpmClient
67
70
  :'pulp_created' => :'Time',
68
71
  :'pulp_last_updated' => :'Time',
69
72
  :'pulp_labels' => :'Hash<String, String>',
73
+ :'vuln_report' => :'String',
70
74
  :'artifact' => :'String',
71
75
  :'relative_path' => :'String',
72
76
  :'name' => :'String',
@@ -117,6 +121,10 @@ module PulpNpmClient
117
121
  end
118
122
  end
119
123
 
124
+ if attributes.key?(:'vuln_report')
125
+ self.vuln_report = attributes[:'vuln_report']
126
+ end
127
+
120
128
  if attributes.key?(:'artifact')
121
129
  self.artifact = attributes[:'artifact']
122
130
  end
@@ -180,6 +188,7 @@ module PulpNpmClient
180
188
  pulp_created == o.pulp_created &&
181
189
  pulp_last_updated == o.pulp_last_updated &&
182
190
  pulp_labels == o.pulp_labels &&
191
+ vuln_report == o.vuln_report &&
183
192
  artifact == o.artifact &&
184
193
  relative_path == o.relative_path &&
185
194
  name == o.name &&
@@ -195,7 +204,7 @@ module PulpNpmClient
195
204
  # Calculates hash code according to all attributes.
196
205
  # @return [Integer] Hash code
197
206
  def hash
198
- [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifact, relative_path, name, version].hash
207
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifact, relative_path, name, version].hash
199
208
  end
200
209
 
201
210
  # Builds the object from hash
@@ -51,8 +51,6 @@ module PulpNpmClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpNpmClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpNpmClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpNpmClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56
 
@@ -51,8 +51,6 @@ module PulpNpmClient
51
51
  # List of attributes with nullable: true
52
52
  def self.openapi_nullable
53
53
  Set.new([
54
- :'_next',
55
- :'previous',
56
54
  ])
57
55
  end
58
56