pulp_rpm_client 3.30.2 → 3.31.1

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 (67) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -5
  3. data/docs/AcsRpmApi.md +64 -28
  4. data/docs/ContentAdvisoriesApi.md +22 -8
  5. data/docs/ContentDistributionTreesApi.md +20 -8
  6. data/docs/ContentModulemdDefaultsApi.md +28 -12
  7. data/docs/ContentModulemdObsoletesApi.md +28 -12
  8. data/docs/ContentModulemdsApi.md +28 -12
  9. data/docs/ContentPackagecategoriesApi.md +20 -8
  10. data/docs/ContentPackageenvironmentsApi.md +20 -8
  11. data/docs/ContentPackagegroupsApi.md +20 -8
  12. data/docs/ContentPackagelangpacksApi.md +20 -8
  13. data/docs/ContentPackagesApi.md +105 -8
  14. data/docs/ContentRepoMetadataFilesApi.md +20 -8
  15. data/docs/DistributionsRpmApi.md +72 -32
  16. data/docs/PublicationsRpmApi.md +40 -16
  17. data/docs/RemotesRpmApi.md +72 -32
  18. data/docs/RemotesUlnApi.md +72 -32
  19. data/docs/RepositoriesRpmApi.md +88 -40
  20. data/docs/RepositoriesRpmVersionsApi.md +20 -8
  21. data/docs/RpmCompsApi.md +2 -0
  22. data/docs/RpmCopyApi.md +8 -4
  23. data/docs/RpmPruneApi.md +8 -4
  24. data/lib/pulp_rpm_client/api/acs_rpm_api.rb +33 -0
  25. data/lib/pulp_rpm_client/api/content_advisories_api.rb +15 -0
  26. data/lib/pulp_rpm_client/api/content_distribution_trees_api.rb +12 -0
  27. data/lib/pulp_rpm_client/api/content_modulemd_defaults_api.rb +15 -0
  28. data/lib/pulp_rpm_client/api/content_modulemd_obsoletes_api.rb +15 -0
  29. data/lib/pulp_rpm_client/api/content_modulemds_api.rb +15 -0
  30. data/lib/pulp_rpm_client/api/content_packagecategories_api.rb +12 -0
  31. data/lib/pulp_rpm_client/api/content_packageenvironments_api.rb +12 -0
  32. data/lib/pulp_rpm_client/api/content_packagegroups_api.rb +12 -0
  33. data/lib/pulp_rpm_client/api/content_packagelangpacks_api.rb +12 -0
  34. data/lib/pulp_rpm_client/api/content_packages_api.rb +99 -0
  35. data/lib/pulp_rpm_client/api/content_repo_metadata_files_api.rb +12 -0
  36. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +36 -0
  37. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +24 -0
  38. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +36 -0
  39. data/lib/pulp_rpm_client/api/remotes_uln_api.rb +36 -0
  40. data/lib/pulp_rpm_client/api/repositories_rpm_api.rb +42 -0
  41. data/lib/pulp_rpm_client/api/repositories_rpm_versions_api.rb +12 -0
  42. data/lib/pulp_rpm_client/api/rpm_comps_api.rb +3 -0
  43. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +3 -0
  44. data/lib/pulp_rpm_client/api/rpm_prune_api.rb +3 -0
  45. data/lib/pulp_rpm_client/version.rb +1 -1
  46. data/spec/api/acs_rpm_api_spec.rb +11 -0
  47. data/spec/api/content_advisories_api_spec.rb +5 -0
  48. data/spec/api/content_distribution_trees_api_spec.rb +4 -0
  49. data/spec/api/content_modulemd_defaults_api_spec.rb +5 -0
  50. data/spec/api/content_modulemd_obsoletes_api_spec.rb +5 -0
  51. data/spec/api/content_modulemds_api_spec.rb +5 -0
  52. data/spec/api/content_packagecategories_api_spec.rb +4 -0
  53. data/spec/api/content_packageenvironments_api_spec.rb +4 -0
  54. data/spec/api/content_packagegroups_api_spec.rb +4 -0
  55. data/spec/api/content_packagelangpacks_api_spec.rb +4 -0
  56. data/spec/api/content_packages_api_spec.rb +22 -0
  57. data/spec/api/content_repo_metadata_files_api_spec.rb +4 -0
  58. data/spec/api/distributions_rpm_api_spec.rb +12 -0
  59. data/spec/api/publications_rpm_api_spec.rb +8 -0
  60. data/spec/api/remotes_rpm_api_spec.rb +12 -0
  61. data/spec/api/remotes_uln_api_spec.rb +12 -0
  62. data/spec/api/repositories_rpm_api_spec.rb +14 -0
  63. data/spec/api/repositories_rpm_versions_api_spec.rb +4 -0
  64. data/spec/api/rpm_comps_api_spec.rb +1 -0
  65. data/spec/api/rpm_copy_api_spec.rb +1 -0
  66. data/spec/api/rpm_prune_api_spec.rb +1 -0
  67. metadata +82 -82
