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
@@ -17,7 +17,7 @@ All URIs are relative to *http://localhost:24817*
17
17
 
18
18
  ## add_cached_content
19
19
 
20
- > <AsyncOperationResponse> add_cached_content(maven_maven_repository_href, repository_add_cached_content)
20
+ > <AsyncOperationResponse> add_cached_content(maven_maven_repository_href, repository_add_cached_content, opts)
21
21
 
22
22
  Add cached content
23
23
 
@@ -38,10 +38,13 @@ end
38
38
  api_instance = PulpMavenClient::RepositoriesMavenApi.new
39
39
  maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
40
40
  repository_add_cached_content = PulpMavenClient::RepositoryAddCachedContent.new # RepositoryAddCachedContent |
41
+ opts = {
42
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
43
+ }
41
44
 
42
45
  begin
43
46
  # Add cached content
44
- result = api_instance.add_cached_content(maven_maven_repository_href, repository_add_cached_content)
47
+ result = api_instance.add_cached_content(maven_maven_repository_href, repository_add_cached_content, opts)
45
48
  p result
46
49
  rescue PulpMavenClient::ApiError => e
47
50
  puts "Error when calling RepositoriesMavenApi->add_cached_content: #{e}"
@@ -52,12 +55,12 @@ end
52
55
 
53
56
  This returns an Array which contains the response data, status code and headers.
54
57
 
55
- > <Array(<AsyncOperationResponse>, Integer, Hash)> add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content)
58
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content, opts)
56
59
 
57
60
  ```ruby
58
61
  begin
59
62
  # Add cached content
60
- data, status_code, headers = api_instance.add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content)
63
+ data, status_code, headers = api_instance.add_cached_content_with_http_info(maven_maven_repository_href, repository_add_cached_content, opts)
61
64
  p status_code # => 2xx
62
65
  p headers # => { ... }
63
66
  p data # => <AsyncOperationResponse>
@@ -72,6 +75,7 @@ end
72
75
  | ---- | ---- | ----------- | ----- |
73
76
  | **maven_maven_repository_href** | **String** | | |
74
77
  | **repository_add_cached_content** | [**RepositoryAddCachedContent**](RepositoryAddCachedContent.md) | | |
78
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
75
79
 
76
80
  ### Return type
77
81
 
@@ -89,7 +93,7 @@ end
89
93
 
90
94
  ## create
91
95
 
92
- > <MavenMavenRepositoryResponse> create(maven_maven_repository)
96
+ > <MavenMavenRepositoryResponse> create(maven_maven_repository, opts)
93
97
 
94
98
  Create a maven repository
95
99
 
@@ -109,10 +113,13 @@ end
109
113
 
110
114
  api_instance = PulpMavenClient::RepositoriesMavenApi.new
111
115
  maven_maven_repository = PulpMavenClient::MavenMavenRepository.new({name: 'name_example'}) # MavenMavenRepository |
116
+ opts = {
117
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
118
+ }
112
119
 
113
120
  begin
114
121
  # Create a maven repository
115
- result = api_instance.create(maven_maven_repository)
122
+ result = api_instance.create(maven_maven_repository, opts)
116
123
  p result
117
124
  rescue PulpMavenClient::ApiError => e
118
125
  puts "Error when calling RepositoriesMavenApi->create: #{e}"
@@ -123,12 +130,12 @@ end
123
130
 
124
131
  This returns an Array which contains the response data, status code and headers.
125
132
 
126
- > <Array(<MavenMavenRepositoryResponse>, Integer, Hash)> create_with_http_info(maven_maven_repository)
133
+ > <Array(<MavenMavenRepositoryResponse>, Integer, Hash)> create_with_http_info(maven_maven_repository, opts)
127
134
 
128
135
  ```ruby
129
136
  begin
130
137
  # Create a maven repository
131
- data, status_code, headers = api_instance.create_with_http_info(maven_maven_repository)
138
+ data, status_code, headers = api_instance.create_with_http_info(maven_maven_repository, opts)
132
139
  p status_code # => 2xx
133
140
  p headers # => { ... }
134
141
  p data # => <MavenMavenRepositoryResponse>
@@ -142,6 +149,7 @@ end
142
149
  | Name | Type | Description | Notes |
143
150
  | ---- | ---- | ----------- | ----- |
144
151
  | **maven_maven_repository** | [**MavenMavenRepository**](MavenMavenRepository.md) | | |
