pulp_gem_client 0.7.0 → 0.7.2

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 (42) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentGemApi.md +22 -8
  4. data/docs/DistributionsGemApi.md +76 -34
  5. data/docs/GemGemContentResponse.md +2 -0
  6. data/docs/GemGemRemoteResponse.md +1 -1
  7. data/docs/PublicationsGemApi.md +44 -18
  8. data/docs/RemotesGemApi.md +72 -32
  9. data/docs/RepositoriesGemApi.md +88 -40
  10. data/docs/RepositoriesGemVersionsApi.md +22 -10
  11. data/docs/RepositoryVersionResponse.md +3 -1
  12. data/lib/pulp_gem_client/api/content_gem_api.rb +15 -0
  13. data/lib/pulp_gem_client/api/distributions_gem_api.rb +42 -3
  14. data/lib/pulp_gem_client/api/publications_gem_api.rb +30 -3
  15. data/lib/pulp_gem_client/api/remotes_gem_api.rb +36 -0
  16. data/lib/pulp_gem_client/api/repositories_gem_api.rb +42 -0
  17. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +15 -3
  18. data/lib/pulp_gem_client/models/gem_gem_content_response.rb +10 -1
  19. data/lib/pulp_gem_client/models/gem_gem_remote.rb +0 -17
  20. data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +0 -17
  21. data/lib/pulp_gem_client/models/gem_gem_repository.rb +0 -15
  22. data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +0 -15
  23. data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +0 -2
  24. data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +0 -2
  25. data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +0 -2
  26. data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +0 -2
  27. data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +0 -2
  28. data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +0 -2
  29. data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +0 -17
  30. data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +0 -15
  31. data/lib/pulp_gem_client/models/repository_version_response.rb +13 -4
  32. data/lib/pulp_gem_client/version.rb +1 -1
  33. data/pulp_gem_client.gemspec +0 -1
  34. data/spec/api/content_gem_api_spec.rb +5 -0
  35. data/spec/api/distributions_gem_api_spec.rb +14 -1
  36. data/spec/api/publications_gem_api_spec.rb +10 -1
  37. data/spec/api/remotes_gem_api_spec.rb +12 -0
  38. data/spec/api/repositories_gem_api_spec.rb +14 -0
  39. data/spec/api/repositories_gem_versions_api_spec.rb +5 -1
  40. data/spec/models/gem_gem_content_response_spec.rb +6 -0
  41. data/spec/models/repository_version_response_spec.rb +6 -0
  42. metadata +28 -48
@@ -24,6 +24,7 @@ module PulpGemClient
24
24
  # @param gem_gem_repository_href [String]
25
25
  # @param nested_role [NestedRole]
26
26
  # @param [Hash] opts the optional parameters
27
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
27
28
  # @return [NestedRoleResponse]
28
29
  def add_role(gem_gem_repository_href, nested_role, opts = {})
29
30
  data, _status_code, _headers = add_role_with_http_info(gem_gem_repository_href, nested_role, opts)
@@ -35,6 +36,7 @@ module PulpGemClient
35
36
  # @param gem_gem_repository_href [String]
36
37
  # @param nested_role [NestedRole]
37
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
38
40
  # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
39
41
  def add_role_with_http_info(gem_gem_repository_href, nested_role, opts = {})
40
42
  if @api_client.config.debugging
@@ -63,6 +65,7 @@ module PulpGemClient
63
65
  if !content_type.nil?
64
66
  header_params['Content-Type'] = content_type
65
67
  end
68
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
66
69
 
67
70
  # form parameters
68
71
  form_params = opts[:form_params] || {}
@@ -97,6 +100,7 @@ module PulpGemClient
97
100
  # A ViewSet for GemRepository.
98
101
  # @param gem_gem_repository [GemGemRepository]
99
102
  # @param [Hash] opts the optional parameters
103
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
100
104
  # @return [GemGemRepositoryResponse]
101
105
  def create(gem_gem_repository, opts = {})
102
106
  data, _status_code, _headers = create_with_http_info(gem_gem_repository, opts)
@@ -107,6 +111,7 @@ module PulpGemClient
107
111
  # A ViewSet for GemRepository.
108
112
  # @param gem_gem_repository [GemGemRepository]
109
113
  # @param [Hash] opts the optional parameters
114
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
110
115
  # @return [Array<(GemGemRepositoryResponse, Integer, Hash)>] GemGemRepositoryResponse data, response status code and response headers