@@ -22,6 +22,7 @@ module PulpRpmClient
22
22
  # List package langpackss
23
23
  # PackageLangpacks ViewSet.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
25
26
  # @option opts [Integer] :limit Number of results to return per page.
26
27
  # @option opts [Integer] :offset The initial index from which to return the results.
27
28
  # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -45,6 +46,7 @@ module PulpRpmClient
45
46
  # List package langpackss
46
47
  # PackageLangpacks ViewSet.
47
48
  # @param [Hash] opts the optional parameters
49
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
48
50
  # @option opts [Integer] :limit Number of results to return per page.
49
51
  # @option opts [Integer] :offset The initial index from which to return the results.
50
52
  # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -92,6 +94,7 @@ module PulpRpmClient
92
94
  header_params = opts[:header_params] || {}
93
95
  # HTTP header 'Accept' (if needed)
94
96
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
97
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
95
98
 
96
99
  # form parameters
97
100
  form_params = opts[:form_params] || {}
@@ -126,6 +129,7 @@ module PulpRpmClient
126
129
  # PackageLangpacks ViewSet.
127
130
  # @param rpm_package_langpacks_href [String]
128
131
  # @param [Hash] opts the optional parameters
132
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
129
133
  # @option opts [Array<String>] :fields A list of fields to include in the response.
130
134
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
131
135
  # @return [RpmPackageLangpacksResponse]
@@ -138,6 +142,7 @@ module PulpRpmClient
138
142
  # PackageLangpacks ViewSet.
139
143
  # @param rpm_package_langpacks_href [String]
140
144
  # @param [Hash] opts the optional parameters
145
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
141
146
  # @option opts [Array<String>] :fields A list of fields to include in the response.
142
147
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
143
148
  # @return [Array<(RpmPackageLangpacksResponse, Integer, Hash)>] RpmPackageLangpacksResponse data, response status code and response headers
@@ -161,6 +166,7 @@ module PulpRpmClient
161
166
  header_params = opts[:header_params] || {}
162
167
  # HTTP header 'Accept' (if needed)
163
168
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
169
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
164
170
 
165
171
  # form parameters
166
172
  form_params = opts[:form_params] || {}
@@ -196,6 +202,7 @@ module PulpRpmClient
196
202
  # @param rpm_package_langpacks_href [String]
197
203
  # @param set_label [SetLabel]
198
204
  # @param [Hash] opts the optional parameters
205
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
199
206
  # @return [SetLabelResponse]
200
207
  def set_label(rpm_package_langpacks_href, set_label, opts = {})
201
208
  data, _status_code, _headers = set_label_with_http_info(rpm_package_langpacks_href, set_label, opts)
@@ -207,6 +214,7 @@ module PulpRpmClient
207
214
  # @param rpm_package_langpacks_href [String]
208
215
  # @param set_label [SetLabel]
209
216
  # @param [Hash] opts the optional parameters
217
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
210
218
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
211
219
  def set_label_with_http_info(rpm_package_langpacks_href, set_label, opts = {})
212
220
  if @api_client.config.debugging
@@ -235,6 +243,7 @@ module PulpRpmClient
235
243
  if !content_type.nil?
236
244
  header_params['Content-Type'] = content_type
237
245
  end
246
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
238
247
 
239
248
  # form parameters
240
249
  form_params = opts[:form_params] || {}
@@ -270,6 +279,7 @@ module PulpRpmClient
270
279
  # @param rpm_package_langpacks_href [String]
271
280
  # @param unset_label [UnsetLabel]
272
281
  # @param [Hash] opts the optional parameters
282
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
273
283
  # @return [UnsetLabelResponse]
274
284
  def unset_label(rpm_package_langpacks_href, unset_label, opts = {})
275
285
  data, _status_code, _headers = unset_label_with_http_info(rpm_package_langpacks_href, unset_label, opts)
@@ -281,6 +291,7 @@ module PulpRpmClient
281
291
  # @param rpm_package_langpacks_href [String]
282
292
  # @param unset_label [UnsetLabel]
283
293
  # @param [Hash] opts the optional parameters
294
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
284
295
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
285
296
  def unset_label_with_http_info(rpm_package_langpacks_href, unset_label, opts = {})
