pulp_maven_client 0.10.1 → 0.12.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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -5
  3. data/docs/ContentArtifactApi.md +28 -12
  4. data/docs/DistributionsMavenApi.md +58 -30
  5. data/docs/MavenMavenArtifactResponse.md +2 -0
  6. data/docs/MavenMavenRemoteResponse.md +1 -1
  7. data/docs/PulpMavenApi.md +10 -4
  8. data/docs/RemotesMavenApi.md +58 -30
  9. data/docs/RepositoriesMavenApi.md +66 -34
  10. data/docs/RepositoriesMavenVersionsApi.md +22 -10
  11. data/docs/RepositoryVersionResponse.md +3 -1
  12. data/lib/pulp_maven_client/api/content_artifact_api.rb +15 -0
  13. data/lib/pulp_maven_client/api/distributions_maven_api.rb +34 -10
  14. data/lib/pulp_maven_client/api/pulp_maven_api.rb +6 -0
  15. data/lib/pulp_maven_client/api/remotes_maven_api.rb +34 -10
  16. data/lib/pulp_maven_client/api/repositories_maven_api.rb +37 -10
  17. data/lib/pulp_maven_client/api/repositories_maven_versions_api.rb +15 -3
  18. data/lib/pulp_maven_client/models/maven_maven_artifact_response.rb +10 -1
  19. data/lib/pulp_maven_client/models/maven_maven_remote.rb +0 -15
  20. data/lib/pulp_maven_client/models/maven_maven_remote_response.rb +0 -15
  21. data/lib/pulp_maven_client/models/maven_maven_repository.rb +0 -15
  22. data/lib/pulp_maven_client/models/maven_maven_repository_response.rb +0 -15
  23. data/lib/pulp_maven_client/models/paginated_repository_version_response_list.rb +0 -2
  24. data/lib/pulp_maven_client/models/paginatedmaven_maven_artifact_response_list.rb +0 -2
  25. data/lib/pulp_maven_client/models/paginatedmaven_maven_distribution_response_list.rb +0 -2
  26. data/lib/pulp_maven_client/models/paginatedmaven_maven_remote_response_list.rb +0 -2
  27. data/lib/pulp_maven_client/models/paginatedmaven_maven_repository_response_list.rb +0 -2
  28. data/lib/pulp_maven_client/models/patchedmaven_maven_remote.rb +0 -15
  29. data/lib/pulp_maven_client/models/patchedmaven_maven_repository.rb +0 -15
  30. data/lib/pulp_maven_client/models/repository_version_response.rb +13 -4
  31. data/lib/pulp_maven_client/version.rb +1 -1
  32. data/spec/api/content_artifact_api_spec.rb +5 -0
  33. data/spec/api/distributions_maven_api_spec.rb +12 -4
  34. data/spec/api/pulp_maven_api_spec.rb +2 -0
  35. data/spec/api/remotes_maven_api_spec.rb +12 -4
  36. data/spec/api/repositories_maven_api_spec.rb +13 -4
  37. data/spec/api/repositories_maven_versions_api_spec.rb +5 -1
  38. data/spec/models/maven_maven_artifact_response_spec.rb +6 -0
  39. data/spec/models/repository_version_response_spec.rb +6 -0
  40. metadata +25 -25
@@ -23,6 +23,7 @@ module PulpMavenClient
23
23
  # Trigger an asynchronous create task
24
24
  # @param maven_maven_distribution [MavenMavenDistribution]
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 create(maven_maven_distribution, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(maven_maven_distribution, opts)
@@ -33,6 +34,7 @@ module PulpMavenClient
33
34
  # Trigger an asynchronous create task
34
35
  # @param maven_maven_distribution [MavenMavenDistribution]
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 create_with_http_info(maven_maven_distribution, opts = {})
38
40
  if @api_client.config.debugging
@@ -57,6 +59,7 @@ module PulpMavenClient
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 PulpMavenClient
91
94
  # Trigger an asynchronous delete task
92
95
  # @param maven_maven_distribution_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(maven_maven_distribution_href, opts = {})
96
100
  data, _status_code, _headers = delete_with_http_info(maven_maven_distribution_href, opts)
@@ -101,6 +105,7 @@ module PulpMavenClient
101
105
  # Trigger an asynchronous delete task
102
106
  # @param maven_maven_distribution_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(maven_maven_distribution_href, opts = {})
106
111
  if @api_client.config.debugging
@@ -120,6 +125,7 @@ module PulpMavenClient
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 PulpMavenClient
153
159
  # List maven distributions
154
160
  # ViewSet for Maven Distributions.
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] :base_path Filter results where base_path matches value
157
164
  # @option opts [String] :base_path__contains Filter results where base_path contains value