152
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
145
153
 
146
154
  ### Return type
147
155
 
@@ -159,7 +167,7 @@ end
159
167
 
160
168
  ## delete
161
169
 
162
- > <AsyncOperationResponse> delete(maven_maven_repository_href)
170
+ > <AsyncOperationResponse> delete(maven_maven_repository_href, opts)
163
171
 
164
172
  Delete a maven repository
165
173
 
@@ -179,10 +187,13 @@ end
179
187
 
180
188
  api_instance = PulpMavenClient::RepositoriesMavenApi.new
181
189
  maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
190
+ opts = {
191
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
192
+ }
182
193
 
183
194
  begin
184
195
  # Delete a maven repository
185
- result = api_instance.delete(maven_maven_repository_href)
196
+ result = api_instance.delete(maven_maven_repository_href, opts)
186
197
  p result
187
198
  rescue PulpMavenClient::ApiError => e
188
199
  puts "Error when calling RepositoriesMavenApi->delete: #{e}"
@@ -193,12 +204,12 @@ end
193
204
 
194
205
  This returns an Array which contains the response data, status code and headers.
195
206
 
196
- > <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(maven_maven_repository_href)
207
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(maven_maven_repository_href, opts)
197
208
 
198
209
  ```ruby
199
210
  begin
200
211
  # Delete a maven repository
201
- data, status_code, headers = api_instance.delete_with_http_info(maven_maven_repository_href)
212
+ data, status_code, headers = api_instance.delete_with_http_info(maven_maven_repository_href, opts)
202
213
  p status_code # => 2xx
203
214
  p headers # => { ... }
204
215
  p data # => <AsyncOperationResponse>
@@ -212,6 +223,7 @@ end
212
223
  | Name | Type | Description | Notes |
213
224
  | ---- | ---- | ----------- | ----- |
214
225
  | **maven_maven_repository_href** | **String** | | |
226
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
215
227
 
216
228
  ### Return type
217
229
 
@@ -249,6 +261,7 @@ end
249
261
 
250
262
  api_instance = PulpMavenClient::RepositoriesMavenApi.new
251
263
  opts = {
264
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
252
265
  latest_with_content: 'latest_with_content_example', # String | Content Unit referenced by HREF/PRN
253
266
  limit: 56, # Integer | Number of results to return per page.
254
267
  name: 'name_example', # String | Filter results where name matches value
@@ -312,6 +325,7 @@ end
312
325
 
313
326
  | Name | Type | Description | Notes |
314
327
  | ---- | ---- | ----------- | ----- |
328
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
315
329
  | **latest_with_content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
316
330
  | **limit** | **Integer** | Number of results to return per page. | [optional] |
317
331
  | **name** | **String** | Filter results where name matches value | [optional] |
@@ -359,11 +373,11 @@ end
359
373
 
360
374
  ## partial_update
361
375
 
362
- > <AsyncOperationResponse> partial_update(maven_maven_repository_href, patchedmaven_maven_repository)
376
+ > <MavenMavenRepositoryResponse> partial_update(maven_maven_repository_href, patchedmaven_maven_repository, opts)
363
377
 
364
378
  Update a maven repository
365
379
 
366
- Trigger an asynchronous partial update task
380
+ Update the entity partially and trigger an asynchronous task if necessary
367
381
 
368
382
  ### Examples
369
383
 
@@ -380,10 +394,13 @@ end
380
394
  api_instance = PulpMavenClient::RepositoriesMavenApi.new
381
395
  maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
382
396
  patchedmaven_maven_repository = PulpMavenClient::PatchedmavenMavenRepository.new # PatchedmavenMavenRepository |
397
+ opts = {
398
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
399
+ }
383
400
 
384
401
  begin
385
402
  # Update a maven repository
386
- result = api_instance.partial_update(maven_maven_repository_href, patchedmaven_maven_repository)
403
+ result = api_instance.partial_update(maven_maven_repository_href, patchedmaven_maven_repository, opts)
387
404
  p result
388
405
  rescue PulpMavenClient::ApiError => e
389
406
  puts "Error when calling RepositoriesMavenApi->partial_update: #{e}"
@@ -394,15 +411,15 @@ end
394
411
 
395
412
  This returns an Array which contains the response data, status code and headers.
396
413
 
397
- > <Array(<AsyncOperationResponse>, Integer, Hash)> partial_update_with_http_info(maven_maven_repository_href, patchedmaven_maven_repository)
414
+ > <Array(<MavenMavenRepositoryResponse>, Integer, Hash)> partial_update_with_http_info(maven_maven_repository_href, patchedmaven_maven_repository, opts)
398
415
 
399
416
  ```ruby
