pulp_npm_client 0.1.0a1.dev01596504704 → 0.1.0a1.dev01596936620

Sign up to get free protection for your applications and to get access to all the features.

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: 95a65bbbf631db9b9b6fc990982f9bb4ba25d95597fee0833ffc129ab8d09eee
4
- data.tar.gz: 986cf6316ca9a0d41ab26079ab405483bec809218de00b6c4fff6ad918d315b2
3
+ metadata.gz: 17cb456a44ec27f9319456d461550076d98c90b1fc44e72506e7f2e4e95fcfa0
4
+ data.tar.gz: 82ee0dd6c7b875e46b05c584237b103354f482147b8f1744f8afcc4b7d1608e0
5
5
  SHA512:
6
- metadata.gz: 25f46b2bdec1690b16729f687c3fceac55fda4ee2f07e5f0d61eb1f4560e1cb75c7329d4e07a4523c05deff7c737848d38e2416537e95f2c56161d60e31c2393
7
- data.tar.gz: a67f30b483f972a30ed15af08daf90149db1f2e84c49b9f8c3c3e37ea93a54d6126b439d97eef5108ff994a93eaa7d370012ab9982e2662a52d9cdb6b546fa47
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.dev01596504704
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.dev01596504704.gem
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.dev01596504704.gem` to install the development dependencies)
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.dev01596504704'
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
+
@@ -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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpNpmClient
14
- VERSION = '0.1.0a1.dev01596504704'
14
+ VERSION = '0.1.0a1.dev01596936620'
15
15
  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.dev01596504704
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-04 00:00:00.000000000 Z
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/inline_response2003_spec.rb
212
- - spec/models/npm_npm_distribution_spec.rb
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/npm_npm_remote_response_spec.rb
220
- - spec/models/repository_version_spec.rb
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/repository_version_response_spec.rb
230
+ - spec/models/npm_npm_distribution_spec.rb
224
231
  - spec/models/content_summary_spec.rb
225
- - spec/models/npm_npm_distribution_response_spec.rb
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