158
165
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
@@ -189,6 +196,7 @@ module PulpMavenClient
189
196
  # List maven distributions
190
197
  # ViewSet for Maven Distributions.
191
198
  # @param [Hash] opts the optional parameters
199
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
192
200
  # @option opts [String] :base_path Filter results where base_path matches value
193
201
  # @option opts [String] :base_path__contains Filter results where base_path contains value
194
202
  # @option opts [String] :base_path__icontains Filter results where base_path contains value
@@ -262,6 +270,7 @@ module PulpMavenClient
262
270
  header_params = opts[:header_params] || {}
263
271
  # HTTP header 'Accept' (if needed)
264
272
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
273
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
265
274
 
266
275
  # form parameters
267
276
  form_params = opts[:form_params] || {}
@@ -293,22 +302,24 @@ module PulpMavenClient
293
302
  end
294
303
 
295
304
  # Update a maven distribution
296
- # Trigger an asynchronous partial update task
305
+ # Update the entity partially and trigger an asynchronous task if necessary
297
306
  # @param maven_maven_distribution_href [String]
298
307
  # @param patchedmaven_maven_distribution [PatchedmavenMavenDistribution]
299
308
  # @param [Hash] opts the optional parameters
300
- # @return [AsyncOperationResponse]
309
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
310
+ # @return [MavenMavenDistributionResponse]
301
311
  def partial_update(maven_maven_distribution_href, patchedmaven_maven_distribution, opts = {})
302
312
  data, _status_code, _headers = partial_update_with_http_info(maven_maven_distribution_href, patchedmaven_maven_distribution, opts)
303
313
  data
304
314
  end
305
315
 
306
316
  # Update a maven distribution
307
- # Trigger an asynchronous partial update task
317
+ # Update the entity partially and trigger an asynchronous task if necessary
308
318
  # @param maven_maven_distribution_href [String]
309
319
  # @param patchedmaven_maven_distribution [PatchedmavenMavenDistribution]
310
320
  # @param [Hash] opts the optional parameters
311
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
321
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
322
+ # @return [Array<(MavenMavenDistributionResponse, Integer, Hash)>] MavenMavenDistributionResponse data, response status code and response headers
312
323
  def partial_update_with_http_info(maven_maven_distribution_href, patchedmaven_maven_distribution, opts = {})
313
324
  if @api_client.config.debugging
314
325
  @api_client.config.logger.debug 'Calling API: DistributionsMavenApi.partial_update ...'
@@ -336,6 +347,7 @@ module PulpMavenClient
336
347
  if !content_type.nil?
337
348
  header_params['Content-Type'] = content_type
338
349
  end
350
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
339
351
 
340
352
  # form parameters
341
353
  form_params = opts[:form_params] || {}
@@ -344,7 +356,7 @@ module PulpMavenClient
344
356
  post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedmaven_maven_distribution)
345
357
 
346
358
  # return_type
347
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
359
+ return_type = opts[:debug_return_type] || 'MavenMavenDistributionResponse'
348
360
 
349
361
  # auth_names
350
362
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -370,6 +382,7 @@ module PulpMavenClient
370
382
  # ViewSet for Maven Distributions.
371
383
  # @param maven_maven_distribution_href [String]
372
384
  # @param [Hash] opts the optional parameters
385
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
373
386
  # @option opts [Array<String>] :fields A list of fields to include in the response.
374
387
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
375
388
  # @return [MavenMavenDistributionResponse]
@@ -382,6 +395,7 @@ module PulpMavenClient
382
395
  # ViewSet for Maven Distributions.
383
396
  # @param maven_maven_distribution_href [String]
384
397
  # @param [Hash] opts the optional parameters
398
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
385
399
  # @option opts [Array<String>] :fields A list of fields to include in the response.
