pulp_file_client 3.49.53 → 3.49.55

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.
@@ -13,7 +13,7 @@ Method | HTTP request | Description
13
13
 
14
14
  ## delete
15
15
 
16
- > AsyncOperationResponse delete(file_file_repository_version_href)
16
+ > AsyncOperationResponse delete(file_file_repository_version_href, opts)
17
17
 
18
18
  Delete a repository version
19
19
 
@@ -33,10 +33,13 @@ end
33
33
 
34
34
  api_instance = PulpFileClient::RepositoriesFileVersionsApi.new
35
35
  file_file_repository_version_href = 'file_file_repository_version_href_example' # String |
36
+ opts = {
37
+ x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
38
+ }
36
39
 
37
40
  begin
38
41
  #Delete a repository version
39
- result = api_instance.delete(file_file_repository_version_href)
42
+ result = api_instance.delete(file_file_repository_version_href, opts)
40
43
  p result
41
44
  rescue PulpFileClient::ApiError => e
42
45
  puts "Exception when calling RepositoriesFileVersionsApi->delete: #{e}"
@@ -49,6 +52,7 @@ end
49
52
  Name | Type | Description | Notes
50
53
  ------------- | ------------- | ------------- | -------------
51
54
  **file_file_repository_version_href** | **String**| |
55
+ **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md)| List of profilers to use on tasks. | [optional]
52
56
 
53
57
  ### Return type
54
58
 
@@ -87,6 +91,7 @@ end
87
91
  api_instance = PulpFileClient::RepositoriesFileVersionsApi.new
88
92
  file_file_repository_href = 'file_file_repository_href_example' # String |
89
93
  opts = {
94
+ x_task_diagnostics: ['x_task_diagnostics_example'], # Array<String> | List of profilers to use on tasks.
90
95
  content: 'content_example', # String | Content Unit referenced by HREF
91
96
  content__in: 'content__in_example', # String | Content Unit referenced by HREF
92
97
  limit: 56, # Integer | Number of results to return per page.
@@ -125,6 +130,7 @@ end
125
130
  Name | Type | Description | Notes
126
131
  ------------- | ------------- | ------------- | -------------
127
132
  **file_file_repository_href** | **String**| |
133
+ **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md)| List of profilers to use on tasks. | [optional]
128
134
  **content** | **String**| Content Unit referenced by HREF | [optional]
129
135
  **content__in** | **String**| Content Unit referenced by HREF | [optional]
130
136
  **limit** | **Integer**| Number of results to return per page. | [optional]
@@ -184,6 +190,7 @@ end
184
190
  api_instance = PulpFileClient::RepositoriesFileVersionsApi.new
185
191
  file_file_repository_version_href = 'file_file_repository_version_href_example' # String |
186
192
  opts = {
193
+ x_task_diagnostics: ['x_task_diagnostics_example'], # Array<String> | List of profilers to use on tasks.
187
194
  fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
188
195
  exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
189
196
  }
@@ -203,6 +210,7 @@ end
203
210
  Name | Type | Description | Notes
204
211
  ------------- | ------------- | ------------- | -------------
205
212
  **file_file_repository_version_href** | **String**| |
213
+ **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md)| List of profilers to use on tasks. | [optional]
206
214
  **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
207
215
  **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
208
216
 
@@ -222,7 +230,7 @@ Name | Type | Description | Notes
222
230
 
223
231
  ## repair
224
232
 
225
- > AsyncOperationResponse repair(file_file_repository_version_href, repair)
233
+ > AsyncOperationResponse repair(file_file_repository_version_href, repair, opts)
226
234
 
227
235
 
228
236
 
@@ -243,9 +251,12 @@ end
243
251
  api_instance = PulpFileClient::RepositoriesFileVersionsApi.new
244
252
  file_file_repository_version_href = 'file_file_repository_version_href_example' # String |
245
253
  repair = PulpFileClient::Repair.new # Repair |
254
+ opts = {
255
+ x_task_diagnostics: ['x_task_diagnostics_example'] # Array<String> | List of profilers to use on tasks.
256
+ }
246
257
 
247
258
  begin
248
- result = api_instance.repair(file_file_repository_version_href, repair)
259
+ result = api_instance.repair(file_file_repository_version_href, repair, opts)
249
260
  p result
