pulp_npm_client 0.3.3 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/ContentPackagesApi.md +22 -8
  4. data/docs/DistributionsNpmApi.md +58 -30
  5. data/docs/NpmNpmRemoteResponse.md +1 -1
  6. data/docs/NpmPackageResponse.md +2 -0
  7. data/docs/RemotesNpmApi.md +58 -30
  8. data/docs/RepositoriesNpmApi.md +74 -38
  9. data/docs/RepositoriesNpmVersionsApi.md +22 -10
  10. data/docs/RepositoryVersionResponse.md +3 -1
  11. data/lib/pulp_npm_client/api/content_packages_api.rb +15 -0
  12. data/lib/pulp_npm_client/api/distributions_npm_api.rb +34 -10
  13. data/lib/pulp_npm_client/api/remotes_npm_api.rb +34 -10
  14. data/lib/pulp_npm_client/api/repositories_npm_api.rb +40 -10
  15. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +15 -3
  16. data/lib/pulp_npm_client/models/npm_npm_remote.rb +0 -15
  17. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +0 -15
  18. data/lib/pulp_npm_client/models/npm_npm_repository.rb +0 -15
  19. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +0 -15
  20. data/lib/pulp_npm_client/models/npm_package_response.rb +10 -1
  21. data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +0 -2
  22. data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +0 -2
  23. data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +0 -2
  24. data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +0 -2
  25. data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +0 -2
  26. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +0 -15
  27. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +0 -15
  28. data/lib/pulp_npm_client/models/repository_version_response.rb +13 -4
  29. data/lib/pulp_npm_client/version.rb +1 -1
  30. data/pulp_npm_client.gemspec +0 -1
  31. data/spec/api/content_packages_api_spec.rb +5 -0
  32. data/spec/api/distributions_npm_api_spec.rb +12 -4
  33. data/spec/api/remotes_npm_api_spec.rb +12 -4
  34. data/spec/api/repositories_npm_api_spec.rb +14 -4
  35. data/spec/api/repositories_npm_versions_api_spec.rb +5 -1
  36. data/spec/models/npm_package_response_spec.rb +6 -0
  37. data/spec/models/repository_version_response_spec.rb +6 -0
  38. metadata +24 -44
@@ -25,6 +25,7 @@ module PulpNpmClient
25
25
  # @param name [String]
26
26
  # @param version [String]
27
27
  # @param [Hash] opts the optional parameters
28
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
28
29
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
29
30
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
30
31
  # @option opts [String] :artifact Artifact file representing the physical content
@@ -43,6 +44,7 @@ module PulpNpmClient
43
44
  # @param name [String]
44
45
  # @param version [String]
45
46
  # @param [Hash] opts the optional parameters
47
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
46
48
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
47
49
  # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
48
50
  # @option opts [String] :artifact Artifact file representing the physical content
@@ -97,6 +99,7 @@ module PulpNpmClient
97
99
  if !content_type.nil?
98
100
  header_params['Content-Type'] = content_type
99
101
  end
102
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
100
103
 
101
104
  # form parameters
102
105
  form_params = opts[:form_params] || {}
@@ -139,6 +142,7 @@ module PulpNpmClient
139
142
  # List packages
140
143
  # 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/npm/units/ Also specify queryset and serializer for Package.
141
144
  # @param [Hash] opts the optional parameters
145
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
142
146
  # @option opts [Integer] :limit Number of results to return per page.
143
147
  # @option opts [String] :name Filter results where name matches value
144
148
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -164,6 +168,7 @@ module PulpNpmClient
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/npm/units/ 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 [Integer] :limit Number of results to return per page.
168
173
  # @option opts [String] :name Filter results where name matches value
169
174
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
@@ -215,6 +220,7 @@ module PulpNpmClient
215
220
  header_params = opts[:header_params] || {}
216
221
  # HTTP header 'Accept' (if needed)
217
222
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
223
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
218
224
 
219
225
  # form parameters
220
226
  form_params = opts[:form_params] || {}
@@ -249,6 +255,7 @@ module PulpNpmClient
249
255
  # 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/npm/units/ Also specify queryset and serializer for Package.
250
256
  # @param npm_package_href [String]
251
257
  # @param [Hash] opts the optional parameters
258
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
252
259
  # @option opts [Array<String>] :fields A list of fields to include in the response.
253
260
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
254
261
  # @return [NpmPackageResponse]
@@ -261,6 +268,7 @@ module PulpNpmClient
261
268
  # 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/npm/units/ Also specify queryset and serializer for Package.
262
269
  # @param npm_package_href [String]
263
270
  # @param [Hash] opts the optional parameters
271
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
264
272
  # @option opts [Array<String>] :fields A list of fields to include in the response.
265
273
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
266
274
  # @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