111
116
  def create_with_http_info(gem_gem_repository, opts = {})
112
117
  if @api_client.config.debugging
@@ -131,6 +136,7 @@ module PulpGemClient
131
136
  if !content_type.nil?
132
137
  header_params['Content-Type'] = content_type
133
138
  end
139
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
134
140
 
135
141
  # form parameters
136
142
  form_params = opts[:form_params] || {}
@@ -165,6 +171,7 @@ module PulpGemClient
165
171
  # Trigger an asynchronous delete task
166
172
  # @param gem_gem_repository_href [String]
167
173
  # @param [Hash] opts the optional parameters
174
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
168
175
  # @return [AsyncOperationResponse]
169
176
  def delete(gem_gem_repository_href, opts = {})
170
177
  data, _status_code, _headers = delete_with_http_info(gem_gem_repository_href, opts)
@@ -175,6 +182,7 @@ module PulpGemClient
175
182
  # Trigger an asynchronous delete task
176
183
  # @param gem_gem_repository_href [String]
177
184
  # @param [Hash] opts the optional parameters
185
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
178
186
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
179
187
  def delete_with_http_info(gem_gem_repository_href, opts = {})
180
188
  if @api_client.config.debugging
@@ -194,6 +202,7 @@ module PulpGemClient
194
202
  header_params = opts[:header_params] || {}
195
203
  # HTTP header 'Accept' (if needed)
196
204
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
205
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
197
206
 
198
207
  # form parameters
199
208
  form_params = opts[:form_params] || {}
@@ -227,6 +236,7 @@ module PulpGemClient
227
236
  # List gem repositorys
228
237
  # A ViewSet for GemRepository.
229
238
  # @param [Hash] opts the optional parameters
239
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
230
240
  # @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
231
241
  # @option opts [Integer] :limit Number of results to return per page.
232
242
  # @option opts [String] :name Filter results where name matches value
@@ -266,6 +276,7 @@ module PulpGemClient
266
276
  # List gem repositorys
267
277
  # A ViewSet for GemRepository.
268
278
  # @param [Hash] opts the optional parameters
279
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
269
280
  # @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
270
281
  # @option opts [Integer] :limit Number of results to return per page.
271
282
  # @option opts [String] :name Filter results where name matches value
@@ -345,6 +356,7 @@ module PulpGemClient
345
356
  header_params = opts[:header_params] || {}
346
357
  # HTTP header 'Accept' (if needed)
347
358
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
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] || {}
@@ -379,6 +391,7 @@ module PulpGemClient
379
391
  # List roles assigned to this object.
380
392
  # @param gem_gem_repository_href [String]
381
393
  # @param [Hash] opts the optional parameters
394
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
382
395
  # @option opts [Array<String>] :fields A list of fields to include in the response.
383
396
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
384
397
  # @return [ObjectRolesResponse]
@@ -391,6 +404,7 @@ module PulpGemClient
391
404
  # List roles assigned to this object.
392
405
  # @param gem_gem_repository_href [String]
393
406
  # @param [Hash] opts the optional parameters
407
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
394
408
  # @option opts [Array<String>] :fields A list of fields to include in the response.
395
409
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
396
410
  # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
@@ -414,6 +428,7 @@ module PulpGemClient
414
428
  header_params = opts[:header_params] || {}
415
429
  # HTTP header 'Accept' (if needed)
416
430
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
431
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
417
432
 
418
433
  # form parameters
419
434
  form_params = opts[:form_params] || {}
@@ -449,6 +464,7 @@ module PulpGemClient
449
464
  # @param gem_gem_repository_href [String]
450
465
  # @param repository_add_remove_content [RepositoryAddRemoveContent]
451
466
  # @param [Hash] opts the optional parameters
467
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
452
468
  # @return [AsyncOperationResponse]
453
469
  def modify(gem_gem_repository_href, repository_add_remove_content, opts = {})
454
470
  data, _status_code, _headers = modify_with_http_info(gem_gem_repository_href, repository_add_remove_content, opts)
@@ -460,6 +476,7 @@ module PulpGemClient
460
476
  # @param gem_gem_repository_href [String]
461
477
  # @param repository_add_remove_content [RepositoryAddRemoveContent]
462
478
  # @param [Hash] opts the optional parameters
479
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
463
480
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
464
481
  def modify_with_http_info(gem_gem_repository_href, repository_add_remove_content, opts = {})
465
482
  if @api_client.config.debugging