400
417
  begin
401
418
  # Update a maven repository
402
- data, status_code, headers = api_instance.partial_update_with_http_info(maven_maven_repository_href, patchedmaven_maven_repository)
419
+ data, status_code, headers = api_instance.partial_update_with_http_info(maven_maven_repository_href, patchedmaven_maven_repository, opts)
403
420
  p status_code # => 2xx
404
421
  p headers # => { ... }
405
- p data # => <AsyncOperationResponse>
422
+ p data # => <MavenMavenRepositoryResponse>
406
423
  rescue PulpMavenClient::ApiError => e
407
424
  puts "Error when calling RepositoriesMavenApi->partial_update_with_http_info: #{e}"
408
425
  end
@@ -414,10 +431,11 @@ end
414
431
  | ---- | ---- | ----------- | ----- |
415
432
  | **maven_maven_repository_href** | **String** | | |
416
433
  | **patchedmaven_maven_repository** | [**PatchedmavenMavenRepository**](PatchedmavenMavenRepository.md) | | |
434
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
417
435
 
418
436
  ### Return type
419
437
 
420
- [**AsyncOperationResponse**](AsyncOperationResponse.md)
438
+ [**MavenMavenRepositoryResponse**](MavenMavenRepositoryResponse.md)
421
439
 
422
440
  ### Authorization
423
441
 
@@ -452,6 +470,7 @@ end
452
470
  api_instance = PulpMavenClient::RepositoriesMavenApi.new
453
471
  maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
454
472
  opts = {
473
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
455
474
  fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
456
475
  exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
457
476
  }
@@ -488,6 +507,7 @@ end
488
507
  | Name | Type | Description | Notes |
489
508
  | ---- | ---- | ----------- | ----- |
490
509
  | **maven_maven_repository_href** | **String** | | |
510
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
491
511
  | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
492
512
  | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
493
513
 
@@ -507,7 +527,7 @@ end
507
527
 
508
528
  ## set_label
509
529
 
510
- > <SetLabelResponse> set_label(maven_maven_repository_href, set_label)
530
+ > <SetLabelResponse> set_label(maven_maven_repository_href, set_label, opts)
511
531
 
512
532
  Set a label
513
533
 
@@ -528,10 +548,13 @@ end
528
548
  api_instance = PulpMavenClient::RepositoriesMavenApi.new
529
549
  maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
530
550
  set_label = PulpMavenClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
551
+ opts = {
552
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
553
+ }
531
554
 
532
555
  begin
533
556
  # Set a label
534
- result = api_instance.set_label(maven_maven_repository_href, set_label)
557
+ result = api_instance.set_label(maven_maven_repository_href, set_label, opts)
535
558
  p result
536
559
  rescue PulpMavenClient::ApiError => e
537
560
  puts "Error when calling RepositoriesMavenApi->set_label: #{e}"
@@ -542,12 +565,12 @@ end
542
565
 
543
566
  This returns an Array which contains the response data, status code and headers.
544
567
 
545
- > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(maven_maven_repository_href, set_label)
568
+ > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(maven_maven_repository_href, set_label, opts)
546
569
 