@@ -284,6 +292,7 @@ module PulpNpmClient
284
292
  header_params = opts[:header_params] || {}
285
293
  # HTTP header 'Accept' (if needed)
286
294
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
295
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
287
296
 
288
297
  # form parameters
289
298
  form_params = opts[:form_params] || {}
@@ -319,6 +328,7 @@ module PulpNpmClient
319
328
  # @param npm_package_href [String]
320
329
  # @param set_label [SetLabel]
321
330
  # @param [Hash] opts the optional parameters
331
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
322
332
  # @return [SetLabelResponse]
323
333
  def set_label(npm_package_href, set_label, opts = {})
324
334
  data, _status_code, _headers = set_label_with_http_info(npm_package_href, set_label, opts)
@@ -330,6 +340,7 @@ module PulpNpmClient
330
340
  # @param npm_package_href [String]
331
341
  # @param set_label [SetLabel]
332
342
  # @param [Hash] opts the optional parameters
343
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
333
344
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
334
345
  def set_label_with_http_info(npm_package_href, set_label, opts = {})
335
346
  if @api_client.config.debugging
@@ -358,6 +369,7 @@ module PulpNpmClient
358
369
  if !content_type.nil?
359
370
  header_params['Content-Type'] = content_type
360
371
  end
372
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
361
373
 
362
374
  # form parameters
363
375
  form_params = opts[:form_params] || {}
@@ -393,6 +405,7 @@ module PulpNpmClient
393
405
  # @param npm_package_href [String]
394
406
  # @param unset_label [UnsetLabel]
395
407
  # @param [Hash] opts the optional parameters
408
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
396
409
  # @return [UnsetLabelResponse]
397
410
  def unset_label(npm_package_href, unset_label, opts = {})
398
411
  data, _status_code, _headers = unset_label_with_http_info(npm_package_href, unset_label, opts)
@@ -404,6 +417,7 @@ module PulpNpmClient
404
417
  # @param npm_package_href [String]
405
418
  # @param unset_label [UnsetLabel]
406
419
  # @param [Hash] opts the optional parameters
420
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
407
421
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
408
422
  def unset_label_with_http_info(npm_package_href, unset_label, opts = {})
409
423
  if @api_client.config.debugging
@@ -432,6 +446,7 @@ module PulpNpmClient
432
446
  if !content_type.nil?
433
447
  header_params['Content-Type'] = content_type
434
448
  end
449
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
435
450
 
436
451
  # form parameters
437
452
  form_params = opts[:form_params] || {}
@@ -23,6 +23,7 @@ module PulpNpmClient
23
23
  # Trigger an asynchronous create task