@@ -488,6 +505,7 @@ module PulpGemClient
488
505
  if !content_type.nil?
489
506
  header_params['Content-Type'] = content_type
490
507
  end
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] || {}
@@ -522,6 +540,7 @@ module PulpGemClient
522
540
  # List permissions available to the current user on this object.
523
541
  # @param gem_gem_repository_href [String]
524
542
  # @param [Hash] opts the optional parameters
543
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
525
544
  # @option opts [Array<String>] :fields A list of fields to include in the response.
526
545
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
527
546
  # @return [MyPermissionsResponse]
@@ -534,6 +553,7 @@ module PulpGemClient
534
553
  # List permissions available to the current user on this object.
535
554
  # @param gem_gem_repository_href [String]
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
  # @option opts [Array<String>] :fields A list of fields to include in the response.
538
558
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
539
559
  # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
@@ -557,6 +577,7 @@ module PulpGemClient
557
577
  header_params = opts[:header_params] || {}
558
578
  # HTTP header 'Accept' (if needed)
559
579
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
580
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
560
581
 
561
582
  # form parameters
562
583
  form_params = opts[:form_params] || {}
@@ -592,6 +613,7 @@ module PulpGemClient
592
613
  # @param gem_gem_repository_href [String]
593
614
  # @param patchedgem_gem_repository [PatchedgemGemRepository]
594
615
  # @param [Hash] opts the optional parameters
616
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
595
617
  # @return [AsyncOperationResponse]
596
618
  def partial_update(gem_gem_repository_href, patchedgem_gem_repository, opts = {})
597
619
  data, _status_code, _headers = partial_update_with_http_info(gem_gem_repository_href, patchedgem_gem_repository, opts)
@@ -603,6 +625,7 @@ module PulpGemClient
603
625
  # @param gem_gem_repository_href [String]
604
626
  # @param patchedgem_gem_repository [PatchedgemGemRepository]
605
627
  # @param [Hash] opts the optional parameters
628
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
606
629
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
607
630
  def partial_update_with_http_info(gem_gem_repository_href, patchedgem_gem_repository, opts = {})
608
631
  if @api_client.config.debugging
@@ -631,6 +654,7 @@ module PulpGemClient
631
654
  if !content_type.nil?
632
655
  header_params['Content-Type'] = content_type
633
656
  end
657
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
634
658
 
635
659
  # form parameters
636
660
  form_params = opts[:form_params] || {}
@@ -665,6 +689,7 @@ module PulpGemClient
665
689
  # A ViewSet for GemRepository.
666
690
  # @param gem_gem_repository_href [String]
667
691
  # @param [Hash] opts the optional parameters
692
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
668
693
  # @option opts [Array<String>] :fields A list of fields to include in the response.
669
694
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
670
695
  # @return [GemGemRepositoryResponse]
@@ -677,6 +702,7 @@ module PulpGemClient
677
702
  # A ViewSet for GemRepository.
678
703
  # @param gem_gem_repository_href [String]
679
704
  # @param [Hash] opts the optional parameters
705
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
680
706
  # @option opts [Array<String>] :fields A list of fields to include in the response.
681
707
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
682
708
  # @return [Array<(GemGemRepositoryResponse, Integer, Hash)>] GemGemRepositoryResponse data, response status code and response headers
@@ -700,6 +726,7 @@ module PulpGemClient
700
726
  header_params = opts[:header_params] || {}
701
727
  # HTTP header 'Accept' (if needed)
702
728
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
729
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
703
730
 
704
731
  # form parameters
705
732
  form_params = opts[:form_params] || {}
@@ -735,6 +762,7 @@ module PulpGemClient
735
762
  # @param gem_gem_repository_href [String]
736
763
  # @param nested_role [NestedRole]
737
764
  # @param [Hash] opts the optional parameters
765
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
738
766
  # @return [NestedRoleResponse]
739
767
  def remove_role(gem_gem_repository_href, nested_role, opts = {})
740
768
  data, _status_code, _headers = remove_role_with_http_info(gem_gem_repository_href, nested_role, opts)
@@ -746,6 +774,7 @@ module PulpGemClient
746
774
  # @param gem_gem_repository_href [String]
747
775
  # @param nested_role [NestedRole]
748
776
  # @param [Hash] opts the optional parameters
777
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
749
778
  # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
750
779
  def remove_role_with_http_info(gem_gem_repository_href, nested_role, opts = {})