286
297
  if @api_client.config.debugging
@@ -309,6 +320,7 @@ module PulpRpmClient
309
320
  if !content_type.nil?
310
321
  header_params['Content-Type'] = content_type
311
322
  end
323
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
312
324
 
313
325
  # form parameters
314
326
  form_params = opts[:form_params] || {}
@@ -22,6 +22,7 @@ module PulpRpmClient
22
22
  # Create a package
23
23
  # Trigger an asynchronous task to create an RPM package,optionally create new repository version.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
25
26
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
26
27
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
27
28
  # @option opts [String] :artifact Artifact file representing the physical content
@@ -38,6 +39,7 @@ module PulpRpmClient
38
39
  # Create a package
39
40
  # Trigger an asynchronous task to create an RPM package,optionally create new repository version.
40
41
  # @param [Hash] opts the optional parameters
42
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
41
43
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
42
44
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
43
45
  # @option opts [String] :artifact Artifact file representing the physical content
@@ -73,6 +75,7 @@ module PulpRpmClient
73
75
  if !content_type.nil?
74
76
  header_params['Content-Type'] = content_type
75
77
  end
78
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
76
79
 
77
80
  # form parameters
78
81
  form_params = opts[:form_params] || {}
@@ -113,6 +116,7 @@ module PulpRpmClient
113
116
  # List packages
114
117
  # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
115
118
  # @param [Hash] opts the optional parameters
119
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
116
120
  # @option opts [String] :arch Filter results where arch matches value
117
121
  # @option opts [String] :arch__contains Filter results where arch contains value
118
122
  # @option opts [Array<String>] :arch__in Filter results where arch is in a comma-separated list of values
@@ -164,6 +168,7 @@ module PulpRpmClient
164
168
  # List packages
165
169
  # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
166
170
  # @param [Hash] opts the optional parameters
171
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
167
172
  # @option opts [String] :arch Filter results where arch matches value
168
173
  # @option opts [String] :arch__contains Filter results where arch contains value
169
174
  # @option opts [Array<String>] :arch__in Filter results where arch is in a comma-separated list of values
@@ -271,6 +276,7 @@ module PulpRpmClient
271
276
  header_params = opts[:header_params] || {}
272
277
  # HTTP header 'Accept' (if needed)
273
278
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
279
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
274
280
 
275
281
  # form parameters
276
282
  form_params = opts[:form_params] || {}
@@ -305,6 +311,7 @@ module PulpRpmClient
305
311
  # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
306
312
  # @param rpm_package_href [String]
307
313
  # @param [Hash] opts the optional parameters
314
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
308
315
  # @option opts [Array<String>] :fields A list of fields to include in the response.
309
316
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
310
317
  # @return [RpmPackageResponse]
@@ -317,6 +324,7 @@ module PulpRpmClient
317
324
  # A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/rpm/packages/ Also specify queryset and serializer for Package.
318
325
  # @param rpm_package_href [String]
319
326
  # @param [Hash] opts the optional parameters
327
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
320
328
  # @option opts [Array<String>] :fields A list of fields to include in the response.
321
329
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
322
330
  # @return [Array<(RpmPackageResponse, Integer, Hash)>] RpmPackageResponse data, response status code and response headers
@@ -340,6 +348,7 @@ module PulpRpmClient
340
348
  header_params = opts[:header_params] || {}
341
349
  # HTTP header 'Accept' (if needed)
342
350
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
351
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
343
352
 
344
353
  # form parameters
345
354
  form_params = opts[:form_params] || {}
@@ -375,6 +384,7 @@ module PulpRpmClient
375
384
  # @param rpm_package_href [String]
376
385
  # @param set_label [SetLabel]
377
386
  # @param [Hash] opts the optional parameters
387
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
378
388
  # @return [SetLabelResponse]
379
389
  def set_label(rpm_package_href, set_label, opts = {})
380
390
  data, _status_code, _headers = set_label_with_http_info(rpm_package_href, set_label, opts)
@@ -386,6 +396,7 @@ module PulpRpmClient
386
396
  # @param rpm_package_href [String]
387
397
  # @param set_label [SetLabel]
388
398
  # @param [Hash] opts the optional parameters
399
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
389
400
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
390
401
  def set_label_with_http_info(rpm_package_href, set_label, opts = {})
391
402
  if @api_client.config.debugging
@@ -414,6 +425,7 @@ module PulpRpmClient
414
425
  if !content_type.nil?
415
426
  header_params['Content-Type'] = content_type
416
427
  end
428
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
417
429
 
418
430
  # form parameters
