pulp_npm_client 0.3.3 → 0.4.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 +52 -24
  5. data/docs/NpmNpmRemoteResponse.md +1 -1
  6. data/docs/NpmPackageResponse.md +2 -0
  7. data/docs/RemotesNpmApi.md +52 -24
  8. data/docs/RepositoriesNpmApi.md +68 -32
  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 +24 -0
  13. data/lib/pulp_npm_client/api/remotes_npm_api.rb +24 -0
  14. data/lib/pulp_npm_client/api/repositories_npm_api.rb +30 -0
  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 +8 -0
  33. data/spec/api/remotes_npm_api_spec.rb +8 -0
  34. data/spec/api/repositories_npm_api_spec.rb +10 -0
  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
@@ -16,7 +16,7 @@ All URIs are relative to *http://localhost:24817*
16
16
 
17
17
  ## create
18
18
 
19
- > <NpmNpmRemoteResponse> create(npm_npm_remote)
19
+ > <NpmNpmRemoteResponse> create(npm_npm_remote, opts)
20
20
 
21
21
  Create a npm remote
22
22
 
@@ -36,10 +36,13 @@ end
36
36
 
37
37
  api_instance = PulpNpmClient::RemotesNpmApi.new
38
38
  npm_npm_remote = PulpNpmClient::NpmNpmRemote.new({name: 'name_example', url: 'url_example'}) # NpmNpmRemote |
39
+ opts = {
40
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
41
+ }
39
42
 
40
43
  begin
41
44
  # Create a npm remote
42
- result = api_instance.create(npm_npm_remote)
45
+ result = api_instance.create(npm_npm_remote, opts)
43
46
  p result
44
47
  rescue PulpNpmClient::ApiError => e
45
48
  puts "Error when calling RemotesNpmApi->create: #{e}"
@@ -50,12 +53,12 @@ end
50
53
 
51
54
  This returns an Array which contains the response data, status code and headers.
52
55
 
53
- > <Array(<NpmNpmRemoteResponse>, Integer, Hash)> create_with_http_info(npm_npm_remote)
56
+ > <Array(<NpmNpmRemoteResponse>, Integer, Hash)> create_with_http_info(npm_npm_remote, opts)
54
57
 
55
58
  ```ruby
56
59
  begin
57
60
  # Create a npm remote
58
- data, status_code, headers = api_instance.create_with_http_info(npm_npm_remote)
61
+ data, status_code, headers = api_instance.create_with_http_info(npm_npm_remote, opts)
59
62
  p status_code # => 2xx
60
63
  p headers # => { ... }
61
64
  p data # => <NpmNpmRemoteResponse>
@@ -69,6 +72,7 @@ end
69
72
  | Name | Type | Description | Notes |
70
73
  | ---- | ---- | ----------- | ----- |
71
74
  | **npm_npm_remote** | [**NpmNpmRemote**](NpmNpmRemote.md) | | |
75
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
72
76
 
73
77
  ### Return type
74
78
 
@@ -86,7 +90,7 @@ end
86
90
 
87
91
  ## delete
88
92
 
89
- > <AsyncOperationResponse> delete(npm_npm_remote_href)
93
+ > <AsyncOperationResponse> delete(npm_npm_remote_href, opts)
90
94
 
91
95
  Delete a npm remote
92
96
 
@@ -106,10 +110,13 @@ end
106
110
 
107
111
  api_instance = PulpNpmClient::RemotesNpmApi.new
108
112
  npm_npm_remote_href = 'npm_npm_remote_href_example' # String |
113
+ opts = {
114
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
115
+ }
109
116
 
110
117
  begin
111
118
  # Delete a npm remote
112
- result = api_instance.delete(npm_npm_remote_href)
119
+ result = api_instance.delete(npm_npm_remote_href, opts)
113
120
  p result
114
121
  rescue PulpNpmClient::ApiError => e
115
122
  puts "Error when calling RemotesNpmApi->delete: #{e}"
@@ -120,12 +127,12 @@ end
120
127
 
121
128
  This returns an Array which contains the response data, status code and headers.
122
129
 
123
- > <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(npm_npm_remote_href)
130
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> delete_with_http_info(npm_npm_remote_href, opts)
124
131
 
125
132
  ```ruby
126
133
  begin
127
134
  # Delete a npm remote
128
- data, status_code, headers = api_instance.delete_with_http_info(npm_npm_remote_href)
135
+ data, status_code, headers = api_instance.delete_with_http_info(npm_npm_remote_href, opts)
129
136
  p status_code # => 2xx
130
137
  p headers # => { ... }
131
138
  p data # => <AsyncOperationResponse>
@@ -139,6 +146,7 @@ end
139
146
  | Name | Type | Description | Notes |
140
147
  | ---- | ---- | ----------- | ----- |
141
148
  | **npm_npm_remote_href** | **String** | | |
149
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
142
150
 
143
151
  ### Return type
144
152
 
@@ -176,6 +184,7 @@ end
176
184
 
177
185
  api_instance = PulpNpmClient::RemotesNpmApi.new