24
24
  # @param npm_npm_distribution [NpmNpmDistribution]
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(npm_npm_distribution, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(npm_npm_distribution, opts)
@@ -33,6 +34,7 @@ module PulpNpmClient
33
34
  # Trigger an asynchronous create task
34
35
  # @param npm_npm_distribution [NpmNpmDistribution]
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(npm_npm_distribution, opts = {})
38
40
  if @api_client.config.debugging
@@ -57,6 +59,7 @@ module PulpNpmClient
57
59
  if !content_type.nil?
58
60
  header_params['Content-Type'] = content_type
59
61
  end
62
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
60
63
 
61
64
  # form parameters
62
65
  form_params = opts[:form_params] || {}
@@ -91,6 +94,7 @@ module PulpNpmClient
91
94
  # Trigger an asynchronous delete task
92
95
  # @param npm_npm_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(npm_npm_distribution_href, opts = {})
96
100
  data, _status_code, _headers = delete_with_http_info(npm_npm_distribution_href, opts)
@@ -101,6 +105,7 @@ module PulpNpmClient
101
105
  # Trigger an asynchronous delete task
102
106
  # @param npm_npm_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(npm_npm_distribution_href, opts = {})
106
111
  if @api_client.config.debugging
@@ -120,6 +125,7 @@ module PulpNpmClient
120
125
  header_params = opts[:header_params] || {}
121
126
  # HTTP header 'Accept' (if needed)
122
127
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
128
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
123
129
 
124
130
  # form parameters
125
131
  form_params = opts[:form_params] || {}
@@ -153,6 +159,7 @@ module PulpNpmClient
153
159
  # List npm distributions
154
160
  # ViewSet for NPM 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 PulpNpmClient
189
196
  # List npm distributions
190
197
  # ViewSet for NPM 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 PulpNpmClient
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 PulpNpmClient
293
302
  end
294
303
 
295
304
  # Update a npm distribution
296
- # Trigger an asynchronous partial update task
305
+ # Update the entity partially and trigger an asynchronous task if necessary
297
306
  # @param npm_npm_distribution_href [String]
298
307
  # @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
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 [NpmNpmDistributionResponse]
301
311
  def partial_update(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
302
312
  data, _status_code, _headers = partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
303
313
  data
304
314
  end
305
315
 
306
316
  # Update a npm distribution
307
- # Trigger an asynchronous partial update task
317
+ # Update the entity partially and trigger an asynchronous task if necessary
308
318
  # @param npm_npm_distribution_href [String]
309
319
  # @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
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<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
312
323
  def partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
313
324
  if @api_client.config.debugging
314
325
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.partial_update ...'
@@ -336,6 +347,7 @@ module PulpNpmClient
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 PulpNpmClient
344
356
  post_body = opts[:debug_body] || @api_client.object_to_http_body(patchednpm_npm_distribution)
345
357
 
346
358
  # return_type
347
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
359
+ return_type = opts[:debug_return_type] || 'NpmNpmDistributionResponse'
348
360
 
349
361
  # auth_names
350
362
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -370,6 +382,7 @@ module PulpNpmClient
370
382
  # ViewSet for NPM Distributions.
371
383
  # @param npm_npm_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 [NpmNpmDistributionResponse]
@@ -382,6 +395,7 @@ module PulpNpmClient
382
395
  # ViewSet for NPM Distributions.
383
396
  # @param npm_npm_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<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
@@ -405,6 +419,7 @@ module PulpNpmClient
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 PulpNpmClient
440
455
  # @param npm_npm_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(npm_npm_distribution_href, set_label, opts = {})
445
461
  data, _status_code, _headers = set_label_with_http_info(npm_npm_distribution_href, set_label, opts)
@@ -451,6 +467,7 @@ module PulpNpmClient
451
467
  # @param npm_npm_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(npm_npm_distribution_href, set_label, opts = {})
456
473
  if @api_client.config.debugging
@@ -479,6 +496,7 @@ module PulpNpmClient
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 PulpNpmClient
514
532
  # @param npm_npm_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(npm_npm_distribution_href, unset_label, opts = {})
519
538
  data, _status_code, _headers = unset_label_with_http_info(npm_npm_distribution_href, unset_label, opts)
@@ -525,6 +544,7 @@ module PulpNpmClient
525
544
  # @param npm_npm_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(npm_npm_distribution_href, unset_label, opts = {})
530
550
  if @api_client.config.debugging
@@ -553,6 +573,7 @@ module PulpNpmClient
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 PulpNpmClient
584
605
  end
585
606
 
586
607
  # Update a npm distribution
587
- # Trigger an asynchronous update task
608
+ # Update the entity and trigger an asynchronous task if necessary
588
609
  # @param npm_npm_distribution_href [String]
589
610
  # @param npm_npm_distribution [NpmNpmDistribution]
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 [NpmNpmDistributionResponse]
592
614
  def update(npm_npm_distribution_href, npm_npm_distribution, opts = {})
593
615
  data, _status_code, _headers = update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts)
594
616
  data
595
617
  end
596
618
 
597
619
  # Update a npm distribution
598
- # Trigger an asynchronous update task
620
+ # Update the entity and trigger an asynchronous task if necessary
599
621
  # @param npm_npm_distribution_href [String]
600
622
  # @param npm_npm_distribution [NpmNpmDistribution]
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<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
603
626
  def update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts = {})
604
627
  if @api_client.config.debugging
605
628
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.update ...'
@@ -627,6 +650,7 @@ module PulpNpmClient
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 PulpNpmClient
635
659
  post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_distribution)
636
660
 
637
661
  # return_type
638
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
662
+ return_type = opts[:debug_return_type] || 'NpmNpmDistributionResponse'
639
663
 
640
664
  # auth_names
641
665
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -23,6 +23,7 @@ module PulpNpmClient
23
23
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
24
24
  # @param npm_npm_remote [NpmNpmRemote]
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 [NpmNpmRemoteResponse]
27
28
  def create(npm_npm_remote, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(npm_npm_remote, opts)
@@ -33,6 +34,7 @@ module PulpNpmClient
33
34
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
34
35
  # @param npm_npm_remote [NpmNpmRemote]
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<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
37
39
  def create_with_http_info(npm_npm_remote, opts = {})
38
40
  if @api_client.config.debugging
@@ -57,6 +59,7 @@ module PulpNpmClient
57
59
  if !content_type.nil?
58
60
  header_params['Content-Type'] = content_type
59
61
  end
62
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
60
63
 
61
64
  # form parameters
62
65
  form_params = opts[:form_params] || {}
@@ -91,6 +94,7 @@ module PulpNpmClient
91
94
  # Trigger an asynchronous delete task
92
95
  # @param npm_npm_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(npm_npm_remote_href, opts = {})
96
100
  data, _status_code, _headers = delete_with_http_info(npm_npm_remote_href, opts)
@@ -101,6 +105,7 @@ module PulpNpmClient
101
105
  # Trigger an asynchronous delete task
102
106
  # @param npm_npm_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(npm_npm_remote_href, opts = {})
106
111
  if @api_client.config.debugging
@@ -120,6 +125,7 @@ module PulpNpmClient
120
125
  header_params = opts[:header_params] || {}
121
126
  # HTTP header 'Accept' (if needed)
122
127
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
128
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
123
129
 
124
130
  # form parameters
125
131
  form_params = opts[:form_params] || {}
@@ -153,6 +159,7 @@ module PulpNpmClient
153
159
  # List npm remotes
154
160
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
155
161
  # @param [Hash] opts the optional parameters
162
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
156
163
  # @option opts [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 PulpNpmClient
188
195
  # List npm remotes
189
196
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
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 PulpNpmClient
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 PulpNpmClient
290
299
  end
291
300
 
292
301
  # Update a npm remote
293
- # Trigger an asynchronous partial update task
302
+ # Update the entity partially and trigger an asynchronous task if necessary
294
303
  # @param npm_npm_remote_href [String]
295
304
  # @param patchednpm_npm_remote [PatchednpmNpmRemote]
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 [NpmNpmRemoteResponse]
298
308
  def partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
299
309
  data, _status_code, _headers = partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts)