250
261
  rescue PulpFileClient::ApiError => e
251
262
  puts "Exception when calling RepositoriesFileVersionsApi->repair: #{e}"
@@ -259,6 +270,7 @@ Name | Type | Description | Notes
259
270
  ------------- | ------------- | ------------- | -------------
260
271
  **file_file_repository_version_href** | **String**| |
261
272
  **repair** | [**Repair**](Repair.md)| |
273
+ **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md)| List of profilers to use on tasks. | [optional]
262
274
 
263
275
  ### Return type
264
276
 
@@ -24,6 +24,7 @@ module PulpFileClient
24
24
  # @param file_file_alternate_content_source_href [String]
25
25
  # @param nested_role [NestedRole]
26
26
  # @param [Hash] opts the optional parameters
27
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
27
28
  # @return [NestedRoleResponse]
28
29
  def add_role(file_file_alternate_content_source_href, nested_role, opts = {})
29
30
  data, _status_code, _headers = add_role_with_http_info(file_file_alternate_content_source_href, nested_role, opts)
@@ -35,6 +36,7 @@ module PulpFileClient
35
36
  # @param file_file_alternate_content_source_href [String]
36
37
  # @param nested_role [NestedRole]
37
38
  # @param [Hash] opts the optional parameters
39
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
38
40
  # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
39
41
  def add_role_with_http_info(file_file_alternate_content_source_href, nested_role, opts = {})
40
42
  if @api_client.config.debugging
@@ -60,6 +62,7 @@ module PulpFileClient
60
62
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
61
63
  # HTTP header 'Content-Type'
62
64
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
65
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
63
66
 
64
67
  # form parameters
65
68
  form_params = opts[:form_params] || {}
@@ -93,6 +96,7 @@ module PulpFileClient
93
96
  # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
94
97
  # @param file_file_alternate_content_source [FileFileAlternateContentSource]
95
98
  # @param [Hash] opts the optional parameters
99
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
96
100
  # @return [FileFileAlternateContentSourceResponse]
97
101
  def create(file_file_alternate_content_source, opts = {})
98
102
  data, _status_code, _headers = create_with_http_info(file_file_alternate_content_source, opts)
@@ -103,6 +107,7 @@ module PulpFileClient
103
107
  # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
104
108
  # @param file_file_alternate_content_source [FileFileAlternateContentSource]
105
109
  # @param [Hash] opts the optional parameters
110
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
106
111
  # @return [Array<(FileFileAlternateContentSourceResponse, Integer, Hash)>] FileFileAlternateContentSourceResponse data, response status code and response headers
107
112
  def create_with_http_info(file_file_alternate_content_source, opts = {})
108
113
  if @api_client.config.debugging
@@ -124,6 +129,7 @@ module PulpFileClient
124
129
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
125
130
  # HTTP header 'Content-Type'
126
131
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
132
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
127
133
 
128
134
  # form parameters
129
135
  form_params = opts[:form_params] || {}
@@ -157,6 +163,7 @@ module PulpFileClient
157
163
  # Trigger an asynchronous delete ACS task
158
164
  # @param file_file_alternate_content_source_href [String]
159
165
  # @param [Hash] opts the optional parameters
166
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
160
167
  # @return [AsyncOperationResponse]
161
168
  def delete(file_file_alternate_content_source_href, opts = {})
162
169
  data, _status_code, _headers = delete_with_http_info(file_file_alternate_content_source_href, opts)
@@ -167,6 +174,7 @@ module PulpFileClient
167
174
  # Trigger an asynchronous delete ACS task
168
175
  # @param file_file_alternate_content_source_href [String]
169
176
  # @param [Hash] opts the optional parameters
177
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
170
178
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
171
179
  def delete_with_http_info(file_file_alternate_content_source_href, opts = {})
172
180
  if @api_client.config.debugging
@@ -186,6 +194,7 @@ module PulpFileClient
186
194
  header_params = opts[:header_params] || {}
187
195
  # HTTP header 'Accept' (if needed)
188
196
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
197
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
189
198
 
190
199
  # form parameters
191
200
  form_params = opts[:form_params] || {}
@@ -218,6 +227,7 @@ module PulpFileClient
218
227
  # List file alternate content sources