547
570
  ```ruby
548
571
  begin
549
572
  # Set a label
550
- data, status_code, headers = api_instance.set_label_with_http_info(maven_maven_repository_href, set_label)
573
+ data, status_code, headers = api_instance.set_label_with_http_info(maven_maven_repository_href, set_label, opts)
551
574
  p status_code # => 2xx
552
575
  p headers # => { ... }
553
576
  p data # => <SetLabelResponse>
@@ -562,6 +585,7 @@ end
562
585
  | ---- | ---- | ----------- | ----- |
563
586
  | **maven_maven_repository_href** | **String** | | |
564
587
  | **set_label** | [**SetLabel**](SetLabel.md) | | |
588
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
565
589
 
566
590
  ### Return type
567
591
 
@@ -579,7 +603,7 @@ end
579
603
 
580
604
  ## unset_label
581
605
 
582
- > <UnsetLabelResponse> unset_label(maven_maven_repository_href, unset_label)
606
+ > <UnsetLabelResponse> unset_label(maven_maven_repository_href, unset_label, opts)
583
607
 
584
608
  Unset a label
585
609
 
@@ -600,10 +624,13 @@ end
600
624
  api_instance = PulpMavenClient::RepositoriesMavenApi.new
601
625
  maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
602
626
  unset_label = PulpMavenClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
627
+ opts = {
628
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
629
+ }
603
630
 
604
631
  begin
605
632
  # Unset a label
606
- result = api_instance.unset_label(maven_maven_repository_href, unset_label)
633
+ result = api_instance.unset_label(maven_maven_repository_href, unset_label, opts)
607
634
  p result
608
635
  rescue PulpMavenClient::ApiError => e
609
636
  puts "Error when calling RepositoriesMavenApi->unset_label: #{e}"
@@ -614,12 +641,12 @@ end
614
641
 
615
642
  This returns an Array which contains the response data, status code and headers.
616
643
 
617
- > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(maven_maven_repository_href, unset_label)
644
+ > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(maven_maven_repository_href, unset_label, opts)
618
645
 
619
646
  ```ruby
620
647
  begin
621
648
  # Unset a label
622
- data, status_code, headers = api_instance.unset_label_with_http_info(maven_maven_repository_href, unset_label)
649
+ data, status_code, headers = api_instance.unset_label_with_http_info(maven_maven_repository_href, unset_label, opts)
623
650
  p status_code # => 2xx
624
651
  p headers # => { ... }
625
652
  p data # => <UnsetLabelResponse>
@@ -634,6 +661,7 @@ end
634
661
  | ---- | ---- | ----------- | ----- |
635
662
  | **maven_maven_repository_href** | **String** | | |
636
663
  | **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
664
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
637
665
 
638
666
  ### Return type
639
667
 
@@ -651,11 +679,11 @@ end
651
679
 
652
680
  ## update
653
681
 
654
- > <AsyncOperationResponse> update(maven_maven_repository_href, maven_maven_repository)
682
+ > <MavenMavenRepositoryResponse> update(maven_maven_repository_href, maven_maven_repository, opts)
655
683
 
656
684
  Update a maven repository
657
685
 
658
- Trigger an asynchronous update task
686
+ Update the entity and trigger an asynchronous task if necessary
659
687
 
660
688
  ### Examples
661
689
 
@@ -672,10 +700,13 @@ end
672
700
  api_instance = PulpMavenClient::RepositoriesMavenApi.new
673
701
  maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
674
702
  maven_maven_repository = PulpMavenClient::MavenMavenRepository.new({name: 'name_example'}) # MavenMavenRepository |
703
+ opts = {
704
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
705
+ }
675
706
 
676
707
  begin
677
708
  # Update a maven repository
678
- result = api_instance.update(maven_maven_repository_href, maven_maven_repository)
709
+ result = api_instance.update(maven_maven_repository_href, maven_maven_repository, opts)
679
710
  p result
680
711
  rescue PulpMavenClient::ApiError => e
681
712
  puts "Error when calling RepositoriesMavenApi->update: #{e}"
@@ -686,15 +717,15 @@ end
686
717
 
687
718
  This returns an Array which contains the response data, status code and headers.
688
719
 
689
- > <Array(<AsyncOperationResponse>, Integer, Hash)> update_with_http_info(maven_maven_repository_href, maven_maven_repository)
720
+ > <Array(<MavenMavenRepositoryResponse>, Integer, Hash)> update_with_http_info(maven_maven_repository_href, maven_maven_repository, opts)
690
721
 
