pulp_npm_client 0.4.0 → 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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/DistributionsNpmApi.md +10 -10
- data/docs/RemotesNpmApi.md +10 -10
- data/docs/RepositoriesNpmApi.md +10 -10
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +10 -10
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +10 -10
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +10 -10
- data/lib/pulp_npm_client/version.rb +1 -1
- data/spec/api/distributions_npm_api_spec.rb +4 -4
- data/spec/api/remotes_npm_api_spec.rb +4 -4
- data/spec/api/repositories_npm_api_spec.rb +4 -4
- metadata +25 -25
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d73e447b030cd0f001d703f993c437559bf98b5e6bc025b369eea87fc81fd9c
|
|
4
|
+
data.tar.gz: 24d258585c56fb67b13aa1045952bc97a3f19e8aed7aad87e14b345931eb79c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34f1c22748ff0f3f3953e4d7b4b3c821d173ab994d795f1512f63e31b6a79635a546563da7533a82141e8f79075f519adc433dcbad12cc9fa79dadee08abf72f
|
|
7
|
+
data.tar.gz: c3a2819eafdb66bc8eefbb199cfe09dd43c4e7964774c7dc1491f743f6bbb5db66c37adea402a9e31b4a552c43243a90d38615fcde99b7d6225731e0b2d5e1bf
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 0.
|
|
10
|
+
- Package version: 0.5.0
|
|
11
11
|
- Generator version: 7.10.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -25,16 +25,16 @@ gem build pulp_npm_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulp_npm_client-0.
|
|
28
|
+
gem install ./pulp_npm_client-0.5.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulp_npm_client-0.
|
|
31
|
+
(for development, run `gem install --dev ./pulp_npm_client-0.5.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'pulp_npm_client', '~> 0.
|
|
37
|
+
gem 'pulp_npm_client', '~> 0.5.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
data/docs/DistributionsNpmApi.md
CHANGED
|
@@ -290,11 +290,11 @@ end
|
|
|
290
290
|
|
|
291
291
|
## partial_update
|
|
292
292
|
|
|
293
|
-
> <
|
|
293
|
+
> <NpmNpmDistributionResponse> partial_update(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
|
|
294
294
|
|
|
295
295
|
Update a npm distribution
|
|
296
296
|
|
|
297
|
-
|
|
297
|
+
Update the entity partially and trigger an asynchronous task if necessary
|
|
298
298
|
|
|
299
299
|
### Examples
|
|
300
300
|
|
|
@@ -328,7 +328,7 @@ end
|
|
|
328
328
|
|
|
329
329
|
This returns an Array which contains the response data, status code and headers.
|
|
330
330
|
|
|
331
|
-
> <Array(<
|
|
331
|
+
> <Array(<NpmNpmDistributionResponse>, Integer, Hash)> partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
|
|
332
332
|
|
|
333
333
|
```ruby
|
|
334
334
|
begin
|
|
@@ -336,7 +336,7 @@ begin
|
|
|
336
336
|
data, status_code, headers = api_instance.partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
|
|
337
337
|
p status_code # => 2xx
|
|
338
338
|
p headers # => { ... }
|
|
339
|
-
p data # => <
|
|
339
|
+
p data # => <NpmNpmDistributionResponse>
|
|
340
340
|
rescue PulpNpmClient::ApiError => e
|
|
341
341
|
puts "Error when calling DistributionsNpmApi->partial_update_with_http_info: #{e}"
|
|
342
342
|
end
|
|
@@ -352,7 +352,7 @@ end
|
|
|
352
352
|
|
|
353
353
|
### Return type
|
|
354
354
|
|
|
355
|
-
[**
|
|
355
|
+
[**NpmNpmDistributionResponse**](NpmNpmDistributionResponse.md)
|
|
356
356
|
|
|
357
357
|
### Authorization
|
|
358
358
|
|
|
@@ -596,11 +596,11 @@ end
|
|
|
596
596
|
|
|
597
597
|
## update
|
|
598
598
|
|
|
599
|
-
> <
|
|
599
|
+
> <NpmNpmDistributionResponse> update(npm_npm_distribution_href, npm_npm_distribution, opts)
|
|
600
600
|
|
|
601
601
|
Update a npm distribution
|
|
602
602
|
|
|
603
|
-
|
|
603
|
+
Update the entity and trigger an asynchronous task if necessary
|
|
604
604
|
|
|
605
605
|
### Examples
|
|
606
606
|
|
|
@@ -634,7 +634,7 @@ end
|
|
|
634
634
|
|
|
635
635
|
This returns an Array which contains the response data, status code and headers.
|
|
636
636
|
|
|
637
|
-
> <Array(<
|
|
637
|
+
> <Array(<NpmNpmDistributionResponse>, Integer, Hash)> update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts)
|
|
638
638
|
|
|
639
639
|
```ruby
|
|
640
640
|
begin
|
|
@@ -642,7 +642,7 @@ begin
|
|
|
642
642
|
data, status_code, headers = api_instance.update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts)
|
|
643
643
|
p status_code # => 2xx
|
|
644
644
|
p headers # => { ... }
|
|
645
|
-
p data # => <
|
|
645
|
+
p data # => <NpmNpmDistributionResponse>
|
|
646
646
|
rescue PulpNpmClient::ApiError => e
|
|
647
647
|
puts "Error when calling DistributionsNpmApi->update_with_http_info: #{e}"
|
|
648
648
|
end
|
|
@@ -658,7 +658,7 @@ end
|
|
|
658
658
|
|
|
659
659
|
### Return type
|
|
660
660
|
|
|
661
|
-
[**
|
|
661
|
+
[**NpmNpmDistributionResponse**](NpmNpmDistributionResponse.md)
|
|
662
662
|
|
|
663
663
|
### Authorization
|
|
664
664
|
|
data/docs/RemotesNpmApi.md
CHANGED
|
@@ -288,11 +288,11 @@ end
|
|
|
288
288
|
|
|
289
289
|
## partial_update
|
|
290
290
|
|
|
291
|
-
> <
|
|
291
|
+
> <NpmNpmRemoteResponse> partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts)
|
|
292
292
|
|
|
293
293
|
Update a npm remote
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
Update the entity partially and trigger an asynchronous task if necessary
|
|
296
296
|
|
|
297
297
|
### Examples
|
|
298
298
|
|
|
@@ -326,7 +326,7 @@ end
|
|
|
326
326
|
|
|
327
327
|
This returns an Array which contains the response data, status code and headers.
|
|
328
328
|
|
|
329
|
-
> <Array(<
|
|
329
|
+
> <Array(<NpmNpmRemoteResponse>, Integer, Hash)> partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts)
|
|
330
330
|
|
|
331
331
|
```ruby
|
|
332
332
|
begin
|
|
@@ -334,7 +334,7 @@ begin
|
|
|
334
334
|
data, status_code, headers = api_instance.partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts)
|
|
335
335
|
p status_code # => 2xx
|
|
336
336
|
p headers # => { ... }
|
|
337
|
-
p data # => <
|
|
337
|
+
p data # => <NpmNpmRemoteResponse>
|
|
338
338
|
rescue PulpNpmClient::ApiError => e
|
|
339
339
|
puts "Error when calling RemotesNpmApi->partial_update_with_http_info: #{e}"
|
|
340
340
|
end
|
|
@@ -350,7 +350,7 @@ end
|
|
|
350
350
|
|
|
351
351
|
### Return type
|
|
352
352
|
|
|
353
|
-
[**
|
|
353
|
+
[**NpmNpmRemoteResponse**](NpmNpmRemoteResponse.md)
|
|
354
354
|
|
|
355
355
|
### Authorization
|
|
356
356
|
|
|
@@ -594,11 +594,11 @@ end
|
|
|
594
594
|
|
|
595
595
|
## update
|
|
596
596
|
|
|
597
|
-
> <
|
|
597
|
+
> <NpmNpmRemoteResponse> update(npm_npm_remote_href, npm_npm_remote, opts)
|
|
598
598
|
|
|
599
599
|
Update a npm remote
|
|
600
600
|
|
|
601
|
-
|
|
601
|
+
Update the entity and trigger an asynchronous task if necessary
|
|
602
602
|
|
|
603
603
|
### Examples
|
|
604
604
|
|
|
@@ -632,7 +632,7 @@ end
|
|
|
632
632
|
|
|
633
633
|
This returns an Array which contains the response data, status code and headers.
|
|
634
634
|
|
|
635
|
-
> <Array(<
|
|
635
|
+
> <Array(<NpmNpmRemoteResponse>, Integer, Hash)> update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts)
|
|
636
636
|
|
|
637
637
|
```ruby
|
|
638
638
|
begin
|
|
@@ -640,7 +640,7 @@ begin
|
|
|
640
640
|
data, status_code, headers = api_instance.update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts)
|
|
641
641
|
p status_code # => 2xx
|
|
642
642
|
p headers # => { ... }
|
|
643
|
-
p data # => <
|
|
643
|
+
p data # => <NpmNpmRemoteResponse>
|
|
644
644
|
rescue PulpNpmClient::ApiError => e
|
|
645
645
|
puts "Error when calling RemotesNpmApi->update_with_http_info: #{e}"
|
|
646
646
|
end
|
|
@@ -656,7 +656,7 @@ end
|
|
|
656
656
|
|
|
657
657
|
### Return type
|
|
658
658
|
|
|
659
|
-
[**
|
|
659
|
+
[**NpmNpmRemoteResponse**](NpmNpmRemoteResponse.md)
|
|
660
660
|
|
|
661
661
|
### Authorization
|
|
662
662
|
|
data/docs/RepositoriesNpmApi.md
CHANGED
|
@@ -374,11 +374,11 @@ end
|
|
|
374
374
|
|
|
375
375
|
## partial_update
|
|
376
376
|
|
|
377
|
-
> <
|
|
377
|
+
> <NpmNpmRepositoryResponse> partial_update(npm_npm_repository_href, patchednpm_npm_repository, opts)
|
|
378
378
|
|
|
379
379
|
Update a npm repository
|
|
380
380
|
|
|
381
|
-
|
|
381
|
+
Update the entity partially and trigger an asynchronous task if necessary
|
|
382
382
|
|
|
383
383
|
### Examples
|
|
384
384
|
|
|
@@ -412,7 +412,7 @@ end
|
|
|
412
412
|
|
|
413
413
|
This returns an Array which contains the response data, status code and headers.
|
|
414
414
|
|
|
415
|
-
> <Array(<
|
|
415
|
+
> <Array(<NpmNpmRepositoryResponse>, Integer, Hash)> partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts)
|
|
416
416
|
|
|
417
417
|
```ruby
|
|
418
418
|
begin
|
|
@@ -420,7 +420,7 @@ begin
|
|
|
420
420
|
data, status_code, headers = api_instance.partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts)
|
|
421
421
|
p status_code # => 2xx
|
|
422
422
|
p headers # => { ... }
|
|
423
|
-
p data # => <
|
|
423
|
+
p data # => <NpmNpmRepositoryResponse>
|
|
424
424
|
rescue PulpNpmClient::ApiError => e
|
|
425
425
|
puts "Error when calling RepositoriesNpmApi->partial_update_with_http_info: #{e}"
|
|
426
426
|
end
|
|
@@ -436,7 +436,7 @@ end
|
|
|
436
436
|
|
|
437
437
|
### Return type
|
|
438
438
|
|
|
439
|
-
[**
|
|
439
|
+
[**NpmNpmRepositoryResponse**](NpmNpmRepositoryResponse.md)
|
|
440
440
|
|
|
441
441
|
### Authorization
|
|
442
442
|
|
|
@@ -756,11 +756,11 @@ end
|
|
|
756
756
|
|
|
757
757
|
## update
|
|
758
758
|
|
|
759
|
-
> <
|
|
759
|
+
> <NpmNpmRepositoryResponse> update(npm_npm_repository_href, npm_npm_repository, opts)
|
|
760
760
|
|
|
761
761
|
Update a npm repository
|
|
762
762
|
|
|
763
|
-
|
|
763
|
+
Update the entity and trigger an asynchronous task if necessary
|
|
764
764
|
|
|
765
765
|
### Examples
|
|
766
766
|
|
|
@@ -794,7 +794,7 @@ end
|
|
|
794
794
|
|
|
795
795
|
This returns an Array which contains the response data, status code and headers.
|
|
796
796
|
|
|
797
|
-
> <Array(<
|
|
797
|
+
> <Array(<NpmNpmRepositoryResponse>, Integer, Hash)> update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts)
|
|
798
798
|
|
|
799
799
|
```ruby
|
|
800
800
|
begin
|
|
@@ -802,7 +802,7 @@ begin
|
|
|
802
802
|
data, status_code, headers = api_instance.update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts)
|
|
803
803
|
p status_code # => 2xx
|
|
804
804
|
p headers # => { ... }
|
|
805
|
-
p data # => <
|
|
805
|
+
p data # => <NpmNpmRepositoryResponse>
|
|
806
806
|
rescue PulpNpmClient::ApiError => e
|
|
807
807
|
puts "Error when calling RepositoriesNpmApi->update_with_http_info: #{e}"
|
|
808
808
|
end
|
|
@@ -818,7 +818,7 @@ end
|
|
|
818
818
|
|
|
819
819
|
### Return type
|
|
820
820
|
|
|
821
|
-
[**
|
|
821
|
+
[**NpmNpmRepositoryResponse**](NpmNpmRepositoryResponse.md)
|
|
822
822
|
|
|
823
823
|
### Authorization
|
|
824
824
|
|
|
@@ -302,24 +302,24 @@ module PulpNpmClient
|
|
|
302
302
|
end
|
|
303
303
|
|
|
304
304
|
# Update a npm distribution
|
|
305
|
-
#
|
|
305
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
306
306
|
# @param npm_npm_distribution_href [String]
|
|
307
307
|
# @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
|
|
308
308
|
# @param [Hash] opts the optional parameters
|
|
309
309
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
310
|
-
# @return [
|
|
310
|
+
# @return [NpmNpmDistributionResponse]
|
|
311
311
|
def partial_update(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
|
|
312
312
|
data, _status_code, _headers = partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
|
|
313
313
|
data
|
|
314
314
|
end
|
|
315
315
|
|
|
316
316
|
# Update a npm distribution
|
|
317
|
-
#
|
|
317
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
318
318
|
# @param npm_npm_distribution_href [String]
|
|
319
319
|
# @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
|
|
320
320
|
# @param [Hash] opts the optional parameters
|
|
321
321
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
322
|
-
# @return [Array<(
|
|
322
|
+
# @return [Array<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
|
|
323
323
|
def partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
|
|
324
324
|
if @api_client.config.debugging
|
|
325
325
|
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.partial_update ...'
|
|
@@ -356,7 +356,7 @@ module PulpNpmClient
|
|
|
356
356
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(patchednpm_npm_distribution)
|
|
357
357
|
|
|
358
358
|
# return_type
|
|
359
|
-
return_type = opts[:debug_return_type] || '
|
|
359
|
+
return_type = opts[:debug_return_type] || 'NpmNpmDistributionResponse'
|
|
360
360
|
|
|
361
361
|
# auth_names
|
|
362
362
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -605,24 +605,24 @@ module PulpNpmClient
|
|
|
605
605
|
end
|
|
606
606
|
|
|
607
607
|
# Update a npm distribution
|
|
608
|
-
#
|
|
608
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
609
609
|
# @param npm_npm_distribution_href [String]
|
|
610
610
|
# @param npm_npm_distribution [NpmNpmDistribution]
|
|
611
611
|
# @param [Hash] opts the optional parameters
|
|
612
612
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
613
|
-
# @return [
|
|
613
|
+
# @return [NpmNpmDistributionResponse]
|
|
614
614
|
def update(npm_npm_distribution_href, npm_npm_distribution, opts = {})
|
|
615
615
|
data, _status_code, _headers = update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts)
|
|
616
616
|
data
|
|
617
617
|
end
|
|
618
618
|
|
|
619
619
|
# Update a npm distribution
|
|
620
|
-
#
|
|
620
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
621
621
|
# @param npm_npm_distribution_href [String]
|
|
622
622
|
# @param npm_npm_distribution [NpmNpmDistribution]
|
|
623
623
|
# @param [Hash] opts the optional parameters
|
|
624
624
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
625
|
-
# @return [Array<(
|
|
625
|
+
# @return [Array<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
|
|
626
626
|
def update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts = {})
|
|
627
627
|
if @api_client.config.debugging
|
|
628
628
|
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.update ...'
|
|
@@ -659,7 +659,7 @@ module PulpNpmClient
|
|
|
659
659
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_distribution)
|
|
660
660
|
|
|
661
661
|
# return_type
|
|
662
|
-
return_type = opts[:debug_return_type] || '
|
|
662
|
+
return_type = opts[:debug_return_type] || 'NpmNpmDistributionResponse'
|
|
663
663
|
|
|
664
664
|
# auth_names
|
|
665
665
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -299,24 +299,24 @@ module PulpNpmClient
|
|
|
299
299
|
end
|
|
300
300
|
|
|
301
301
|
# Update a npm remote
|
|
302
|
-
#
|
|
302
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
303
303
|
# @param npm_npm_remote_href [String]
|
|
304
304
|
# @param patchednpm_npm_remote [PatchednpmNpmRemote]
|
|
305
305
|
# @param [Hash] opts the optional parameters
|
|
306
306
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
307
|
-
# @return [
|
|
307
|
+
# @return [NpmNpmRemoteResponse]
|
|
308
308
|
def partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
|
|
309
309
|
data, _status_code, _headers = partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts)
|
|
310
310
|
data
|
|
311
311
|
end
|
|
312
312
|
|
|
313
313
|
# Update a npm remote
|
|
314
|
-
#
|
|
314
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
315
315
|
# @param npm_npm_remote_href [String]
|
|
316
316
|
# @param patchednpm_npm_remote [PatchednpmNpmRemote]
|
|
317
317
|
# @param [Hash] opts the optional parameters
|
|
318
318
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
319
|
-
# @return [Array<(
|
|
319
|
+
# @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
|
|
320
320
|
def partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
|
|
321
321
|
if @api_client.config.debugging
|
|
322
322
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.partial_update ...'
|
|
@@ -353,7 +353,7 @@ module PulpNpmClient
|
|
|
353
353
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(patchednpm_npm_remote)
|
|
354
354
|
|
|
355
355
|
# return_type
|
|
356
|
-
return_type = opts[:debug_return_type] || '
|
|
356
|
+
return_type = opts[:debug_return_type] || 'NpmNpmRemoteResponse'
|
|
357
357
|
|
|
358
358
|
# auth_names
|
|
359
359
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -602,24 +602,24 @@ module PulpNpmClient
|
|
|
602
602
|
end
|
|
603
603
|
|
|
604
604
|
# Update a npm remote
|
|
605
|
-
#
|
|
605
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
606
606
|
# @param npm_npm_remote_href [String]
|
|
607
607
|
# @param npm_npm_remote [NpmNpmRemote]
|
|
608
608
|
# @param [Hash] opts the optional parameters
|
|
609
609
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
610
|
-
# @return [
|
|
610
|
+
# @return [NpmNpmRemoteResponse]
|
|
611
611
|
def update(npm_npm_remote_href, npm_npm_remote, opts = {})
|
|
612
612
|
data, _status_code, _headers = update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts)
|
|
613
613
|
data
|
|
614
614
|
end
|
|
615
615
|
|
|
616
616
|
# Update a npm remote
|
|
617
|
-
#
|
|
617
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
618
618
|
# @param npm_npm_remote_href [String]
|
|
619
619
|
# @param npm_npm_remote [NpmNpmRemote]
|
|
620
620
|
# @param [Hash] opts the optional parameters
|
|
621
621
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
622
|
-
# @return [Array<(
|
|
622
|
+
# @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
|
|
623
623
|
def update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts = {})
|
|
624
624
|
if @api_client.config.debugging
|
|
625
625
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.update ...'
|
|
@@ -656,7 +656,7 @@ module PulpNpmClient
|
|
|
656
656
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_remote)
|
|
657
657
|
|
|
658
658
|
# return_type
|
|
659
|
-
return_type = opts[:debug_return_type] || '
|
|
659
|
+
return_type = opts[:debug_return_type] || 'NpmNpmRemoteResponse'
|
|
660
660
|
|
|
661
661
|
# auth_names
|
|
662
662
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -388,24 +388,24 @@ module PulpNpmClient
|
|
|
388
388
|
end
|
|
389
389
|
|
|
390
390
|
# Update a npm repository
|
|
391
|
-
#
|
|
391
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
392
392
|
# @param npm_npm_repository_href [String]
|
|
393
393
|
# @param patchednpm_npm_repository [PatchednpmNpmRepository]
|
|
394
394
|
# @param [Hash] opts the optional parameters
|
|
395
395
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
396
|
-
# @return [
|
|
396
|
+
# @return [NpmNpmRepositoryResponse]
|
|
397
397
|
def partial_update(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
|
|
398
398
|
data, _status_code, _headers = partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts)
|
|
399
399
|
data
|
|
400
400
|
end
|
|
401
401
|
|
|
402
402
|
# Update a npm repository
|
|
403
|
-
#
|
|
403
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
404
404
|
# @param npm_npm_repository_href [String]
|
|
405
405
|
# @param patchednpm_npm_repository [PatchednpmNpmRepository]
|
|
406
406
|
# @param [Hash] opts the optional parameters
|
|
407
407
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
408
|
-
# @return [Array<(
|
|
408
|
+
# @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
|
|
409
409
|
def partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
|
|
410
410
|
if @api_client.config.debugging
|
|
411
411
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.partial_update ...'
|
|
@@ -442,7 +442,7 @@ module PulpNpmClient
|
|
|
442
442
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(patchednpm_npm_repository)
|
|
443
443
|
|
|
444
444
|
# return_type
|
|
445
|
-
return_type = opts[:debug_return_type] || '
|
|
445
|
+
return_type = opts[:debug_return_type] || 'NpmNpmRepositoryResponse'
|
|
446
446
|
|
|
447
447
|
# auth_names
|
|
448
448
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -768,24 +768,24 @@ module PulpNpmClient
|
|
|
768
768
|
end
|
|
769
769
|
|
|
770
770
|
# Update a npm repository
|
|
771
|
-
#
|
|
771
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
772
772
|
# @param npm_npm_repository_href [String]
|
|
773
773
|
# @param npm_npm_repository [NpmNpmRepository]
|
|
774
774
|
# @param [Hash] opts the optional parameters
|
|
775
775
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
776
|
-
# @return [
|
|
776
|
+
# @return [NpmNpmRepositoryResponse]
|
|
777
777
|
def update(npm_npm_repository_href, npm_npm_repository, opts = {})
|
|
778
778
|
data, _status_code, _headers = update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts)
|
|
779
779
|
data
|
|
780
780
|
end
|
|
781
781
|
|
|
782
782
|
# Update a npm repository
|
|
783
|
-
#
|
|
783
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
784
784
|
# @param npm_npm_repository_href [String]
|
|
785
785
|
# @param npm_npm_repository [NpmNpmRepository]
|
|
786
786
|
# @param [Hash] opts the optional parameters
|
|
787
787
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
788
|
-
# @return [Array<(
|
|
788
|
+
# @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
|
|
789
789
|
def update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts = {})
|
|
790
790
|
if @api_client.config.debugging
|
|
791
791
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.update ...'
|
|
@@ -822,7 +822,7 @@ module PulpNpmClient
|
|
|
822
822
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(npm_npm_repository)
|
|
823
823
|
|
|
824
824
|
# return_type
|
|
825
|
-
return_type = opts[:debug_return_type] || '
|
|
825
|
+
return_type = opts[:debug_return_type] || 'NpmNpmRepositoryResponse'
|
|
826
826
|
|
|
827
827
|
# auth_names
|
|
828
828
|
auth_names = opts[:debug_auth_names] || ['basicAuth']
|
|
@@ -99,12 +99,12 @@ describe 'DistributionsNpmApi' do
|
|
|
99
99
|
|
|
100
100
|
# unit tests for partial_update
|
|
101
101
|
# Update a npm distribution
|
|
102
|
-
#
|
|
102
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
103
103
|
# @param npm_npm_distribution_href
|
|
104
104
|
# @param patchednpm_npm_distribution
|
|
105
105
|
# @param [Hash] opts the optional parameters
|
|
106
106
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
107
|
-
# @return [
|
|
107
|
+
# @return [NpmNpmDistributionResponse]
|
|
108
108
|
describe 'partial_update test' do
|
|
109
109
|
it 'should work' do
|
|
110
110
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -156,12 +156,12 @@ describe 'DistributionsNpmApi' do
|
|
|
156
156
|
|
|
157
157
|
# unit tests for update
|
|
158
158
|
# Update a npm distribution
|
|
159
|
-
#
|
|
159
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
160
160
|
# @param npm_npm_distribution_href
|
|
161
161
|
# @param npm_npm_distribution
|
|
162
162
|
# @param [Hash] opts the optional parameters
|
|
163
163
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
164
|
-
# @return [
|
|
164
|
+
# @return [NpmNpmDistributionResponse]
|
|
165
165
|
describe 'update test' do
|
|
166
166
|
it 'should work' do
|
|
167
167
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -98,12 +98,12 @@ describe 'RemotesNpmApi' do
|
|
|
98
98
|
|
|
99
99
|
# unit tests for partial_update
|
|
100
100
|
# Update a npm remote
|
|
101
|
-
#
|
|
101
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
102
102
|
# @param npm_npm_remote_href
|
|
103
103
|
# @param patchednpm_npm_remote
|
|
104
104
|
# @param [Hash] opts the optional parameters
|
|
105
105
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
106
|
-
# @return [
|
|
106
|
+
# @return [NpmNpmRemoteResponse]
|
|
107
107
|
describe 'partial_update test' do
|
|
108
108
|
it 'should work' do
|
|
109
109
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -155,12 +155,12 @@ describe 'RemotesNpmApi' do
|
|
|
155
155
|
|
|
156
156
|
# unit tests for update
|
|
157
157
|
# Update a npm remote
|
|
158
|
-
#
|
|
158
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
159
159
|
# @param npm_npm_remote_href
|
|
160
160
|
# @param npm_npm_remote
|
|
161
161
|
# @param [Hash] opts the optional parameters
|
|
162
162
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
163
|
-
# @return [
|
|
163
|
+
# @return [NpmNpmRemoteResponse]
|
|
164
164
|
describe 'update test' do
|
|
165
165
|
it 'should work' do
|
|
166
166
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -116,12 +116,12 @@ describe 'RepositoriesNpmApi' do
|
|
|
116
116
|
|
|
117
117
|
# unit tests for partial_update
|
|
118
118
|
# Update a npm repository
|
|
119
|
-
#
|
|
119
|
+
# Update the entity partially and trigger an asynchronous task if necessary
|
|
120
120
|
# @param npm_npm_repository_href
|
|
121
121
|
# @param patchednpm_npm_repository
|
|
122
122
|
# @param [Hash] opts the optional parameters
|
|
123
123
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
124
|
-
# @return [
|
|
124
|
+
# @return [NpmNpmRepositoryResponse]
|
|
125
125
|
describe 'partial_update test' do
|
|
126
126
|
it 'should work' do
|
|
127
127
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -187,12 +187,12 @@ describe 'RepositoriesNpmApi' do
|
|
|
187
187
|
|
|
188
188
|
# unit tests for update
|
|
189
189
|
# Update a npm repository
|
|
190
|
-
#
|
|
190
|
+
# Update the entity and trigger an asynchronous task if necessary
|
|
191
191
|
# @param npm_npm_repository_href
|
|
192
192
|
# @param npm_npm_repository
|
|
193
193
|
# @param [Hash] opts the optional parameters
|
|
194
194
|
# @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
|
|
195
|
-
# @return [
|
|
195
|
+
# @return [NpmNpmRepositoryResponse]
|
|
196
196
|
describe 'update test' do
|
|
197
197
|
it 'should work' do
|
|
198
198
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_npm_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI-Generator
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -215,36 +215,36 @@ signing_key:
|
|
|
215
215
|
specification_version: 4
|
|
216
216
|
summary: Pulp 3 API Ruby Gem
|
|
217
217
|
test_files:
|
|
218
|
-
- spec/api/repositories_npm_api_spec.rb
|
|
219
218
|
- spec/api/content_packages_api_spec.rb
|
|
220
|
-
- spec/api/
|
|
221
|
-
- spec/api/repositories_npm_versions_api_spec.rb
|
|
219
|
+
- spec/api/repositories_npm_api_spec.rb
|
|
222
220
|
- spec/api/remotes_npm_api_spec.rb
|
|
223
|
-
- spec/
|
|
224
|
-
- spec/
|
|
225
|
-
- spec/models/
|
|
221
|
+
- spec/api/repositories_npm_versions_api_spec.rb
|
|
222
|
+
- spec/api/distributions_npm_api_spec.rb
|
|
223
|
+
- spec/models/unset_label_response_spec.rb
|
|
226
224
|
- spec/models/repository_version_response_spec.rb
|
|
227
|
-
- spec/models/async_operation_response_spec.rb
|
|
228
225
|
- spec/models/set_label_spec.rb
|
|
229
|
-
- spec/models/
|
|
230
|
-
- spec/models/paginatednpm_npm_repository_response_list_spec.rb
|
|
231
|
-
- spec/models/unset_label_response_spec.rb
|
|
232
|
-
- spec/models/policy_enum_spec.rb
|
|
233
|
-
- spec/models/content_summary_response_spec.rb
|
|
234
|
-
- spec/models/npm_npm_remote_spec.rb
|
|
235
|
-
- spec/models/npm_npm_remote_response_spec.rb
|
|
236
|
-
- spec/models/npm_npm_distribution_spec.rb
|
|
226
|
+
- spec/models/patchednpm_npm_repository_spec.rb
|
|
237
227
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
238
|
-
- spec/models/
|
|
228
|
+
- spec/models/repair_spec.rb
|
|
229
|
+
- spec/models/async_operation_response_spec.rb
|
|
239
230
|
- spec/models/npm_npm_repository_response_spec.rb
|
|
231
|
+
- spec/models/repository_add_remove_content_spec.rb
|
|
232
|
+
- spec/models/paginatednpm_npm_distribution_response_list_spec.rb
|
|
233
|
+
- spec/models/paginatednpm_package_response_list_spec.rb
|
|
240
234
|
- spec/models/repository_sync_url_spec.rb
|
|
241
|
-
- spec/models/
|
|
242
|
-
- spec/models/patchednpm_npm_remote_spec.rb
|
|
235
|
+
- spec/models/set_label_response_spec.rb
|
|
243
236
|
- spec/models/unset_label_spec.rb
|
|
244
|
-
- spec/models/
|
|
245
|
-
- spec/models/
|
|
246
|
-
- spec/models/
|
|
247
|
-
- spec/models/
|
|
237
|
+
- spec/models/npm_npm_distribution_spec.rb
|
|
238
|
+
- spec/models/npm_npm_remote_response_spec.rb
|
|
239
|
+
- spec/models/policy_enum_spec.rb
|
|
240
|
+
- spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb
|
|
248
241
|
- spec/models/paginatednpm_npm_remote_response_list_spec.rb
|
|
249
|
-
- spec/models/
|
|
242
|
+
- spec/models/patchednpm_npm_remote_spec.rb
|
|
243
|
+
- spec/models/content_summary_response_spec.rb
|
|
244
|
+
- spec/models/paginatednpm_npm_repository_response_list_spec.rb
|
|
245
|
+
- spec/models/npm_npm_remote_spec.rb
|
|
246
|
+
- spec/models/npm_npm_repository_spec.rb
|
|
247
|
+
- spec/models/npm_package_response_spec.rb
|
|
248
|
+
- spec/models/patchednpm_npm_distribution_spec.rb
|
|
249
|
+
- spec/models/npm_npm_distribution_response_spec.rb
|
|
250
250
|
- spec/spec_helper.rb
|