751
780
  if @api_client.config.debugging
@@ -774,6 +803,7 @@ module PulpGemClient
774
803
  if !content_type.nil?
775
804
  header_params['Content-Type'] = content_type
776
805
  end
806
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
777
807
 
778
808
  # form parameters
779
809
  form_params = opts[:form_params] || {}
@@ -809,6 +839,7 @@ module PulpGemClient
809
839
  # @param gem_gem_repository_href [String]
810
840
  # @param set_label [SetLabel]
811
841
  # @param [Hash] opts the optional parameters
842
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
812
843
  # @return [SetLabelResponse]
813
844
  def set_label(gem_gem_repository_href, set_label, opts = {})
814
845
  data, _status_code, _headers = set_label_with_http_info(gem_gem_repository_href, set_label, opts)
@@ -820,6 +851,7 @@ module PulpGemClient
820
851
  # @param gem_gem_repository_href [String]
821
852
  # @param set_label [SetLabel]
822
853
  # @param [Hash] opts the optional parameters
854
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
823
855
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
824
856
  def set_label_with_http_info(gem_gem_repository_href, set_label, opts = {})
825
857
  if @api_client.config.debugging
@@ -848,6 +880,7 @@ module PulpGemClient
848
880
  if !content_type.nil?
849
881
  header_params['Content-Type'] = content_type
850
882
  end
883
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
851
884
 
852
885
  # form parameters
853
886
  form_params = opts[:form_params] || {}
@@ -883,6 +916,7 @@ module PulpGemClient
883
916
  # @param gem_gem_repository_href [String]
884
917
  # @param repository_sync_url [RepositorySyncURL]
885
918
  # @param [Hash] opts the optional parameters
919
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
886
920
  # @return [AsyncOperationResponse]
887
921
  def sync(gem_gem_repository_href, repository_sync_url, opts = {})
888
922
  data, _status_code, _headers = sync_with_http_info(gem_gem_repository_href, repository_sync_url, opts)
@@ -894,6 +928,7 @@ module PulpGemClient
894
928
  # @param gem_gem_repository_href [String]
895
929
  # @param repository_sync_url [RepositorySyncURL]
896
930
  # @param [Hash] opts the optional parameters
931
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
897
932
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
898
933
  def sync_with_http_info(gem_gem_repository_href, repository_sync_url, opts = {})
899
934
  if @api_client.config.debugging
@@ -922,6 +957,7 @@ module PulpGemClient
922
957
  if !content_type.nil?
923
958
  header_params['Content-Type'] = content_type
924
959
  end
960
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
925
961
 
926
962
  # form parameters
927
963
  form_params = opts[:form_params] || {}
@@ -957,6 +993,7 @@ module PulpGemClient
957
993
  # @param gem_gem_repository_href [String]
958
994
  # @param unset_label [UnsetLabel]
959
995
  # @param [Hash] opts the optional parameters
996
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
960
997
  # @return [UnsetLabelResponse]
961
998
  def unset_label(gem_gem_repository_href, unset_label, opts = {})
962
999
  data, _status_code, _headers = unset_label_with_http_info(gem_gem_repository_href, unset_label, opts)
@@ -968,6 +1005,7 @@ module PulpGemClient
968
1005
  # @param gem_gem_repository_href [String]
969
1006
  # @param unset_label [UnsetLabel]
970
1007
  # @param [Hash] opts the optional parameters
1008
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
971
1009
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
972
1010
  def unset_label_with_http_info(gem_gem_repository_href, unset_label, opts = {})
973
1011
  if @api_client.config.debugging
@@ -996,6 +1034,7 @@ module PulpGemClient
996
1034
  if !content_type.nil?
997
1035
  header_params['Content-Type'] = content_type
998
1036
  end
1037
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
999
1038
 
1000
1039
  # form parameters
1001
1040
  form_params = opts[:form_params] || {}
@@ -1031,6 +1070,7 @@ module PulpGemClient
1031
1070
  # @param gem_gem_repository_href [String]
1032
1071
  # @param gem_gem_repository [GemGemRepository]
1033
1072
  # @param [Hash] opts the optional parameters
1073
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
1034
1074
  # @return [AsyncOperationResponse]
1035
1075
  def update(gem_gem_repository_href, gem_gem_repository, opts = {})
1036
1076
  data, _status_code, _headers = update_with_http_info(gem_gem_repository_href, gem_gem_repository, opts)
