pulp_npm_client 0.1.0a1.dev01598232723 → 0.1.0a1.dev01598664511
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.
Potentially problematic release.
This version of pulp_npm_client might be problematic. Click here for more details.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2fd4c00b94015837467c63c744bdc65b83b6e619357a609e4702f1cd376e20d
|
4
|
+
data.tar.gz: 5cbe69a905a9a489798e507151aceb3835349abef16f021508697a97eaaec695
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d53af22b96b01003139ada9546d21cf583cf7431dbb9faf6654b4dbdb6c15b9b397e6f243aa4ff41aa7626fc7cd3d86449109fc289fe7010edb04732dcec992
|
7
|
+
data.tar.gz: 5bec36aabd5da2425e6fe18e2269d335babdb91a00a892a8918215b648a5f8863da02740db5e5d94d6868f56469dfa1ac11dca76f10e2ea18364f97b7eaccde8
|
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.1.0a1.
|
10
|
+
- Package version: 0.1.0a1.dev01598664511
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build pulp_npm_client.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./pulp_npm_client-0.1.0a1.
|
27
|
+
gem install ./pulp_npm_client-0.1.0a1.dev01598664511.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./pulp_npm_client-0.1.0a1.
|
30
|
+
(for development, run `gem install --dev ./pulp_npm_client-0.1.0a1.dev01598664511.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'pulp_npm_client', '~> 0.1.0a1.
|
36
|
+
gem 'pulp_npm_client', '~> 0.1.0a1.dev01598664511'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -99,7 +99,7 @@ Class | Method | HTTP request | Description
|
|
99
99
|
*PulpNpmClient::DistributionsNpmApi* | [**partial_update**](docs/DistributionsNpmApi.md#partial_update) | **PATCH** {npm_npm_distribution_href} | Update a npm distribution
|
100
100
|
*PulpNpmClient::DistributionsNpmApi* | [**read**](docs/DistributionsNpmApi.md#read) | **GET** {npm_npm_distribution_href} | Inspect a npm distribution
|
101
101
|
*PulpNpmClient::DistributionsNpmApi* | [**update**](docs/DistributionsNpmApi.md#update) | **PUT** {npm_npm_distribution_href} | Update a npm distribution
|
102
|
-
*PulpNpmClient::PulpNpmPackagesApi* | [**
|
102
|
+
*PulpNpmClient::PulpNpmPackagesApi* | [**get**](docs/PulpNpmPackagesApi.md#get) | **GET** /pulp_npm/packages/{name}/ |
|
103
103
|
*PulpNpmClient::RemotesNpmApi* | [**create**](docs/RemotesNpmApi.md#create) | **POST** /pulp/api/v3/remotes/npm/npm/ | Create a npm remote
|
104
104
|
*PulpNpmClient::RemotesNpmApi* | [**delete**](docs/RemotesNpmApi.md#delete) | **DELETE** {npm_npm_remote_href} | Delete a npm remote
|
105
105
|
*PulpNpmClient::RemotesNpmApi* | [**list**](docs/RemotesNpmApi.md#list) | **GET** /pulp/api/v3/remotes/npm/npm/ | List npm remotes
|
data/docs/PulpNpmPackagesApi.md
CHANGED
@@ -4,13 +4,13 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**
|
7
|
+
[**get**](PulpNpmPackagesApi.md#get) | **GET** /pulp_npm/packages/{name}/ |
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
##
|
11
|
+
## get
|
12
12
|
|
13
|
-
>
|
13
|
+
> get(name, opts)
|
14
14
|
|
15
15
|
|
16
16
|
|
@@ -30,9 +30,9 @@ opts = {
|
|
30
30
|
}
|
31
31
|
|
32
32
|
begin
|
33
|
-
api_instance.
|
33
|
+
api_instance.get(name, opts)
|
34
34
|
rescue PulpNpmClient::ApiError => e
|
35
|
-
puts "Exception when calling PulpNpmPackagesApi->
|
35
|
+
puts "Exception when calling PulpNpmPackagesApi->get: #{e}"
|
36
36
|
end
|
37
37
|
```
|
38
38
|
|
@@ -25,8 +25,8 @@ module PulpNpmClient
|
|
25
25
|
# @option opts [String] :fields A list of fields to include in the response.
|
26
26
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
27
27
|
# @return [nil]
|
28
|
-
def
|
29
|
-
|
28
|
+
def get(name, opts = {})
|
29
|
+
get_with_http_info(name, opts)
|
30
30
|
nil
|
31
31
|
end
|
32
32
|
|
@@ -36,13 +36,13 @@ module PulpNpmClient
|
|
36
36
|
# @option opts [String] :fields A list of fields to include in the response.
|
37
37
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
38
38
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
39
|
-
def
|
39
|
+
def get_with_http_info(name, opts = {})
|
40
40
|
if @api_client.config.debugging
|
41
|
-
@api_client.config.logger.debug 'Calling API: PulpNpmPackagesApi.
|
41
|
+
@api_client.config.logger.debug 'Calling API: PulpNpmPackagesApi.get ...'
|
42
42
|
end
|
43
43
|
# verify the required parameter 'name' is set
|
44
44
|
if @api_client.config.client_side_validation && name.nil?
|
45
|
-
fail ArgumentError, "Missing the required parameter 'name' when calling PulpNpmPackagesApi.
|
45
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PulpNpmPackagesApi.get"
|
46
46
|
end
|
47
47
|
# resource path
|
48
48
|
local_var_path = '/pulp_npm/packages/{name}/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/'))
|
@@ -78,7 +78,7 @@ module PulpNpmClient
|
|
78
78
|
|
79
79
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
80
80
|
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called: PulpNpmPackagesApi#
|
81
|
+
@api_client.config.logger.debug "API called: PulpNpmPackagesApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
@@ -32,14 +32,14 @@ describe 'PulpNpmPackagesApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
# unit tests for
|
35
|
+
# unit tests for get
|
36
36
|
# Return a published package.
|
37
37
|
# @param name
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @option opts [String] :fields A list of fields to include in the response.
|
40
40
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
41
41
|
# @return [nil]
|
42
|
-
describe '
|
42
|
+
describe 'get test' do
|
43
43
|
it 'should work' do
|
44
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
45
|
end
|
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.1.0a1.
|
4
|
+
version: 0.1.0a1.dev01598664511
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|