178
186
  opts = {
187
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
179
188
  limit: 56, # Integer | Number of results to return per page.
180
189
  name: 'name_example', # String | Filter results where name matches value
181
190
  name__contains: 'name__contains_example', # String | Filter results where name contains value
@@ -235,6 +244,7 @@ end
235
244
 
236
245
  | Name | Type | Description | Notes |
237
246
  | ---- | ---- | ----------- | ----- |
247
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
238
248
  | **limit** | **Integer** | Number of results to return per page. | [optional] |
239
249
  | **name** | **String** | Filter results where name matches value | [optional] |
240
250
  | **name__contains** | **String** | Filter results where name contains value | [optional] |
@@ -278,7 +288,7 @@ end
278
288
 
279
289
  ## partial_update
280
290
 
281
- > <AsyncOperationResponse> partial_update(npm_npm_remote_href, patchednpm_npm_remote)
291
+ > <AsyncOperationResponse> partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts)
282
292
 
283
293
  Update a npm remote
284
294
 
@@ -299,10 +309,13 @@ end
299
309
  api_instance = PulpNpmClient::RemotesNpmApi.new
300
310
  npm_npm_remote_href = 'npm_npm_remote_href_example' # String |
301
311
  patchednpm_npm_remote = PulpNpmClient::PatchednpmNpmRemote.new # PatchednpmNpmRemote |
312
+ opts = {
313
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
314
+ }
302
315
 
303
316
  begin
304
317
  # Update a npm remote
305
- result = api_instance.partial_update(npm_npm_remote_href, patchednpm_npm_remote)
318
+ result = api_instance.partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts)
306
319
  p result
307
320
  rescue PulpNpmClient::ApiError => e
308
321
  puts "Error when calling RemotesNpmApi->partial_update: #{e}"
@@ -313,12 +326,12 @@ end
313
326
 
314
327
  This returns an Array which contains the response data, status code and headers.
315
328
 
316
- > <Array(<AsyncOperationResponse>, Integer, Hash)> partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote)
329
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts)
317
330
 
318
331
  ```ruby
319
332
  begin
320
333
  # Update a npm remote
321
- data, status_code, headers = api_instance.partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote)
334
+ data, status_code, headers = api_instance.partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts)
322
335
  p status_code # => 2xx
323
336
  p headers # => { ... }
324
337
  p data # => <AsyncOperationResponse>
@@ -333,6 +346,7 @@ end
333
346
  | ---- | ---- | ----------- | ----- |
334
347
  | **npm_npm_remote_href** | **String** | | |
335
348
  | **patchednpm_npm_remote** | [**PatchednpmNpmRemote**](PatchednpmNpmRemote.md) | | |
349
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
336
350
 
337
351
  ### Return type
338
352
 
@@ -371,6 +385,7 @@ end
371
385
  api_instance = PulpNpmClient::RemotesNpmApi.new
372
386
  npm_npm_remote_href = 'npm_npm_remote_href_example' # String |
373
387
  opts = {
388
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
374
389
  fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
375
390
  exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
376
391
  }
@@ -407,6 +422,7 @@ end
407
422
  | Name | Type | Description | Notes |
408
423
  | ---- | ---- | ----------- | ----- |
409
424
  | **npm_npm_remote_href** | **String** | | |
425
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
410
426
  | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
411
427
  | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
412
428
 
@@ -426,7 +442,7 @@ end
426
442
 
427
443
  ## set_label
428
444
 
429
- > <SetLabelResponse> set_label(npm_npm_remote_href, set_label)
445
+ > <SetLabelResponse> set_label(npm_npm_remote_href, set_label, opts)
430
446
 
431
447
  Set a label
432
448
 
@@ -447,10 +463,13 @@ end
447
463
  api_instance = PulpNpmClient::RemotesNpmApi.new
448
464
  npm_npm_remote_href = 'npm_npm_remote_href_example' # String |
449
465
  set_label = PulpNpmClient::SetLabel.new({key: 'key_example', value: 'value_example'}) # SetLabel |
466
+ opts = {
467
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
468
+ }
450
469
 
451
470
  begin
452
471
  # Set a label
453
- result = api_instance.set_label(npm_npm_remote_href, set_label)
472
+ result = api_instance.set_label(npm_npm_remote_href, set_label, opts)
454
473
  p result
455
474
  rescue PulpNpmClient::ApiError => e
456
475
  puts "Error when calling RemotesNpmApi->set_label: #{e}"
@@ -461,12 +480,12 @@ end
461
480
 
462
481
  This returns an Array which contains the response data, status code and headers.
463
482
 
464
- > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(npm_npm_remote_href, set_label)
483
+ > <Array(<SetLabelResponse>, Integer, Hash)> set_label_with_http_info(npm_npm_remote_href, set_label, opts)
465
484
 
466
485
  ```ruby
467
486
  begin
468
487
  # Set a label
469
- data, status_code, headers = api_instance.set_label_with_http_info(npm_npm_remote_href, set_label)
488
+ data, status_code, headers = api_instance.set_label_with_http_info(npm_npm_remote_href, set_label, opts)
470
489
  p status_code # => 2xx