386
400
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
387
401
  # @return [Array<(MavenMavenDistributionResponse, Integer, Hash)>] MavenMavenDistributionResponse data, response status code and response headers
@@ -405,6 +419,7 @@ module PulpMavenClient
405
419
  header_params = opts[:header_params] || {}
406
420
  # HTTP header 'Accept' (if needed)
407
421
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
422
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
408
423
 
409
424
  # form parameters
410
425
  form_params = opts[:form_params] || {}
@@ -440,6 +455,7 @@ module PulpMavenClient
440
455
  # @param maven_maven_distribution_href [String]
441
456
  # @param set_label [SetLabel]
442
457
  # @param [Hash] opts the optional parameters
458
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
443
459
  # @return [SetLabelResponse]
444
460
  def set_label(maven_maven_distribution_href, set_label, opts = {})
445
461
  data, _status_code, _headers = set_label_with_http_info(maven_maven_distribution_href, set_label, opts)
@@ -451,6 +467,7 @@ module PulpMavenClient
451
467
  # @param maven_maven_distribution_href [String]
452
468
  # @param set_label [SetLabel]
453
469
  # @param [Hash] opts the optional parameters
470
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
454
471
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
455
472
  def set_label_with_http_info(maven_maven_distribution_href, set_label, opts = {})
456
473
  if @api_client.config.debugging
@@ -479,6 +496,7 @@ module PulpMavenClient
479
496
  if !content_type.nil?
480
497
  header_params['Content-Type'] = content_type
481
498
  end
499
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
482
500
 
483
501
  # form parameters
484
502
  form_params = opts[:form_params] || {}
@@ -514,6 +532,7 @@ module PulpMavenClient
514
532
  # @param maven_maven_distribution_href [String]
515
533
  # @param unset_label [UnsetLabel]
516
534
  # @param [Hash] opts the optional parameters
535
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
517
536
  # @return [UnsetLabelResponse]
518
537
  def unset_label(maven_maven_distribution_href, unset_label, opts = {})
519
538
  data, _status_code, _headers = unset_label_with_http_info(maven_maven_distribution_href, unset_label, opts)
@@ -525,6 +544,7 @@ module PulpMavenClient
525
544
  # @param maven_maven_distribution_href [String]
526
545
  # @param unset_label [UnsetLabel]
527
546
  # @param [Hash] opts the optional parameters
547
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
528
548
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
529
549
  def unset_label_with_http_info(maven_maven_distribution_href, unset_label, opts = {})
530
550
  if @api_client.config.debugging
@@ -553,6 +573,7 @@ module PulpMavenClient
553
573
  if !content_type.nil?
554
574
  header_params['Content-Type'] = content_type
555
575
  end
576
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
556
577
 
557
578
  # form parameters
558
579
  form_params = opts[:form_params] || {}
@@ -584,22 +605,24 @@ module PulpMavenClient
584
605
  end
585
606
 
586
607
  # Update a maven distribution
587
- # Trigger an asynchronous update task
608
+ # Update the entity and trigger an asynchronous task if necessary
588
609
  # @param maven_maven_distribution_href [String]
589
610
  # @param maven_maven_distribution [MavenMavenDistribution]
590
611
  # @param [Hash] opts the optional parameters
591
- # @return [AsyncOperationResponse]
612
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
613
+ # @return [MavenMavenDistributionResponse]
592
614
  def update(maven_maven_distribution_href, maven_maven_distribution, opts = {})
593
615
  data, _status_code, _headers = update_with_http_info(maven_maven_distribution_href, maven_maven_distribution, opts)
594
616
  data
595
617
  end
596
618
 
597
619
  # Update a maven distribution
598
- # Trigger an asynchronous update task
620
+ # Update the entity and trigger an asynchronous task if necessary
599
621
  # @param maven_maven_distribution_href [String]
600
622
  # @param maven_maven_distribution [MavenMavenDistribution]
601
623
  # @param [Hash] opts the optional parameters
602
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
624
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
625
+ # @return [Array<(MavenMavenDistributionResponse, Integer, Hash)>] MavenMavenDistributionResponse data, response status code and response headers
603
626
  def update_with_http_info(maven_maven_distribution_href, maven_maven_distribution, opts = {})
604
627
  if @api_client.config.debugging