@@ -1042,6 +1082,7 @@ module PulpGemClient
1042
1082
  # @param gem_gem_repository_href [String]
1043
1083
  # @param gem_gem_repository [GemGemRepository]
1044
1084
  # @param [Hash] opts the optional parameters
1085
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
1045
1086
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
1046
1087
  def update_with_http_info(gem_gem_repository_href, gem_gem_repository, opts = {})
1047
1088
  if @api_client.config.debugging
@@ -1070,6 +1111,7 @@ module PulpGemClient
1070
1111
  if !content_type.nil?
1071
1112
  header_params['Content-Type'] = content_type
1072
1113
  end
1114
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
1073
1115
 
1074
1116
  # form parameters
1075
1117
  form_params = opts[:form_params] || {}
@@ -23,6 +23,7 @@ module PulpGemClient
23
23
  # Trigger an asynchronous task to delete a repository version.
24
24
  # @param gem_gem_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(gem_gem_repository_version_href, opts = {})
28
29
  data, _status_code, _headers = delete_with_http_info(gem_gem_repository_version_href, opts)
@@ -33,6 +34,7 @@ module PulpGemClient
33
34
  # Trigger an asynchronous task to delete a repository version.
34
35
  # @param gem_gem_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(gem_gem_repository_version_href, opts = {})
38
40
  if @api_client.config.debugging
@@ -52,6 +54,7 @@ module PulpGemClient
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 PulpGemClient
86
89
  # A ViewSet for a GemRepositoryVersion represents a single Gem repository version.
87
90
  # @param gem_gem_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 PulpGemClient
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 PulpGemClient
119
123
  # A ViewSet for a GemRepositoryVersion represents a single Gem repository version.
120
124
  # @param gem_gem_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 PulpGemClient
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 PulpGemClient
151
156
  if @api_client.config.client_side_validation && gem_gem_repository_href.nil?
152
157
  fail ArgumentError, "Missing the required parameter 'gem_gem_repository_href' when calling RepositoriesGemVersionsApi.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 PulpGemClient
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 PulpGemClient
222
228
  # A ViewSet for a GemRepositoryVersion represents a single Gem repository version.
223
229
  # @param gem_gem_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 PulpGemClient
234
241
  # A ViewSet for a GemRepositoryVersion represents a single Gem repository version.
235
242
  # @param gem_gem_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 PulpGemClient
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 PulpGemClient
291
300
  # @param gem_gem_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(gem_gem_repository_version_href, repair, opts = {})
296
306
  data, _status_code, _headers = repair_with_http_info(gem_gem_repository_version_href, repair, opts)
@@ -301,6 +311,7 @@ module PulpGemClient
301
311
  # @param gem_gem_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(gem_gem_repository_version_href, repair, opts = {})
306
317
  if @api_client.config.debugging
@@ -329,6 +340,7 @@ module PulpGemClient
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] || {}
@@ -30,6 +30,8 @@ module PulpGemClient
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
  # A dict mapping relative paths inside the Content to the correspondingArtifact URLs. E.g.: {'relative/path': '/artifacts/1/'
34
36
  attr_accessor :artifacts
35
37
 
@@ -64,6 +66,7 @@ module PulpGemClient
64
66
  :'pulp_created' => :'pulp_created',
65
67
  :'pulp_last_updated' => :'pulp_last_updated',
66
68
  :'pulp_labels' => :'pulp_labels',
69
+ :'vuln_report' => :'vuln_report',
67
70
  :'artifacts' => :'artifacts',
68
71
  :'checksum' => :'checksum',
69
72
  :'name' => :'name',
@@ -89,6 +92,7 @@ module PulpGemClient
89
92
  :'pulp_created' => :'Time',
90
93
  :'pulp_last_updated' => :'Time',
91
94
  :'pulp_labels' => :'Hash<String, String>',
95
+ :'vuln_report' => :'String',
92
96
  :'artifacts' => :'Object',
93
97
  :'checksum' => :'String',
94
98
  :'name' => :'String',
@@ -144,6 +148,10 @@ module PulpGemClient
144
148
  end
145
149
  end
146
150
 
151
+ if attributes.key?(:'vuln_report')
152
+ self.vuln_report = attributes[:'vuln_report']
153
+ end
154
+
147
155
  if attributes.key?(:'artifacts')
148
156
  self.artifacts = attributes[:'artifacts']
149
157
  else
@@ -215,6 +223,7 @@ module PulpGemClient
215
223
  pulp_created == o.pulp_created &&