471
490
  p headers # => { ... }
472
491
  p data # => <SetLabelResponse>
@@ -481,6 +500,7 @@ end
481
500
  | ---- | ---- | ----------- | ----- |
482
501
  | **npm_npm_remote_href** | **String** | | |
483
502
  | **set_label** | [**SetLabel**](SetLabel.md) | | |
503
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
484
504
 
485
505
  ### Return type
486
506
 
@@ -498,7 +518,7 @@ end
498
518
 
499
519
  ## unset_label
500
520
 
501
- > <UnsetLabelResponse> unset_label(npm_npm_remote_href, unset_label)
521
+ > <UnsetLabelResponse> unset_label(npm_npm_remote_href, unset_label, opts)
502
522
 
503
523
  Unset a label
504
524
 
@@ -519,10 +539,13 @@ end
519
539
  api_instance = PulpNpmClient::RemotesNpmApi.new
520
540
  npm_npm_remote_href = 'npm_npm_remote_href_example' # String |
521
541
  unset_label = PulpNpmClient::UnsetLabel.new({key: 'key_example'}) # UnsetLabel |
542
+ opts = {
543
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
544
+ }
522
545
 
523
546
  begin
524
547
  # Unset a label
525
- result = api_instance.unset_label(npm_npm_remote_href, unset_label)
548
+ result = api_instance.unset_label(npm_npm_remote_href, unset_label, opts)
526
549
  p result
527
550
  rescue PulpNpmClient::ApiError => e
528
551
  puts "Error when calling RemotesNpmApi->unset_label: #{e}"
@@ -533,12 +556,12 @@ end
533
556
 
534
557
  This returns an Array which contains the response data, status code and headers.
535
558
 
536
- > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(npm_npm_remote_href, unset_label)
559
+ > <Array(<UnsetLabelResponse>, Integer, Hash)> unset_label_with_http_info(npm_npm_remote_href, unset_label, opts)
537
560
 
538
561
  ```ruby
539
562
  begin
540
563
  # Unset a label
541
- data, status_code, headers = api_instance.unset_label_with_http_info(npm_npm_remote_href, unset_label)
564
+ data, status_code, headers = api_instance.unset_label_with_http_info(npm_npm_remote_href, unset_label, opts)
542
565
  p status_code # => 2xx
543
566
  p headers # => { ... }
544
567
  p data # => <UnsetLabelResponse>
@@ -553,6 +576,7 @@ end
553
576
  | ---- | ---- | ----------- | ----- |
554
577
  | **npm_npm_remote_href** | **String** | | |
555
578
  | **unset_label** | [**UnsetLabel**](UnsetLabel.md) | | |
579
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
556
580
 
557
581
  ### Return type
558
582
 
@@ -570,7 +594,7 @@ end
570
594
 
571
595
  ## update
572
596
 
573
- > <AsyncOperationResponse> update(npm_npm_remote_href, npm_npm_remote)
597
+ > <AsyncOperationResponse> update(npm_npm_remote_href, npm_npm_remote, opts)
574
598
 
575
599
  Update a npm remote
576
600
 
@@ -591,10 +615,13 @@ end
591
615
  api_instance = PulpNpmClient::RemotesNpmApi.new
592
616
  npm_npm_remote_href = 'npm_npm_remote_href_example' # String |
593
617
  npm_npm_remote = PulpNpmClient::NpmNpmRemote.new({name: 'name_example', url: 'url_example'}) # NpmNpmRemote |
618
+ opts = {
619
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
620
+ }
594
621
 
595
622
  begin
596
623
  # Update a npm remote
597
- result = api_instance.update(npm_npm_remote_href, npm_npm_remote)
624
+ result = api_instance.update(npm_npm_remote_href, npm_npm_remote, opts)
598
625
  p result
599
626
  rescue PulpNpmClient::ApiError => e
600
627
  puts "Error when calling RemotesNpmApi->update: #{e}"
@@ -605,12 +632,12 @@ end
605
632
 
606
633
  This returns an Array which contains the response data, status code and headers.
607
634
 
608
- > <Array(<AsyncOperationResponse>, Integer, Hash)> update_with_http_info(npm_npm_remote_href, npm_npm_remote)
635
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts)
609
636
 
610
637
  ```ruby
611
638
  begin
612
639
  # Update a npm remote
613
- data, status_code, headers = api_instance.update_with_http_info(npm_npm_remote_href, npm_npm_remote)
640
+ data, status_code, headers = api_instance.update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts)
614
641
  p status_code # => 2xx
615
642
  p headers # => { ... }
616
643
  p data # => <AsyncOperationResponse>
@@ -625,6 +652,7 @@ end
625
652
  | ---- | ---- | ----------- | ----- |
626
653
  | **npm_npm_remote_href** | **String** | | |
627
654
  | **npm_npm_remote** | [**NpmNpmRemote**](NpmNpmRemote.md) | | |
655
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
628
656
 
629
657
  ### Return type
630
658