605
628
  @api_client.config.logger.debug 'Calling API: DistributionsMavenApi.update ...'
@@ -627,6 +650,7 @@ module PulpMavenClient
627
650
  if !content_type.nil?
628
651
  header_params['Content-Type'] = content_type
629
652
  end
653
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
630
654
 
631
655
  # form parameters
632
656
  form_params = opts[:form_params] || {}
@@ -635,7 +659,7 @@ module PulpMavenClient
635
659
  post_body = opts[:debug_body] || @api_client.object_to_http_body(maven_maven_distribution)
636
660
 
637
661
  # return_type
638
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
662
+ return_type = opts[:debug_return_type] || 'MavenMavenDistributionResponse'
639
663
 
640
664
  # auth_names
641
665
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -23,6 +23,7 @@ module PulpMavenClient
23
23
  # @param name [String]
24
24
  # @param path [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
  # @option opts [Array<String>] :fields A list of fields to include in the response.
27
28
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
28
29
  # @return [nil]
@@ -35,6 +36,7 @@ module PulpMavenClient
35
36
  # @param name [String]
36
37
  # @param path [String]
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
  # @option opts [Array<String>] :fields A list of fields to include in the response.
39
41
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
40
42
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -70,6 +72,7 @@ module PulpMavenClient
70
72
 
71
73
  # header parameters
72
74
  header_params = opts[:header_params] || {}
75
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
73
76
 
74
77
  # form parameters
75
78
  form_params = opts[:form_params] || {}
@@ -104,6 +107,7 @@ module PulpMavenClient
104
107
  # @param name [String]
105
108
  # @param path [String]
106
109
  # @param [Hash] opts the optional parameters
110
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
107
111
  # @return [nil]
108
112
  def put(name, path, opts = {})
109
113
  put_with_http_info(name, path, opts)
@@ -114,6 +118,7 @@ module PulpMavenClient
114
118
  # @param name [String]
115
119
  # @param path [String]
116
120
  # @param [Hash] opts the optional parameters
121
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
117
122
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
118
123
  def put_with_http_info(name, path, opts = {})
119
124
  if @api_client.config.debugging
@@ -145,6 +150,7 @@ module PulpMavenClient
145
150
 
146
151
  # header parameters
147
152
  header_params = opts[:header_params] || {}
153
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
148
154
 
149
155
  # form parameters
150
156
  form_params = opts[:form_params] || {}
@@ -23,6 +23,7 @@ module PulpMavenClient
23
23
  # A ViewSet for MavenRemote.
24
24
  # @param maven_maven_remote [MavenMavenRemote]
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 [MavenMavenRemoteResponse]
27
28
  def create(maven_maven_remote, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(maven_maven_remote, opts)
@@ -33,6 +34,7 @@ module PulpMavenClient
33
34
  # A ViewSet for MavenRemote.
34
35
  # @param maven_maven_remote [MavenMavenRemote]
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<(MavenMavenRemoteResponse, Integer, Hash)>] MavenMavenRemoteResponse data, response status code and response headers
37
39
  def create_with_http_info(maven_maven_remote, opts = {})
38
40
  if @api_client.config.debugging
@@ -57,6 +59,7 @@ module PulpMavenClient
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 PulpMavenClient
91
94
  # Trigger an asynchronous delete task
92
95
  # @param maven_maven_remote_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(maven_maven_remote_href, opts = {})
96
100
  data, _status_code, _headers = delete_with_http_info(maven_maven_remote_href, opts)
@@ -101,6 +105,7 @@ module PulpMavenClient
101
105
  # Trigger an asynchronous delete task
102
106
  # @param maven_maven_remote_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(maven_maven_remote_href, opts = {})
106
111
  if @api_client.config.debugging
@@ -120,6 +125,7 @@ module PulpMavenClient
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 PulpMavenClient
153
159
  # List maven remotes
154
160
  # A ViewSet for MavenRemote.
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 [Integer] :limit Number of results to return per page.
157
164
  # @option opts [String] :name Filter results where name matches value
158
165
  # @option opts [String] :name__contains Filter results where name contains value
@@ -188,6 +195,7 @@ module PulpMavenClient
188
195
  # List maven remotes
189
196
  # A ViewSet for MavenRemote.
190
197
  # @param [Hash] opts the optional parameters