219
228
  # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
220
229
  # @param [Hash] opts the optional parameters
230
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
221
231
  # @option opts [Integer] :limit Number of results to return per page.
222
232
  # @option opts [String] :name Filter results where name matches value
223
233
  # @option opts [String] :name__contains Filter results where name contains value
@@ -244,6 +254,7 @@ module PulpFileClient
244
254
  # List file alternate content sources
245
255
  # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
246
256
  # @param [Hash] opts the optional parameters
257
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
247
258
  # @option opts [Integer] :limit Number of results to return per page.
248
259
  # @option opts [String] :name Filter results where name matches value
249
260
  # @option opts [String] :name__contains Filter results where name contains value
@@ -297,6 +308,7 @@ module PulpFileClient
297
308
  header_params = opts[:header_params] || {}
298
309
  # HTTP header 'Accept' (if needed)
299
310
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
311
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
300
312
 
301
313
  # form parameters
302
314
  form_params = opts[:form_params] || {}
@@ -330,6 +342,7 @@ module PulpFileClient
330
342
  # List roles assigned to this object.
331
343
  # @param file_file_alternate_content_source_href [String]
332
344
  # @param [Hash] opts the optional parameters
345
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
333
346
  # @option opts [Array<String>] :fields A list of fields to include in the response.
334
347
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
335
348
  # @return [ObjectRolesResponse]
@@ -342,6 +355,7 @@ module PulpFileClient
342
355
  # List roles assigned to this object.
343
356
  # @param file_file_alternate_content_source_href [String]
344
357
  # @param [Hash] opts the optional parameters
358
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
345
359
  # @option opts [Array<String>] :fields A list of fields to include in the response.
346
360
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
347
361
  # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
@@ -365,6 +379,7 @@ module PulpFileClient
365
379
  header_params = opts[:header_params] || {}
366
380
  # HTTP header 'Accept' (if needed)
367
381
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
382
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
368
383
 
369
384
  # form parameters
370
385
  form_params = opts[:form_params] || {}
@@ -398,6 +413,7 @@ module PulpFileClient
398
413
  # List permissions available to the current user on this object.
399
414
  # @param file_file_alternate_content_source_href [String]
400
415
  # @param [Hash] opts the optional parameters
416
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
401
417
  # @option opts [Array<String>] :fields A list of fields to include in the response.
402
418
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
403
419
  # @return [MyPermissionsResponse]
@@ -410,6 +426,7 @@ module PulpFileClient
410
426
  # List permissions available to the current user on this object.
411
427
  # @param file_file_alternate_content_source_href [String]
412
428
  # @param [Hash] opts the optional parameters
429
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
413
430
  # @option opts [Array<String>] :fields A list of fields to include in the response.
414
431
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
415
432
  # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
@@ -433,6 +450,7 @@ module PulpFileClient
433
450
  header_params = opts[:header_params] || {}
434
451
  # HTTP header 'Accept' (if needed)
435
452
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
453
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
436
454
 
437
455
  # form parameters
438
456
  form_params = opts[:form_params] || {}
@@ -467,6 +485,7 @@ module PulpFileClient
467
485
  # @param file_file_alternate_content_source_href [String]
468
486
  # @param patchedfile_file_alternate_content_source [PatchedfileFileAlternateContentSource]
469
487
  # @param [Hash] opts the optional parameters
488
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
470
489
  # @return [AsyncOperationResponse]
471
490
  def partial_update(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source, opts = {})
472
491
  data, _status_code, _headers = partial_update_with_http_info(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source, opts)
@@ -478,6 +497,7 @@ module PulpFileClient
478
497
  # @param file_file_alternate_content_source_href [String]
479
498
  # @param patchedfile_file_alternate_content_source [PatchedfileFileAlternateContentSource]
480
499
  # @param [Hash] opts the optional parameters
500
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
481
501
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
482
502
  def partial_update_with_http_info(file_file_alternate_content_source_href, patchedfile_file_alternate_content_source, opts = {})
483
503
  if @api_client.config.debugging
@@ -503,6 +523,7 @@ module PulpFileClient
503
523
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
504
524
  # HTTP header 'Content-Type'
505
525
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
526
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
506
527
 
507
528
  # form parameters
508
529
  form_params = opts[:form_params] || {}