419
431
  form_params = opts[:form_params] || {}
@@ -449,6 +461,7 @@ module PulpRpmClient
449
461
  # @param rpm_package_href [String]
450
462
  # @param unset_label [UnsetLabel]
451
463
  # @param [Hash] opts the optional parameters
464
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
452
465
  # @return [UnsetLabelResponse]
453
466
  def unset_label(rpm_package_href, unset_label, opts = {})
454
467
  data, _status_code, _headers = unset_label_with_http_info(rpm_package_href, unset_label, opts)
@@ -460,6 +473,7 @@ module PulpRpmClient
460
473
  # @param rpm_package_href [String]
461
474
  # @param unset_label [UnsetLabel]
462
475
  # @param [Hash] opts the optional parameters
476
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
463
477
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
464
478
  def unset_label_with_http_info(rpm_package_href, unset_label, opts = {})
465
479
  if @api_client.config.debugging
@@ -488,6 +502,7 @@ module PulpRpmClient
488
502
  if !content_type.nil?
489
503
  header_params['Content-Type'] = content_type
490
504
  end
505
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
491
506
 
492
507
  # form parameters
493
508
  form_params = opts[:form_params] || {}
@@ -517,5 +532,89 @@ module PulpRpmClient
517
532
  end
518
533
  return data, status_code, headers
519
534
  end
535
+
536
+ # Upload an RPM package synchronously.
537
+ # Synchronously upload an RPM package.
538
+ # @param [Hash] opts the optional parameters
539
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
540
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
541
+ # @option opts [String] :artifact Artifact file representing the physical content
542
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
543
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
544
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
545
+ # @return [RpmPackageResponse]
546
+ def upload(opts = {})
547
+ data, _status_code, _headers = upload_with_http_info(opts)
548
+ data
549
+ end
550
+
551
+ # Upload an RPM package synchronously.
552
+ # Synchronously upload an RPM package.
553
+ # @param [Hash] opts the optional parameters
554
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
555
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
556
+ # @option opts [String] :artifact Artifact file representing the physical content
557
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
558
+ # @option opts [String] :upload An uncommitted upload that may be turned into the content unit.
559
+ # @option opts [String] :file_url A url that Pulp can download and turn into the content unit.
560
+ # @return [Array<(RpmPackageResponse, Integer, Hash)>] RpmPackageResponse data, response status code and response headers
561
+ def upload_with_http_info(opts = {})
562
+ if @api_client.config.debugging
563
+ @api_client.config.logger.debug 'Calling API: ContentPackagesApi.upload ...'
564
+ end
565
+ if @api_client.config.client_side_validation && !opts[:'file_url'].nil? && opts[:'file_url'].to_s.length < 1
566
+ fail ArgumentError, 'invalid value for "opts[:"file_url"]" when calling ContentPackagesApi.upload, the character length must be great than or equal to 1.'
567
+ end
568
+
569
+ # resource path
570
+ local_var_path = '/pulp/api/v3/content/rpm/packages/upload/'
571
+
572
+ # query parameters
573
+ query_params = opts[:query_params] || {}
574
+
575
+ # header parameters
576
+ header_params = opts[:header_params] || {}
577
+ # HTTP header 'Accept' (if needed)
578
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
579
+ # HTTP header 'Content-Type'
580
+ content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
581
+ if !content_type.nil?
582
+ header_params['Content-Type'] = content_type
583
+ end
584
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
585
+
586
+ # form parameters
587
+ form_params = opts[:form_params] || {}
588
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
589
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
590
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
591
+ form_params['upload'] = opts[:'upload'] if !opts[:'upload'].nil?
592
+ form_params['file_url'] = opts[:'file_url'] if !opts[:'file_url'].nil?
593
+
594
+ # http body (model)
595
+ post_body = opts[:debug_body]
596
+
597
+ # return_type
598
+ return_type = opts[:debug_return_type] || 'RpmPackageResponse'
599
+
600
+ # auth_names
601
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
602
+
603
+ new_options = opts.merge(
604
+ :operation => :"ContentPackagesApi.upload",
605
+ :header_params => header_params,
606
+ :query_params => query_params,
607
+ :form_params => form_params,
608
+ :body => post_body,
609
+ :auth_names => auth_names,
610
+ :return_type => return_type
611
+ )
612
+
613
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
614
+ if @api_client.config.debugging
615
+ @api_client.config.logger.debug "API called: ContentPackagesApi#upload\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
616
+ end
617
+ return data, status_code, headers
618
+ end
520
619
  end
521
620
  end
@@ -22,6 +22,7 @@ module PulpRpmClient
22
22
  # List repo metadata files