691
722
  ```ruby
692
723
  begin
693
724
  # Update a maven repository
694
- data, status_code, headers = api_instance.update_with_http_info(maven_maven_repository_href, maven_maven_repository)
725
+ data, status_code, headers = api_instance.update_with_http_info(maven_maven_repository_href, maven_maven_repository, opts)
695
726
  p status_code # => 2xx
696
727
  p headers # => { ... }
697
- p data # => <AsyncOperationResponse>
728
+ p data # => <MavenMavenRepositoryResponse>
698
729
  rescue PulpMavenClient::ApiError => e
699
730
  puts "Error when calling RepositoriesMavenApi->update_with_http_info: #{e}"
700
731
  end
@@ -706,10 +737,11 @@ end
706
737
  | ---- | ---- | ----------- | ----- |
707
738
  | **maven_maven_repository_href** | **String** | | |
708
739
  | **maven_maven_repository** | [**MavenMavenRepository**](MavenMavenRepository.md) | | |
740
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
709
741
 
710
742
  ### Return type
711
743
 
712
- [**AsyncOperationResponse**](AsyncOperationResponse.md)
744
+ [**MavenMavenRepositoryResponse**](MavenMavenRepositoryResponse.md)
713
745
 
714
746
  ### Authorization
715
747
 
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost:24817*
12
12
 
13
13
  ## delete
14
14
 
15
- > <AsyncOperationResponse> delete(maven_maven_repository_version_href)
15
+ > <AsyncOperationResponse> delete(maven_maven_repository_version_href, opts)
16
16
 
17
17
  Delete a repository version
18
18
 
@@ -32,10 +32,13 @@ end
32
32
 
33
33
  api_instance = PulpMavenClient::RepositoriesMavenVersionsApi.new
34
34
  maven_maven_repository_version_href = 'maven_maven_repository_version_href_example' # String |
35
+ opts = {
36
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
37
+ }
35
38
 
36
39
  begin
37
40
  # Delete a repository version
38
- result = api_instance.delete(maven_maven_repository_version_href)
41
+ result = api_instance.delete(maven_maven_repository_version_href, opts)
39
42
  p result
40
43
  rescue PulpMavenClient::ApiError => e
41
44
  puts "Error when calling RepositoriesMavenVersionsApi->delete: #{e}"
@@ -46,12 +49,12 @@ end
46
49
 
47
50
  This returns an Array which contains the response data, status code and headers.
48
51
 
49
- > <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(maven_maven_repository_version_href)
52
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(maven_maven_repository_version_href, opts)
50
53
 
51
54
  ```ruby
52
55
  begin
53
56
  # Delete a repository version
54
- data, status_code, headers = api_instance.delete_with_http_info(maven_maven_repository_version_href)
57
+ data, status_code, headers = api_instance.delete_with_http_info(maven_maven_repository_version_href, opts)
55
58
  p status_code # => 2xx
56
59
  p headers # => { ... }
57
60
  p data # => <AsyncOperationResponse>
@@ -65,6 +68,7 @@ end
65
68
  | Name | Type | Description | Notes |
66
69
  | ---- | ---- | ----------- | ----- |
67
70
  | **maven_maven_repository_version_href** | **String** | | |
71
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
68
72
 
69
73
  ### Return type
70
74
 
@@ -103,6 +107,7 @@ end
103
107
  api_instance = PulpMavenClient::RepositoriesMavenVersionsApi.new
104
108
  maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