@@ -536,6 +557,7 @@ module PulpFileClient
536
557
  # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
537
558
  # @param file_file_alternate_content_source_href [String]
538
559
  # @param [Hash] opts the optional parameters
560
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
539
561
  # @option opts [Array<String>] :fields A list of fields to include in the response.
540
562
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
541
563
  # @return [FileFileAlternateContentSourceResponse]
@@ -548,6 +570,7 @@ module PulpFileClient
548
570
  # Alternate Content Source ViewSet for File ACS support is provided as a tech preview in pulp_file.
549
571
  # @param file_file_alternate_content_source_href [String]
550
572
  # @param [Hash] opts the optional parameters
573
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
551
574
  # @option opts [Array<String>] :fields A list of fields to include in the response.
552
575
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
553
576
  # @return [Array<(FileFileAlternateContentSourceResponse, Integer, Hash)>] FileFileAlternateContentSourceResponse data, response status code and response headers
@@ -571,6 +594,7 @@ module PulpFileClient
571
594
  header_params = opts[:header_params] || {}
572
595
  # HTTP header 'Accept' (if needed)
573
596
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
597
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
574
598
 
575
599
  # form parameters
576
600
  form_params = opts[:form_params] || {}
@@ -604,6 +628,7 @@ module PulpFileClient
604
628
  # Trigger an asynchronous task to create Alternate Content Source content.
605
629
  # @param file_file_alternate_content_source_href [String]
606
630
  # @param [Hash] opts the optional parameters
631
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
607
632
  # @return [TaskGroupOperationResponse]
608
633
  def refresh(file_file_alternate_content_source_href, opts = {})
609
634
  data, _status_code, _headers = refresh_with_http_info(file_file_alternate_content_source_href, opts)
@@ -614,6 +639,7 @@ module PulpFileClient
614
639
  # Trigger an asynchronous task to create Alternate Content Source content.
615
640
  # @param file_file_alternate_content_source_href [String]
616
641
  # @param [Hash] opts the optional parameters
642
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
617
643
  # @return [Array<(TaskGroupOperationResponse, Integer, Hash)>] TaskGroupOperationResponse data, response status code and response headers
618
644
  def refresh_with_http_info(file_file_alternate_content_source_href, opts = {})
619
645
  if @api_client.config.debugging
@@ -633,6 +659,7 @@ module PulpFileClient
633
659
  header_params = opts[:header_params] || {}
634
660
  # HTTP header 'Accept' (if needed)
635
661
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
662
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
636
663
 
637
664
  # form parameters
638
665
  form_params = opts[:form_params] || {}
@@ -667,6 +694,7 @@ module PulpFileClient
667
694
  # @param file_file_alternate_content_source_href [String]
668
695
  # @param nested_role [NestedRole]
669
696
  # @param [Hash] opts the optional parameters
697
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
670
698
  # @return [NestedRoleResponse]
671
699
  def remove_role(file_file_alternate_content_source_href, nested_role, opts = {})
672
700
  data, _status_code, _headers = remove_role_with_http_info(file_file_alternate_content_source_href, nested_role, opts)
@@ -678,6 +706,7 @@ module PulpFileClient
678
706
  # @param file_file_alternate_content_source_href [String]
679
707
  # @param nested_role [NestedRole]
680
708
  # @param [Hash] opts the optional parameters
709
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
681
710
  # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
682
711
  def remove_role_with_http_info(file_file_alternate_content_source_href, nested_role, opts = {})
683
712
  if @api_client.config.debugging
@@ -703,6 +732,7 @@ module PulpFileClient
703
732
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
704
733
  # HTTP header 'Content-Type'
705
734
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
735
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
706
736
 
707
737
  # form parameters
708
738
  form_params = opts[:form_params] || {}
@@ -737,6 +767,7 @@ module PulpFileClient
737
767
  # @param file_file_alternate_content_source_href [String]
738
768
  # @param file_file_alternate_content_source [FileFileAlternateContentSource]
739
769
  # @param [Hash] opts the optional parameters
770
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
740
771
  # @return [AsyncOperationResponse]
741
772
  def update(file_file_alternate_content_source_href, file_file_alternate_content_source, opts = {})
