pulp_npm_client 0.1.0a1.dev01596504704 → 0.1.0a1.dev01596936620
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 +4 -4
- data/README.md +5 -4
- data/docs/PulpNpmPackagesApi.md +60 -0
- data/lib/pulp_npm_client.rb +1 -0
- data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +86 -0
- data/lib/pulp_npm_client/version.rb +1 -1
- data/spec/api/pulp_npm_packages_api_spec.rb +48 -0
- metadata +25 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17cb456a44ec27f9319456d461550076d98c90b1fc44e72506e7f2e4e95fcfa0
|
4
|
+
data.tar.gz: 82ee0dd6c7b875e46b05c584237b103354f482147b8f1744f8afcc4b7d1608e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4a5667fc9b968bdaef536dd435fa6951705380fc236e936e26a156a6c94016c1a8a72ef3f30403570f1a1be9ef7fe9ca48627d19f0dfffaf781b41eda162d98
|
7
|
+
data.tar.gz: faf745cb7d99a2e9da3a0c122c542f6d983c47e4fc809875dc00ccbe77c7b65b17d079504abd77c963ad224f4de5e8981ef323205c86ffffa936bf388fa3f31a
|
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.dev01596936620
|
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.dev01596936620.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.dev01596936620.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.dev01596936620'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -99,6 +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* | [**read**](docs/PulpNpmPackagesApi.md#read) | **GET** /pulp_npm/packages/{name}/ |
|
102
103
|
*PulpNpmClient::RemotesNpmApi* | [**create**](docs/RemotesNpmApi.md#create) | **POST** /pulp/api/v3/remotes/npm/npm/ | Create a npm remote
|
103
104
|
*PulpNpmClient::RemotesNpmApi* | [**delete**](docs/RemotesNpmApi.md#delete) | **DELETE** {npm_npm_remote_href} | Delete a npm remote
|
104
105
|
*PulpNpmClient::RemotesNpmApi* | [**list**](docs/RemotesNpmApi.md#list) | **GET** /pulp/api/v3/remotes/npm/npm/ | List npm remotes
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# PulpNpmClient::PulpNpmPackagesApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://pulp*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**read**](PulpNpmPackagesApi.md#read) | **GET** /pulp_npm/packages/{name}/ |
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
## read
|
12
|
+
|
13
|
+
> read(name, opts)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
Return a published package.
|
18
|
+
|
19
|
+
### Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
# load the gem
|
23
|
+
require 'pulp_npm_client'
|
24
|
+
|
25
|
+
api_instance = PulpNpmClient::PulpNpmPackagesApi.new
|
26
|
+
name = 'name_example' # String |
|
27
|
+
opts = {
|
28
|
+
fields: 'fields_example', # String | A list of fields to include in the response.
|
29
|
+
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
30
|
+
}
|
31
|
+
|
32
|
+
begin
|
33
|
+
api_instance.read(name, opts)
|
34
|
+
rescue PulpNpmClient::ApiError => e
|
35
|
+
puts "Exception when calling PulpNpmPackagesApi->read: #{e}"
|
36
|
+
end
|
37
|
+
```
|
38
|
+
|
39
|
+
### Parameters
|
40
|
+
|
41
|
+
|
42
|
+
Name | Type | Description | Notes
|
43
|
+
------------- | ------------- | ------------- | -------------
|
44
|
+
**name** | **String**| |
|
45
|
+
**fields** | **String**| A list of fields to include in the response. | [optional]
|
46
|
+
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
47
|
+
|
48
|
+
### Return type
|
49
|
+
|
50
|
+
nil (empty response body)
|
51
|
+
|
52
|
+
### Authorization
|
53
|
+
|
54
|
+
No authorization required
|
55
|
+
|
56
|
+
### HTTP request headers
|
57
|
+
|
58
|
+
- **Content-Type**: Not defined
|
59
|
+
- **Accept**: Not defined
|
60
|
+
|
data/lib/pulp_npm_client.rb
CHANGED
@@ -45,6 +45,7 @@ require 'pulp_npm_client/models/repository_version_response'
|
|
45
45
|
# APIs
|
46
46
|
require 'pulp_npm_client/api/content_packages_api'
|
47
47
|
require 'pulp_npm_client/api/distributions_npm_api'
|
48
|
+
require 'pulp_npm_client/api/pulp_npm_packages_api'
|
48
49
|
require 'pulp_npm_client/api/remotes_npm_api'
|
49
50
|
require 'pulp_npm_client/api/repositories_npm_api'
|
50
51
|
require 'pulp_npm_client/api/repositories_npm_versions_api'
|
@@ -0,0 +1,86 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module PulpNpmClient
|
16
|
+
class PulpNpmPackagesApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Return a published package.
|
23
|
+
# @param name [String]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
26
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
27
|
+
# @return [nil]
|
28
|
+
def read(name, opts = {})
|
29
|
+
read_with_http_info(name, opts)
|
30
|
+
nil
|
31
|
+
end
|
32
|
+
|
33
|
+
# Return a published package.
|
34
|
+
# @param name [String]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
37
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
38
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
39
|
+
def read_with_http_info(name, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: PulpNpmPackagesApi.read ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'name' is set
|
44
|
+
if @api_client.config.client_side_validation && name.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling PulpNpmPackagesApi.read"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/pulp_npm/packages/{name}/'.sub('{' + 'name' + '}', CGI.escape(name.to_s).gsub('%2F', '/'))
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
53
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body]
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type]
|
66
|
+
|
67
|
+
# auth_names
|
68
|
+
auth_names = opts[:auth_names] || []
|
69
|
+
|
70
|
+
new_options = opts.merge(
|
71
|
+
:header_params => header_params,
|
72
|
+
:query_params => query_params,
|
73
|
+
:form_params => form_params,
|
74
|
+
:body => post_body,
|
75
|
+
:auth_names => auth_names,
|
76
|
+
:return_type => return_type
|
77
|
+
)
|
78
|
+
|
79
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: PulpNpmPackagesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for PulpNpmClient::PulpNpmPackagesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PulpNpmPackagesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = PulpNpmClient::PulpNpmPackagesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PulpNpmPackagesApi' do
|
30
|
+
it 'should create an instance of PulpNpmPackagesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(PulpNpmClient::PulpNpmPackagesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for read
|
36
|
+
# Return a published package.
|
37
|
+
# @param name
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
40
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
41
|
+
# @return [nil]
|
42
|
+
describe 'read test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
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.dev01596936620
|
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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -96,6 +96,7 @@ files:
|
|
96
96
|
- docs/PatchednpmNpmRemote.md
|
97
97
|
- docs/PatchednpmNpmRepository.md
|
98
98
|
- docs/PolicyEnum.md
|
99
|
+
- docs/PulpNpmPackagesApi.md
|
99
100
|
- docs/RemotesNpmApi.md
|
100
101
|
- docs/RepositoriesNpmApi.md
|
101
102
|
- docs/RepositoriesNpmVersionsApi.md
|
@@ -107,6 +108,7 @@ files:
|
|
107
108
|
- lib/pulp_npm_client.rb
|
108
109
|
- lib/pulp_npm_client/api/content_packages_api.rb
|
109
110
|
- lib/pulp_npm_client/api/distributions_npm_api.rb
|
111
|
+
- lib/pulp_npm_client/api/pulp_npm_packages_api.rb
|
110
112
|
- lib/pulp_npm_client/api/remotes_npm_api.rb
|
111
113
|
- lib/pulp_npm_client/api/repositories_npm_api.rb
|
112
114
|
- lib/pulp_npm_client/api/repositories_npm_versions_api.rb
|
@@ -141,6 +143,7 @@ files:
|
|
141
143
|
- pulp_npm_client.gemspec
|
142
144
|
- spec/api/content_packages_api_spec.rb
|
143
145
|
- spec/api/distributions_npm_api_spec.rb
|
146
|
+
- spec/api/pulp_npm_packages_api_spec.rb
|
144
147
|
- spec/api/remotes_npm_api_spec.rb
|
145
148
|
- spec/api/repositories_npm_api_spec.rb
|
146
149
|
- spec/api/repositories_npm_versions_api_spec.rb
|
@@ -195,35 +198,36 @@ signing_key:
|
|
195
198
|
specification_version: 4
|
196
199
|
summary: Pulp 3 API Ruby Gem
|
197
200
|
test_files:
|
198
|
-
- spec/api/content_packages_api_spec.rb
|
199
201
|
- spec/api/repositories_npm_api_spec.rb
|
202
|
+
- spec/api/pulp_npm_packages_api_spec.rb
|
200
203
|
- spec/api/remotes_npm_api_spec.rb
|
201
|
-
- spec/api/repositories_npm_versions_api_spec.rb
|
202
204
|
- spec/api/distributions_npm_api_spec.rb
|
205
|
+
- spec/api/content_packages_api_spec.rb
|
206
|
+
- spec/api/repositories_npm_versions_api_spec.rb
|
203
207
|
- spec/api_client_spec.rb
|
204
208
|
- spec/configuration_spec.rb
|
205
|
-
- spec/models/npm_package_response_spec.rb
|
206
|
-
- spec/models/npm_npm_repository_spec.rb
|
207
|
-
- spec/models/npm_package_spec.rb
|
208
|
-
- spec/models/patchednpm_npm_distribution_spec.rb
|
209
|
-
- spec/models/async_operation_response_spec.rb
|
210
209
|
- spec/models/npm_npm_repository_response_spec.rb
|
211
|
-
- spec/models/
|
212
|
-
- spec/models/
|
213
|
-
- spec/models/inline_response2004_spec.rb
|
214
|
-
- spec/models/inline_response200_spec.rb
|
215
|
-
- spec/models/repository_add_remove_content_spec.rb
|
210
|
+
- spec/models/patchednpm_npm_distribution_spec.rb
|
211
|
+
- spec/models/npm_npm_remote_response_spec.rb
|
216
212
|
- spec/models/repository_sync_url_spec.rb
|
213
|
+
- spec/models/inline_response2001_spec.rb
|
214
|
+
- spec/models/repository_version_response_spec.rb
|
217
215
|
- spec/models/patchednpm_npm_remote_spec.rb
|
216
|
+
- spec/models/npm_package_spec.rb
|
217
|
+
- spec/models/npm_npm_repository_spec.rb
|
218
|
+
- spec/models/content_summary_response_spec.rb
|
219
|
+
- spec/models/async_operation_response_spec.rb
|
218
220
|
- spec/models/patchednpm_npm_repository_spec.rb
|
219
|
-
- spec/models/
|
220
|
-
- spec/models/
|
221
|
+
- spec/models/inline_response200_spec.rb
|
222
|
+
- spec/models/npm_package_response_spec.rb
|
223
|
+
- spec/models/inline_response2004_spec.rb
|
224
|
+
- spec/models/npm_npm_remote_spec.rb
|
225
|
+
- spec/models/repository_add_remove_content_spec.rb
|
221
226
|
- spec/models/policy_enum_spec.rb
|
227
|
+
- spec/models/inline_response2003_spec.rb
|
228
|
+
- spec/models/npm_npm_distribution_response_spec.rb
|
222
229
|
- spec/models/inline_response2002_spec.rb
|
223
|
-
- spec/models/
|
230
|
+
- spec/models/npm_npm_distribution_spec.rb
|
224
231
|
- spec/models/content_summary_spec.rb
|
225
|
-
- spec/models/
|
226
|
-
- spec/models/npm_npm_remote_spec.rb
|
227
|
-
- spec/models/content_summary_response_spec.rb
|
228
|
-
- spec/models/inline_response2001_spec.rb
|
232
|
+
- spec/models/repository_version_spec.rb
|
229
233
|
- spec/spec_helper.rb
|