23
23
  # RepoMetadataFile Viewset.
24
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
25
26
  # @option opts [Integer] :limit Number of results to return per page.
26
27
  # @option opts [Integer] :offset The initial index from which to return the results.
27
28
  # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -45,6 +46,7 @@ module PulpRpmClient
45
46
  # List repo metadata files
46
47
  # RepoMetadataFile Viewset.
47
48
  # @param [Hash] opts the optional parameters
49
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
48
50
  # @option opts [Integer] :limit Number of results to return per page.
49
51
  # @option opts [Integer] :offset The initial index from which to return the results.
50
52
  # @option opts [Array<String>] :ordering Ordering * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -92,6 +94,7 @@ module PulpRpmClient
92
94
  header_params = opts[:header_params] || {}
93
95
  # HTTP header 'Accept' (if needed)
94
96
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
97
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
95
98
 
96
99
  # form parameters
97
100
  form_params = opts[:form_params] || {}
@@ -126,6 +129,7 @@ module PulpRpmClient
126
129
  # RepoMetadataFile Viewset.
127
130
  # @param rpm_repo_metadata_file_href [String]
128
131
  # @param [Hash] opts the optional parameters
132
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
129
133
  # @option opts [Array<String>] :fields A list of fields to include in the response.
130
134
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
131
135
  # @return [RpmRepoMetadataFileResponse]
@@ -138,6 +142,7 @@ module PulpRpmClient
138
142
  # RepoMetadataFile Viewset.
139
143
  # @param rpm_repo_metadata_file_href [String]
140
144
  # @param [Hash] opts the optional parameters
145
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
141
146
  # @option opts [Array<String>] :fields A list of fields to include in the response.
142
147
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
143
148
  # @return [Array<(RpmRepoMetadataFileResponse, Integer, Hash)>] RpmRepoMetadataFileResponse data, response status code and response headers
@@ -161,6 +166,7 @@ module PulpRpmClient
161
166
  header_params = opts[:header_params] || {}
162
167
  # HTTP header 'Accept' (if needed)
163
168
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
169
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
164
170
 
165
171
  # form parameters
166
172
  form_params = opts[:form_params] || {}
@@ -196,6 +202,7 @@ module PulpRpmClient
196
202
  # @param rpm_repo_metadata_file_href [String]
197
203
  # @param set_label [SetLabel]
198
204
  # @param [Hash] opts the optional parameters
205
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
199
206
  # @return [SetLabelResponse]
200
207
  def set_label(rpm_repo_metadata_file_href, set_label, opts = {})
201
208
  data, _status_code, _headers = set_label_with_http_info(rpm_repo_metadata_file_href, set_label, opts)
@@ -207,6 +214,7 @@ module PulpRpmClient
207
214
  # @param rpm_repo_metadata_file_href [String]
208
215
  # @param set_label [SetLabel]
209
216
  # @param [Hash] opts the optional parameters
217
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
210
218
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
211
219
  def set_label_with_http_info(rpm_repo_metadata_file_href, set_label, opts = {})
212
220
  if @api_client.config.debugging
@@ -235,6 +243,7 @@ module PulpRpmClient
235
243
  if !content_type.nil?
236
244
  header_params['Content-Type'] = content_type
237
245
  end
246
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
238
247
 
239
248
  # form parameters
240
249
  form_params = opts[:form_params] || {}
@@ -270,6 +279,7 @@ module PulpRpmClient
270
279
  # @param rpm_repo_metadata_file_href [String]
271
280
  # @param unset_label [UnsetLabel]
272
281
  # @param [Hash] opts the optional parameters
282
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
273
283
  # @return [UnsetLabelResponse]
274
284
  def unset_label(rpm_repo_metadata_file_href, unset_label, opts = {})
275
285
  data, _status_code, _headers = unset_label_with_http_info(rpm_repo_metadata_file_href, unset_label, opts)
@@ -281,6 +291,7 @@ module PulpRpmClient
281
291
  # @param rpm_repo_metadata_file_href [String]
282
292
  # @param unset_label [UnsetLabel]
283
293
  # @param [Hash] opts the optional parameters
294
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
284
295
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
285
296
  def unset_label_with_http_info(rpm_repo_metadata_file_href, unset_label, opts = {})
286
297
  if @api_client.config.debugging
@@ -309,6 +320,7 @@ module PulpRpmClient
309
320
  if !content_type.nil?
310
321
  header_params['Content-Type'] = content_type
311
322
  end
323
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
312
324
 
313
325
  # form parameters
314
326
  form_params = opts[:form_params] || {}