198
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
191
199
  # @option opts [Integer] :limit Number of results to return per page.
192
200
  # @option opts [String] :name Filter results where name matches value
193
201
  # @option opts [String] :name__contains Filter results where name contains value
@@ -259,6 +267,7 @@ module PulpMavenClient
259
267
  header_params = opts[:header_params] || {}
260
268
  # HTTP header 'Accept' (if needed)
261
269
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
270
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
262
271
 
263
272
  # form parameters
264
273
  form_params = opts[:form_params] || {}
@@ -290,22 +299,24 @@ module PulpMavenClient
290
299
  end
291
300
 
292
301
  # Update a maven remote
293
- # Trigger an asynchronous partial update task
302
+ # Update the entity partially and trigger an asynchronous task if necessary
294
303
  # @param maven_maven_remote_href [String]
295
304
  # @param patchedmaven_maven_remote [PatchedmavenMavenRemote]
296
305
  # @param [Hash] opts the optional parameters
297
- # @return [AsyncOperationResponse]
306
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
307
+ # @return [MavenMavenRemoteResponse]
298
308
  def partial_update(maven_maven_remote_href, patchedmaven_maven_remote, opts = {})
299
309
  data, _status_code, _headers = partial_update_with_http_info(maven_maven_remote_href, patchedmaven_maven_remote, opts)
300
310
  data
301
311
  end
302
312
 
303
313
  # Update a maven remote
304
- # Trigger an asynchronous partial update task
314
+ # Update the entity partially and trigger an asynchronous task if necessary
305
315
  # @param maven_maven_remote_href [String]
306
316
  # @param patchedmaven_maven_remote [PatchedmavenMavenRemote]
307
317
  # @param [Hash] opts the optional parameters
308
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
318
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
319
+ # @return [Array<(MavenMavenRemoteResponse, Integer, Hash)>] MavenMavenRemoteResponse data, response status code and response headers
309
320
  def partial_update_with_http_info(maven_maven_remote_href, patchedmaven_maven_remote, opts = {})
310
321
  if @api_client.config.debugging
311
322
  @api_client.config.logger.debug 'Calling API: RemotesMavenApi.partial_update ...'
@@ -333,6 +344,7 @@ module PulpMavenClient
333
344
  if !content_type.nil?
334
345
  header_params['Content-Type'] = content_type
335
346
  end
347
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
336
348
 
337
349
  # form parameters
338
350
  form_params = opts[:form_params] || {}
@@ -341,7 +353,7 @@ module PulpMavenClient
341
353
  post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedmaven_maven_remote)
342
354
 
343
355
  # return_type
344
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
356
+ return_type = opts[:debug_return_type] || 'MavenMavenRemoteResponse'
345
357
 
346
358
  # auth_names
347
359
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -367,6 +379,7 @@ module PulpMavenClient
367
379
  # A ViewSet for MavenRemote.
368
380
  # @param maven_maven_remote_href [String]
369
381
  # @param [Hash] opts the optional parameters
382
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
370
383
  # @option opts [Array<String>] :fields A list of fields to include in the response.
371
384
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
372
385
  # @return [MavenMavenRemoteResponse]
@@ -379,6 +392,7 @@ module PulpMavenClient
379
392
  # A ViewSet for MavenRemote.
380
393
  # @param maven_maven_remote_href [String]
381
394
  # @param [Hash] opts the optional parameters
395
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
382
396
  # @option opts [Array<String>] :fields A list of fields to include in the response.
383
397
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
384
398
  # @return [Array<(MavenMavenRemoteResponse, Integer, Hash)>] MavenMavenRemoteResponse data, response status code and response headers
@@ -402,6 +416,7 @@ module PulpMavenClient
402
416
  header_params = opts[:header_params] || {}
403
417
  # HTTP header 'Accept' (if needed)
404
418
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
419
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
405
420
 
406
421
  # form parameters
407
422
  form_params = opts[:form_params] || {}
@@ -437,6 +452,7 @@ module PulpMavenClient
437
452
  # @param maven_maven_remote_href [String]
438
453
  # @param set_label [SetLabel]
439
454
  # @param [Hash] opts the optional parameters
455
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
440
456
  # @return [SetLabelResponse]