105
109
  opts = {
110
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
106
111
  content: 'content_example', # String | Content Unit referenced by HREF/PRN
107
112
  content__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
108
113
  limit: 56, # Integer | Number of results to return per page.
@@ -113,7 +118,7 @@ opts = {
113
118
  number__lte: 56, # Integer | Filter results where number is less than or equal to value
114
119
  number__range: [37], # Array<Integer> | Filter results where number is between two comma separated values
115
120
  offset: 56, # Integer | The initial index from which to return the results.
116
- ordering: ['-complete'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
121
+ ordering: ['-complete'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `content_ids` - Content ids * `-content_ids` - Content ids (descending) * `pk` - Pk * `-pk` - Pk (descending)
117
122
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
118
123
  pulp_created: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created matches value
119
124
  pulp_created__gt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_created is greater than value
@@ -160,6 +165,7 @@ end
160
165
  | Name | Type | Description | Notes |
161
166
  | ---- | ---- | ----------- | ----- |
162
167
  | **maven_maven_repository_href** | **String** | | |
168
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
163
169
  | **content** | **String** | Content Unit referenced by HREF/PRN | [optional] |
164
170
  | **content__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
165
171
  | **limit** | **Integer** | Number of results to return per page. | [optional] |
@@ -170,7 +176,7 @@ end
170
176
  | **number__lte** | **Integer** | Filter results where number is less than or equal to value | [optional] |
171
177
  | **number__range** | [**Array&lt;Integer&gt;**](Integer.md) | Filter results where number is between two comma separated values | [optional] |
172
178
  | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
173
- | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
179
+ | **ordering** | [**Array&lt;String&gt;**](String.md) | Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;content_ids&#x60; - Content ids * &#x60;-content_ids&#x60; - Content ids (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
174
180
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
175
181
  | **pulp_created** | **Time** | Filter results where pulp_created matches value | [optional] |
176
182
  | **pulp_created__gt** | **Time** | Filter results where pulp_created is greater than value | [optional] |
@@ -221,6 +227,7 @@ end
221
227
  api_instance = PulpMavenClient::RepositoriesMavenVersionsApi.new
222
228
  maven_maven_repository_version_href = 'maven_maven_repository_version_href_example' # String |
223
229
  opts = {
230
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
224
231
  fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
225
232
  exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
226
233
  }
@@ -257,6 +264,7 @@ end
257
264
  | Name | Type | Description | Notes |
258
265
  | ---- | ---- | ----------- | ----- |
259
266
  | **maven_maven_repository_version_href** | **String** | | |
267
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
260
268
  | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
261
269
  | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
262
270
 
@@ -276,7 +284,7 @@ end
276
284
 
277
285
  ## repair
278
286
 
279
- > <AsyncOperationResponse> repair(maven_maven_repository_version_href, repair)
287
+ > <AsyncOperationResponse> repair(maven_maven_repository_version_href, repair, opts)
280
288
 
281
289
 
282
290
 
@@ -297,10 +305,13 @@ end
297
305
  api_instance = PulpMavenClient::RepositoriesMavenVersionsApi.new
298
306
  maven_maven_repository_version_href = 'maven_maven_repository_version_href_example' # String |
299
307
  repair = PulpMavenClient::Repair.new # Repair |
308
+ opts = {
309
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
310
+ }
300
311
 
301
312
  begin
302
313
 
303
- result = api_instance.repair(maven_maven_repository_version_href, repair)
314
+ result = api_instance.repair(maven_maven_repository_version_href, repair, opts)
304
315
  p result
305
316
  rescue PulpMavenClient::ApiError => e
306
317
  puts "Error when calling RepositoriesMavenVersionsApi->repair: #{e}"
@@ -311,12 +322,12 @@ end
311
322
 
312
323
  This returns an Array which contains the response data, status code and headers.
313
324
 
314
- > <Array(<AsyncOperationResponse>, Integer, Hash)> repair_with_http_info(maven_maven_repository_version_href, repair)
325
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> repair_with_http_info(maven_maven_repository_version_href, repair, opts)
315
326
 
316
327
  ```ruby
317
328
  begin
318
329
 
319
- data, status_code, headers = api_instance.repair_with_http_info(maven_maven_repository_version_href, repair)
330
+ data, status_code, headers = api_instance.repair_with_http_info(maven_maven_repository_version_href, repair, opts)
320
331
  p status_code # => 2xx
321
332
  p headers # => { ... }
322
333
  p data # => <AsyncOperationResponse>
@@ -331,6 +342,7 @@ end
331
342
  | ---- | ---- | ----------- | ----- |
332
343
  | **maven_maven_repository_version_href** | **String** | | |
333
344
  | **repair** | [**Repair**](Repair.md) | | |
345
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
334
346
 
335
347
  ### Return type
336
348
 
@@ -12,6 +12,7 @@
12
12
  | **repository** | **String** | | [optional][readonly] |
13
13
  | **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional] |
14
14
  | **content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional][readonly] |
15
+ | **vuln_report** | **String** | | [optional][readonly] |
15
16
 
16
17
  ## Example
17
18
 
@@ -26,7 +27,8 @@ instance = PulpMavenClient::RepositoryVersionResponse.new(
26
27
  number: null,
27
28
  repository: null,
28
29
  base_version: null,
29
- content_summary: null
30
+ content_summary: null,
31
+ vuln_report: null
30
32
  )
31
33
  ```
32
34
 
@@ -23,6 +23,7 @@ module PulpMavenClient
23
23
  # A ViewSet for MavenArtifact.
24
24
  # @param maven_maven_artifact [MavenMavenArtifact]
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 [MavenMavenArtifactResponse]
27
28
  def create(maven_maven_artifact, opts = {})
28
29
  data, _status_code, _headers = create_with_http_info(maven_maven_artifact, opts)
@@ -33,6 +34,7 @@ module PulpMavenClient
33
34
  # A ViewSet for MavenArtifact.
34
35
  # @param maven_maven_artifact [MavenMavenArtifact]
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<(MavenMavenArtifactResponse, Integer, Hash)>] MavenMavenArtifactResponse data, response status code and response headers
37
39
  def create_with_http_info(maven_maven_artifact, 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] || {}
@@ -90,6 +93,7 @@ module PulpMavenClient
90
93
  # List maven artifacts
91
94
  # A ViewSet for MavenArtifact.
92
95
  # @param [Hash] opts the optional parameters
96
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
93
97
  # @option opts [String] :artifact_id Filter results where artifact_id matches value
94
98
  # @option opts [String] :filename Filter results where filename matches value
95
99
  # @option opts [String] :group_id Filter results where group_id matches value
@@ -117,6 +121,7 @@ module PulpMavenClient
117
121
  # List maven artifacts
118
122
  # A ViewSet for MavenArtifact.
119
123
  # @param [Hash] opts the optional parameters
124
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
120
125
  # @option opts [String] :artifact_id Filter results where artifact_id matches value
121
126
  # @option opts [String] :filename Filter results where filename matches value
122
127
  # @option opts [String] :group_id Filter results where group_id matches value
@@ -172,6 +177,7 @@ module PulpMavenClient
172
177
  header_params = opts[:header_params] || {}
173
178
  # HTTP header 'Accept' (if needed)
174
179
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
180
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
175
181
 
176
182
  # form parameters
177
183
  form_params = opts[:form_params] || {}
@@ -206,6 +212,7 @@ module PulpMavenClient
206
212
  # A ViewSet for MavenArtifact.
207
213
  # @param maven_maven_artifact_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 [MavenMavenArtifactResponse]
@@ -218,6 +225,7 @@ module PulpMavenClient
218
225
  # A ViewSet for MavenArtifact.
219
226
  # @param maven_maven_artifact_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<(MavenMavenArtifactResponse, Integer, Hash)>] MavenMavenArtifactResponse data, response status code and response headers
@@ -241,6 +249,7 @@ module PulpMavenClient
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']) unless header_params['Accept']
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] || {}
@@ -276,6 +285,7 @@ module PulpMavenClient
276
285
  # @param maven_maven_artifact_href [String]
277
286
  # @param set_label [SetLabel]
278
287
  # @param [Hash] opts the optional parameters
288
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
279
289
  # @return [SetLabelResponse]
280
290
  def set_label(maven_maven_artifact_href, set_label, opts = {})
281
291
  data, _status_code, _headers = set_label_with_http_info(maven_maven_artifact_href, set_label, opts)
@@ -287,6 +297,7 @@ module PulpMavenClient
287
297
  # @param maven_maven_artifact_href [String]
288
298
  # @param set_label [SetLabel]
289
299
  # @param [Hash] opts the optional parameters
300
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
290
301
  # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
291
302
  def set_label_with_http_info(maven_maven_artifact_href, set_label, opts = {})
292
303
  if @api_client.config.debugging
@@ -315,6 +326,7 @@ module PulpMavenClient
315
326
  if !content_type.nil?
316
327
  header_params['Content-Type'] = content_type
317
328
  end
329
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
318
330
 
319
331
  # form parameters
320
332
  form_params = opts[:form_params] || {}
@@ -350,6 +362,7 @@ module PulpMavenClient
350
362
  # @param maven_maven_artifact_href [String]
351
363
  # @param unset_label [UnsetLabel]
352
364
  # @param [Hash] opts the optional parameters
365
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
353
366
  # @return [UnsetLabelResponse]
354
367
  def unset_label(maven_maven_artifact_href, unset_label, opts = {})
355
368
  data, _status_code, _headers = unset_label_with_http_info(maven_maven_artifact_href, unset_label, opts)
@@ -361,6 +374,7 @@ module PulpMavenClient
361
374
  # @param maven_maven_artifact_href [String]
362
375
  # @param unset_label [UnsetLabel]
363
376
  # @param [Hash] opts the optional parameters
377
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
364
378
  # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
365
379
  def unset_label_with_http_info(maven_maven_artifact_href, unset_label, opts = {})
366
380
  if @api_client.config.debugging
@@ -389,6 +403,7 @@ module PulpMavenClient
389
403
  if !content_type.nil?
390
404
  header_params['Content-Type'] = content_type
391
405
  end
406
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
392
407
 
393
408
  # form parameters
394
409
  form_params = opts[:form_params] || {}