216
224
  pulp_last_updated == o.pulp_last_updated &&
217
225
  pulp_labels == o.pulp_labels &&
226
+ vuln_report == o.vuln_report &&
218
227
  artifacts == o.artifacts &&
219
228
  checksum == o.checksum &&
220
229
  name == o.name &&
@@ -235,7 +244,7 @@ module PulpGemClient
235
244
  # Calculates hash code according to all attributes.
236
245
  # @return [Integer] Hash code
237
246
  def hash
238
- [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, artifacts, checksum, name, version, platform, prerelease, dependencies, required_ruby_version, required_rubygems_version].hash
247
+ [pulp_href, prn, pulp_created, pulp_last_updated, pulp_labels, vuln_report, artifacts, checksum, name, version, platform, prerelease, dependencies, required_ruby_version, required_rubygems_version].hash
239
248
  end
240
249
 
241
250
  # Builds the object from hash
@@ -189,8 +189,6 @@ module PulpGemClient
189
189
  :'sock_connect_timeout',
190
190
  :'sock_read_timeout',
191
191
  :'rate_limit',
192
- :'includes',
193
- :'excludes'
194
192
  ])
195
193
  end
196
194
 
@@ -373,10 +371,6 @@ module PulpGemClient
373
371
  invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
374
372
  end
375
373
 
376
- if !@download_concurrency.nil? && @download_concurrency < 1
377
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
378
- end
379
-
380
374
  if !@total_timeout.nil? && @total_timeout < 0.0
381
375
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
382
376
  end
@@ -412,7 +406,6 @@ module PulpGemClient
412
406
  return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
413
407
  return false if !@username.nil? && @username.to_s.length < 1
414
408
  return false if !@password.nil? && @password.to_s.length < 1
415
- return false if !@download_concurrency.nil? && @download_concurrency < 1
416
409
  return false if !@total_timeout.nil? && @total_timeout < 0.0
417
410
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
418
411
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -528,16 +521,6 @@ module PulpGemClient
528
521
  @password = password
529
522
  end
530
523
 
531
- # Custom attribute writer method with validation
532
- # @param [Object] download_concurrency Value to be assigned
533
- def download_concurrency=(download_concurrency)
534
- if !download_concurrency.nil? && download_concurrency < 1
535
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
536
- end
537
-
538
- @download_concurrency = download_concurrency
539
- end
540
-
541
524
  # Custom attribute writer method with validation
542
525
  # @param [Object] total_timeout Value to be assigned
543
526
  def total_timeout=(total_timeout)
@@ -183,8 +183,6 @@ module PulpGemClient
183
183
  :'sock_connect_timeout',
184
184
  :'sock_read_timeout',
185
185
  :'rate_limit',
186
- :'includes',
187
- :'excludes'
188
186
  ])
189
187
  end
190
188
 
@@ -329,10 +327,6 @@ module PulpGemClient
329
327
  invalid_properties.push('invalid value for "url", url cannot be nil.')
330
328
  end
331
329
 
332
- if !@download_concurrency.nil? && @download_concurrency < 1
333
- invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
334
- end
335
-
336
330
  if !@total_timeout.nil? && @total_timeout < 0.0
337
331
  invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
338
332
  end
@@ -358,7 +352,6 @@ module PulpGemClient
358
352
  warn '[DEPRECATED] the `valid?` method is obsolete'
359
353
  return false if @name.nil?
360
354
  return false if @url.nil?
361
- return false if !@download_concurrency.nil? && @download_concurrency < 1
362
355
  return false if !@total_timeout.nil? && @total_timeout < 0.0
363
356
  return false if !@connect_timeout.nil? && @connect_timeout < 0.0
364
357
  return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
@@ -366,16 +359,6 @@ module PulpGemClient
366
359
  true
367
360
  end
368
361
 
369
- # Custom attribute writer method with validation
370
- # @param [Object] download_concurrency Value to be assigned
371
- def download_concurrency=(download_concurrency)
372
- if !download_concurrency.nil? && download_concurrency < 1
373
- fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
374
- end
375
-
376
- @download_concurrency = download_concurrency
377
- end
378
-
379
362
  # Custom attribute writer method with validation
380
363
  # @param [Object] total_timeout Value to be assigned
381
364
  def total_timeout=(total_timeout)
@@ -123,10 +123,6 @@ module PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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 PulpGemClient
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)