441
457
  def set_label(maven_maven_remote_href, set_label, opts = {})
442
458
  data, _status_code, _headers = set_label_with_http_info(maven_maven_remote_href, set_label, opts)
@@ -448,6 +464,7 @@ module PulpMavenClient
448
464
  # @param maven_maven_remote_href [String]
449
465
  # @param set_label [SetLabel]
450
466
  # @param [Hash] opts the optional parameters
467
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
451
468
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
452
469
  def set_label_with_http_info(maven_maven_remote_href, set_label, opts = {})
453
470
  if @api_client.config.debugging
@@ -476,6 +493,7 @@ module PulpMavenClient
476
493
  if !content_type.nil?
477
494
  header_params['Content-Type'] = content_type
478
495
  end
496
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
479
497
 
480
498
  # form parameters
481
499
  form_params = opts[:form_params] || {}
@@ -511,6 +529,7 @@ module PulpMavenClient
511
529
  # @param maven_maven_remote_href [String]
512
530
  # @param unset_label [UnsetLabel]
513
531
  # @param [Hash] opts the optional parameters
532
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
514
533
  # @return [UnsetLabelResponse]
515
534
  def unset_label(maven_maven_remote_href, unset_label, opts = {})
516
535
  data, _status_code, _headers = unset_label_with_http_info(maven_maven_remote_href, unset_label, opts)
@@ -522,6 +541,7 @@ module PulpMavenClient
522
541
  # @param maven_maven_remote_href [String]
523
542
  # @param unset_label [UnsetLabel]
524
543
  # @param [Hash] opts the optional parameters
544
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
525
545
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
526
546
  def unset_label_with_http_info(maven_maven_remote_href, unset_label, opts = {})
527
547
  if @api_client.config.debugging
@@ -550,6 +570,7 @@ module PulpMavenClient
550
570
  if !content_type.nil?
551
571
  header_params['Content-Type'] = content_type
552
572
  end
573
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
553
574
 
554
575
  # form parameters
555
576
  form_params = opts[:form_params] || {}
@@ -581,22 +602,24 @@ module PulpMavenClient
581
602
  end
582
603
 
583
604
  # Update a maven remote
584
- # Trigger an asynchronous update task
605
+ # Update the entity and trigger an asynchronous task if necessary
585
606
  # @param maven_maven_remote_href [String]
586
607
  # @param maven_maven_remote [MavenMavenRemote]
587
608
  # @param [Hash] opts the optional parameters
588
- # @return [AsyncOperationResponse]
609
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
610
+ # @return [MavenMavenRemoteResponse]
589
611
  def update(maven_maven_remote_href, maven_maven_remote, opts = {})
590
612
  data, _status_code, _headers = update_with_http_info(maven_maven_remote_href, maven_maven_remote, opts)
591
613
  data
592
614
  end
593
615
 
594
616
  # Update a maven remote
595
- # Trigger an asynchronous update task
617
+ # Update the entity and trigger an asynchronous task if necessary
596
618
  # @param maven_maven_remote_href [String]
597
619
  # @param maven_maven_remote [MavenMavenRemote]
598
620
  # @param [Hash] opts the optional parameters
599
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
621
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
622
+ # @return [Array<(MavenMavenRemoteResponse, Integer, Hash)>] MavenMavenRemoteResponse data, response status code and response headers
600
623
  def update_with_http_info(maven_maven_remote_href, maven_maven_remote, opts = {})
601
624
  if @api_client.config.debugging
602
625
  @api_client.config.logger.debug 'Calling API: RemotesMavenApi.update ...'
@@ -624,6 +647,7 @@ module PulpMavenClient
624
647
  if !content_type.nil?
625
648
  header_params['Content-Type'] = content_type
626
649
  end
650
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
627
651
 
628
652
  # form parameters
629
653
  form_params = opts[:form_params] || {}
@@ -632,7 +656,7 @@ module PulpMavenClient
632
656
  post_body = opts[:debug_body] || @api_client.object_to_http_body(maven_maven_remote)
633
657
 
634
658
  # return_type
635
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
659
+ return_type = opts[:debug_return_type] || 'MavenMavenRemoteResponse'
636
660
 
637
661
  # auth_names
638
662
  auth_names = opts[:debug_auth_names] || ['basicAuth']