742
773
  data, _status_code, _headers = update_with_http_info(file_file_alternate_content_source_href, file_file_alternate_content_source, opts)
@@ -748,6 +779,7 @@ module PulpFileClient
748
779
  # @param file_file_alternate_content_source_href [String]
749
780
  # @param file_file_alternate_content_source [FileFileAlternateContentSource]
750
781
  # @param [Hash] opts the optional parameters
782
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
751
783
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
752
784
  def update_with_http_info(file_file_alternate_content_source_href, file_file_alternate_content_source, opts = {})
753
785
  if @api_client.config.debugging
@@ -773,6 +805,7 @@ module PulpFileClient
773
805
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
774
806
  # HTTP header 'Content-Type'
775
807
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
808
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
776
809
 
777
810
  # form parameters
778
811
  form_params = opts[:form_params] || {}
@@ -23,6 +23,7 @@ module PulpFileClient
23
23
  # Trigger an asynchronous task to create content,optionally create new repository version.
24
24
  # @param relative_path [String] Path where the artifact is located relative to distributions base_path
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 [String] :repository A URI of a repository the new content unit should be associated with.
27
28
  # @option opts [String] :artifact Artifact file representing the physical content
28
29
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -37,6 +38,7 @@ module PulpFileClient
37
38
  # Trigger an asynchronous task to create content,optionally create new repository version.
38
39
  # @param relative_path [String] Path where the artifact is located relative to distributions base_path
39
40
  # @param [Hash] opts the optional parameters
41
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
42
  # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
41
43
  # @option opts [String] :artifact Artifact file representing the physical content
42
44
  # @option opts [File] :file An uploaded file that may be turned into the content unit.
@@ -66,6 +68,7 @@ module PulpFileClient
66
68
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
67
69
  # HTTP header 'Content-Type'
68
70
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
71
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
69
72
 
70
73
  # form parameters
71
74
  form_params = opts[:form_params] || {}
@@ -103,6 +106,7 @@ module PulpFileClient
103
106
  # List file contents
104
107
  # FileContent represents a single file and its metadata, which can be added and removed from repositories.
105
108
  # @param [Hash] opts the optional parameters
109
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
106
110
  # @option opts [Integer] :limit Number of results to return per page.
107
111
  # @option opts [Integer] :offset The initial index from which to return the results.
108
112
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -126,6 +130,7 @@ module PulpFileClient
126
130
  # List file contents
127
131
  # FileContent represents a single file and its metadata, which can be added and removed from repositories.
128
132
  # @param [Hash] opts the optional parameters
133
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
129
134
  # @option opts [Integer] :limit Number of results to return per page.
130
135
  # @option opts [Integer] :offset The initial index from which to return the results.
131
136
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;relative_path&#x60; - Relative path * &#x60;-relative_path&#x60; - Relative path (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
@@ -173,6 +178,7 @@ module PulpFileClient
173
178
  header_params = opts[:header_params] || {}
174
179
  # HTTP header 'Accept' (if needed)
175
180
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
181
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
176
182
 
177
183
  # form parameters
178
184
  form_params = opts[:form_params] || {}
@@ -206,6 +212,7 @@ module PulpFileClient
206
212
  # FileContent represents a single file and its metadata, which can be added and removed from repositories.
207
213
  # @param file_file_content_href [String]
208
214
  # @param [Hash] opts the optional parameters
215
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
209
216
  # @option opts [Array<String>] :fields A list of fields to include in the response.
210
217
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
211
218
  # @return [FileFileContentResponse]
@@ -218,6 +225,7 @@ module PulpFileClient
218
225
  # FileContent represents a single file and its metadata, which can be added and removed from repositories.
219
226
  # @param file_file_content_href [String]
220
227
  # @param [Hash] opts the optional parameters
228
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
221
229
  # @option opts [Array<String>] :fields A list of fields to include in the response.
222
230
  # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
223
231
  # @return [Array<(FileFileContentResponse, Integer, Hash)>] FileFileContentResponse data, response status code and response headers
@@ -241,6 +249,7 @@ module PulpFileClient
241
249
  header_params = opts[:header_params] || {}
242
250
  # HTTP header 'Accept' (if needed)
243
251
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
252
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
244
253
 
245
254
  # form parameters
246
255
  form_params = opts[:form_params] || {}