300
310
  data
301
311
  end
302
312
 
303
313
  # Update a npm remote
304
- # Trigger an asynchronous partial update task
314
+ # Update the entity partially and trigger an asynchronous task if necessary
305
315
  # @param npm_npm_remote_href [String]
306
316
  # @param patchednpm_npm_remote [PatchednpmNpmRemote]
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<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
309
320
  def partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
310
321
  if @api_client.config.debugging
311
322
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.partial_update ...'
@@ -333,6 +344,7 @@ module PulpNpmClient
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 PulpNpmClient
341
353
  post_body = opts[:debug_body] || @api_client.object_to_http_body(patchednpm_npm_remote)
342
354
 
343
355
  # return_type
344
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
356
+ return_type = opts[:debug_return_type] || 'NpmNpmRemoteResponse'
345
357
 
346
358
  # auth_names
347
359
  auth_names = opts[:debug_auth_names] || ['basicAuth']
@@ -367,6 +379,7 @@ module PulpNpmClient
367
379
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
368
380
  # @param npm_npm_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 [NpmNpmRemoteResponse]
@@ -379,6 +392,7 @@ module PulpNpmClient
379
392
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
380
393
  # @param npm_npm_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<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
@@ -402,6 +416,7 @@ module PulpNpmClient
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 PulpNpmClient
437
452
  # @param npm_npm_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(npm_npm_remote_href, set_label, opts = {})
442
458
  data, _status_code, _headers = set_label_with_http_info(npm_npm_remote_href, set_label, opts)
@@ -448,6 +464,7 @@ module PulpNpmClient
448
464
  # @param npm_npm_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(npm_npm_remote_href, set_label, opts = {})
453
470
  if @api_client.config.debugging
@@ -476,6 +493,7 @@ module PulpNpmClient
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 PulpNpmClient
511
529
  # @param npm_npm_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(npm_npm_remote_href, unset_label, opts = {})
516
535
  data, _status_code, _headers = unset_label_with_http_info(npm_npm_remote_href, unset_label, opts)
@@ -522,6 +541,7 @@ module PulpNpmClient
522
541
  # @param npm_npm_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(npm_npm_remote_href, unset_label, opts = {})
527
547
  if @api_client.config.debugging
@@ -550,6 +570,7 @@ module PulpNpmClient
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 PulpNpmClient
581
602
  end
582
603
 
583
604
  # Update a npm remote
584
- # Trigger an asynchronous update task
605
+ # Update the entity and trigger an asynchronous task if necessary
585
606
  # @param npm_npm_remote_href [String]
586
607
  # @param npm_npm_remote [NpmNpmRemote]
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 [NpmNpmRemoteResponse]
589
611
  def update(npm_npm_remote_href, npm_npm_remote, opts = {})
590
612
  data, _status_code, _headers = update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts)
591
613
  data
592
614
  end
593
615
 
594
616
  # Update a npm remote
595
- # Trigger an asynchronous update task
617
+ # Update the entity and trigger an asynchronous task if necessary
596
618
  # @param npm_npm_remote_href [String]
597
619
  # @param npm_npm_remote [NpmNpmRemote]
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<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
600
623
  def update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts = {})
601
624
  if @api_client.config.debugging
602
625
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.update ...'
@@ -624,6 +647,7 @@ module PulpNpmClient
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 PulpNpmClient
632
656
  post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_remote)
633
657
 
634
658
  # return_type
635
- return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
659
+ return_type = opts[:debug_return_type] || 'NpmNpmRemoteResponse'
636
660
 
637
661
  # auth_names
638
662
  auth_names = opts[:debug_auth_names] || ['basicAuth']