pulp_npm_client 0.1.0a1.dev01595899927 → 0.1.0a1.dev01596331690
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 +4 -4
- data/README.md +32 -31
- data/docs/ContentPackagesApi.md +13 -10
- data/docs/DistributionsNpmApi.md +34 -28
- data/docs/RemotesNpmApi.md +34 -28
- data/docs/RepositoriesNpmApi.md +44 -38
- data/docs/RepositoriesNpmVersionsApi.md +26 -23
- data/lib/pulp_npm_client/api/content_packages_api.rb +15 -9
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +48 -36
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +48 -36
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +66 -54
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +42 -36
- data/lib/pulp_npm_client/version.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +4 -1
- data/spec/api/distributions_npm_api_spec.rb +10 -4
- data/spec/api/remotes_npm_api_spec.rb +10 -4
- data/spec/api/repositories_npm_api_spec.rb +12 -6
- data/spec/api/repositories_npm_versions_api_spec.rb +7 -4
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a12954e7ae4a5d2f6f0da36fae6de2e84027fca44ed44dd574231c39c98865e
|
4
|
+
data.tar.gz: 82439c52e53a3599e9c1f9b88b09a8776b1392cd69de07d536eaa27d3a25a56f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14a4480dc7faddbe6f9b88181ff36dca9ddad4458f76fed5d85aaa1d59a5257e17bc30a1fc26686934984b265d1b664c78c6d3da904876d0d26d188050f6140d
|
7
|
+
data.tar.gz: 6e70d446a9840b41f010f4fe796faf8357d08c0cd58a09eb009be20ff565075ec1d5f9100b8740a46bc04e26f337bbc41b09880651a66ddce9dde994b35ed203
|
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.dev01596331690
|
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.dev01596331690.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.dev01596331690.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.dev01596331690'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -75,6 +75,7 @@ opts = {
|
|
75
75
|
}
|
76
76
|
|
77
77
|
begin
|
78
|
+
#Create a package
|
78
79
|
result = api_instance.create(relative_path, name, version, opts)
|
79
80
|
p result
|
80
81
|
rescue PulpNpmClient::ApiError => e
|
@@ -89,33 +90,33 @@ All URIs are relative to *http://pulp*
|
|
89
90
|
|
90
91
|
Class | Method | HTTP request | Description
|
91
92
|
------------ | ------------- | ------------- | -------------
|
92
|
-
*PulpNpmClient::ContentPackagesApi* | [**create**](docs/ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/npm/packages/ |
|
93
|
-
*PulpNpmClient::ContentPackagesApi* | [**list**](docs/ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/npm/packages/ |
|
94
|
-
*PulpNpmClient::ContentPackagesApi* | [**read**](docs/ContentPackagesApi.md#read) | **GET** {
|
95
|
-
*PulpNpmClient::DistributionsNpmApi* | [**create**](docs/DistributionsNpmApi.md#create) | **POST** /pulp/api/v3/distributions/npm/npm/ |
|
96
|
-
*PulpNpmClient::DistributionsNpmApi* | [**delete**](docs/DistributionsNpmApi.md#delete) | **DELETE** {
|
97
|
-
*PulpNpmClient::DistributionsNpmApi* | [**list**](docs/DistributionsNpmApi.md#list) | **GET** /pulp/api/v3/distributions/npm/npm/ |
|
98
|
-
*PulpNpmClient::DistributionsNpmApi* | [**partial_update**](docs/DistributionsNpmApi.md#partial_update) | **PATCH** {
|
99
|
-
*PulpNpmClient::DistributionsNpmApi* | [**read**](docs/DistributionsNpmApi.md#read) | **GET** {
|
100
|
-
*PulpNpmClient::DistributionsNpmApi* | [**update**](docs/DistributionsNpmApi.md#update) | **PUT** {
|
101
|
-
*PulpNpmClient::RemotesNpmApi* | [**create**](docs/RemotesNpmApi.md#create) | **POST** /pulp/api/v3/remotes/npm/npm/ |
|
102
|
-
*PulpNpmClient::RemotesNpmApi* | [**delete**](docs/RemotesNpmApi.md#delete) | **DELETE** {
|
103
|
-
*PulpNpmClient::RemotesNpmApi* | [**list**](docs/RemotesNpmApi.md#list) | **GET** /pulp/api/v3/remotes/npm/npm/ |
|
104
|
-
*PulpNpmClient::RemotesNpmApi* | [**partial_update**](docs/RemotesNpmApi.md#partial_update) | **PATCH** {
|
105
|
-
*PulpNpmClient::RemotesNpmApi* | [**read**](docs/RemotesNpmApi.md#read) | **GET** {
|
106
|
-
*PulpNpmClient::RemotesNpmApi* | [**update**](docs/RemotesNpmApi.md#update) | **PUT** {
|
107
|
-
*PulpNpmClient::RepositoriesNpmApi* | [**create**](docs/RepositoriesNpmApi.md#create) | **POST** /pulp/api/v3/repositories/npm/npm/ |
|
108
|
-
*PulpNpmClient::RepositoriesNpmApi* | [**delete**](docs/RepositoriesNpmApi.md#delete) | **DELETE** {
|
109
|
-
*PulpNpmClient::RepositoriesNpmApi* | [**list**](docs/RepositoriesNpmApi.md#list) | **GET** /pulp/api/v3/repositories/npm/npm/ |
|
110
|
-
*PulpNpmClient::RepositoriesNpmApi* | [**modify**](docs/RepositoriesNpmApi.md#modify) | **POST** {
|
111
|
-
*PulpNpmClient::RepositoriesNpmApi* | [**partial_update**](docs/RepositoriesNpmApi.md#partial_update) | **PATCH** {
|
112
|
-
*PulpNpmClient::RepositoriesNpmApi* | [**read**](docs/RepositoriesNpmApi.md#read) | **GET** {
|
113
|
-
*PulpNpmClient::RepositoriesNpmApi* | [**sync**](docs/RepositoriesNpmApi.md#sync) | **POST** {
|
114
|
-
*PulpNpmClient::RepositoriesNpmApi* | [**update**](docs/RepositoriesNpmApi.md#update) | **PUT** {
|
115
|
-
*PulpNpmClient::RepositoriesNpmVersionsApi* | [**delete**](docs/RepositoriesNpmVersionsApi.md#delete) | **DELETE** {
|
116
|
-
*PulpNpmClient::RepositoriesNpmVersionsApi* | [**list**](docs/RepositoriesNpmVersionsApi.md#list) | **GET** {
|
117
|
-
*PulpNpmClient::RepositoriesNpmVersionsApi* | [**read**](docs/RepositoriesNpmVersionsApi.md#read) | **GET** {
|
118
|
-
*PulpNpmClient::RepositoriesNpmVersionsApi* | [**repair**](docs/RepositoriesNpmVersionsApi.md#repair) | **POST** {
|
93
|
+
*PulpNpmClient::ContentPackagesApi* | [**create**](docs/ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/npm/packages/ | Create a package
|
94
|
+
*PulpNpmClient::ContentPackagesApi* | [**list**](docs/ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/npm/packages/ | List packages
|
95
|
+
*PulpNpmClient::ContentPackagesApi* | [**read**](docs/ContentPackagesApi.md#read) | **GET** {npm_package_href} | Inspect a package
|
96
|
+
*PulpNpmClient::DistributionsNpmApi* | [**create**](docs/DistributionsNpmApi.md#create) | **POST** /pulp/api/v3/distributions/npm/npm/ | Create a npm distribution
|
97
|
+
*PulpNpmClient::DistributionsNpmApi* | [**delete**](docs/DistributionsNpmApi.md#delete) | **DELETE** {npm_npm_distribution_href} | Delete a npm distribution
|
98
|
+
*PulpNpmClient::DistributionsNpmApi* | [**list**](docs/DistributionsNpmApi.md#list) | **GET** /pulp/api/v3/distributions/npm/npm/ | List npm distributions
|
99
|
+
*PulpNpmClient::DistributionsNpmApi* | [**partial_update**](docs/DistributionsNpmApi.md#partial_update) | **PATCH** {npm_npm_distribution_href} | Update a npm distribution
|
100
|
+
*PulpNpmClient::DistributionsNpmApi* | [**read**](docs/DistributionsNpmApi.md#read) | **GET** {npm_npm_distribution_href} | Inspect a npm distribution
|
101
|
+
*PulpNpmClient::DistributionsNpmApi* | [**update**](docs/DistributionsNpmApi.md#update) | **PUT** {npm_npm_distribution_href} | Update a npm distribution
|
102
|
+
*PulpNpmClient::RemotesNpmApi* | [**create**](docs/RemotesNpmApi.md#create) | **POST** /pulp/api/v3/remotes/npm/npm/ | Create a npm remote
|
103
|
+
*PulpNpmClient::RemotesNpmApi* | [**delete**](docs/RemotesNpmApi.md#delete) | **DELETE** {npm_npm_remote_href} | Delete a npm remote
|
104
|
+
*PulpNpmClient::RemotesNpmApi* | [**list**](docs/RemotesNpmApi.md#list) | **GET** /pulp/api/v3/remotes/npm/npm/ | List npm remotes
|
105
|
+
*PulpNpmClient::RemotesNpmApi* | [**partial_update**](docs/RemotesNpmApi.md#partial_update) | **PATCH** {npm_npm_remote_href} | Update a npm remote
|
106
|
+
*PulpNpmClient::RemotesNpmApi* | [**read**](docs/RemotesNpmApi.md#read) | **GET** {npm_npm_remote_href} | Inspect a npm remote
|
107
|
+
*PulpNpmClient::RemotesNpmApi* | [**update**](docs/RemotesNpmApi.md#update) | **PUT** {npm_npm_remote_href} | Update a npm remote
|
108
|
+
*PulpNpmClient::RepositoriesNpmApi* | [**create**](docs/RepositoriesNpmApi.md#create) | **POST** /pulp/api/v3/repositories/npm/npm/ | Create a npm repository
|
109
|
+
*PulpNpmClient::RepositoriesNpmApi* | [**delete**](docs/RepositoriesNpmApi.md#delete) | **DELETE** {npm_npm_repository_href} | Delete a npm repository
|
110
|
+
*PulpNpmClient::RepositoriesNpmApi* | [**list**](docs/RepositoriesNpmApi.md#list) | **GET** /pulp/api/v3/repositories/npm/npm/ | List npm repositorys
|
111
|
+
*PulpNpmClient::RepositoriesNpmApi* | [**modify**](docs/RepositoriesNpmApi.md#modify) | **POST** {npm_npm_repository_href}modify/ | Modify Repository Content
|
112
|
+
*PulpNpmClient::RepositoriesNpmApi* | [**partial_update**](docs/RepositoriesNpmApi.md#partial_update) | **PATCH** {npm_npm_repository_href} | Update a npm repository
|
113
|
+
*PulpNpmClient::RepositoriesNpmApi* | [**read**](docs/RepositoriesNpmApi.md#read) | **GET** {npm_npm_repository_href} | Inspect a npm repository
|
114
|
+
*PulpNpmClient::RepositoriesNpmApi* | [**sync**](docs/RepositoriesNpmApi.md#sync) | **POST** {npm_npm_repository_href}sync/ | Sync from remote
|
115
|
+
*PulpNpmClient::RepositoriesNpmApi* | [**update**](docs/RepositoriesNpmApi.md#update) | **PUT** {npm_npm_repository_href} | Update a npm repository
|
116
|
+
*PulpNpmClient::RepositoriesNpmVersionsApi* | [**delete**](docs/RepositoriesNpmVersionsApi.md#delete) | **DELETE** {npm_npm_repository_version_href} | Delete a repository version
|
117
|
+
*PulpNpmClient::RepositoriesNpmVersionsApi* | [**list**](docs/RepositoriesNpmVersionsApi.md#list) | **GET** {npm_npm_repository_href}versions/ | List repository versions
|
118
|
+
*PulpNpmClient::RepositoriesNpmVersionsApi* | [**read**](docs/RepositoriesNpmVersionsApi.md#read) | **GET** {npm_npm_repository_version_href} | Inspect a repository version
|
119
|
+
*PulpNpmClient::RepositoriesNpmVersionsApi* | [**repair**](docs/RepositoriesNpmVersionsApi.md#repair) | **POST** {npm_npm_repository_version_href}repair/ |
|
119
120
|
|
120
121
|
|
121
122
|
## Documentation for Models
|
data/docs/ContentPackagesApi.md
CHANGED
@@ -4,9 +4,9 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/npm/packages/ |
|
8
|
-
[**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/npm/packages/ |
|
9
|
-
[**read**](ContentPackagesApi.md#read) | **GET** {
|
7
|
+
[**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/npm/packages/ | Create a package
|
8
|
+
[**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/npm/packages/ | List packages
|
9
|
+
[**read**](ContentPackagesApi.md#read) | **GET** {npm_package_href} | Inspect a package
|
10
10
|
|
11
11
|
|
12
12
|
|
@@ -14,7 +14,7 @@ Method | HTTP request | Description
|
|
14
14
|
|
15
15
|
> NpmPackageResponse create(relative_path, name, version, opts)
|
16
16
|
|
17
|
-
|
17
|
+
Create a package
|
18
18
|
|
19
19
|
Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
|
20
20
|
|
@@ -41,6 +41,7 @@ opts = {
|
|
41
41
|
}
|
42
42
|
|
43
43
|
begin
|
44
|
+
#Create a package
|
44
45
|
result = api_instance.create(relative_path, name, version, opts)
|
45
46
|
p result
|
46
47
|
rescue PulpNpmClient::ApiError => e
|
@@ -78,7 +79,7 @@ Name | Type | Description | Notes
|
|
78
79
|
|
79
80
|
> InlineResponse200 list(opts)
|
80
81
|
|
81
|
-
|
82
|
+
List packages
|
82
83
|
|
83
84
|
A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
|
84
85
|
|
@@ -109,6 +110,7 @@ opts = {
|
|
109
110
|
}
|
110
111
|
|
111
112
|
begin
|
113
|
+
#List packages
|
112
114
|
result = api_instance.list(opts)
|
113
115
|
p result
|
114
116
|
rescue PulpNpmClient::ApiError => e
|
@@ -148,9 +150,9 @@ Name | Type | Description | Notes
|
|
148
150
|
|
149
151
|
## read
|
150
152
|
|
151
|
-
> NpmPackageResponse read(
|
152
|
-
|
153
|
+
> NpmPackageResponse read(npm_package_href, opts)
|
153
154
|
|
155
|
+
Inspect a package
|
154
156
|
|
155
157
|
A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
|
156
158
|
|
@@ -167,14 +169,15 @@ PulpNpmClient.configure do |config|
|
|
167
169
|
end
|
168
170
|
|
169
171
|
api_instance = PulpNpmClient::ContentPackagesApi.new
|
170
|
-
|
172
|
+
npm_package_href = 'npm_package_href_example' # String |
|
171
173
|
opts = {
|
172
174
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
173
175
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
174
176
|
}
|
175
177
|
|
176
178
|
begin
|
177
|
-
|
179
|
+
#Inspect a package
|
180
|
+
result = api_instance.read(npm_package_href, opts)
|
178
181
|
p result
|
179
182
|
rescue PulpNpmClient::ApiError => e
|
180
183
|
puts "Exception when calling ContentPackagesApi->read: #{e}"
|
@@ -186,7 +189,7 @@ end
|
|
186
189
|
|
187
190
|
Name | Type | Description | Notes
|
188
191
|
------------- | ------------- | ------------- | -------------
|
189
|
-
**
|
192
|
+
**npm_package_href** | **String**| |
|
190
193
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
191
194
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
192
195
|
|
data/docs/DistributionsNpmApi.md
CHANGED
@@ -4,12 +4,12 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**create**](DistributionsNpmApi.md#create) | **POST** /pulp/api/v3/distributions/npm/npm/ |
|
8
|
-
[**delete**](DistributionsNpmApi.md#delete) | **DELETE** {
|
9
|
-
[**list**](DistributionsNpmApi.md#list) | **GET** /pulp/api/v3/distributions/npm/npm/ |
|
10
|
-
[**partial_update**](DistributionsNpmApi.md#partial_update) | **PATCH** {
|
11
|
-
[**read**](DistributionsNpmApi.md#read) | **GET** {
|
12
|
-
[**update**](DistributionsNpmApi.md#update) | **PUT** {
|
7
|
+
[**create**](DistributionsNpmApi.md#create) | **POST** /pulp/api/v3/distributions/npm/npm/ | Create a npm distribution
|
8
|
+
[**delete**](DistributionsNpmApi.md#delete) | **DELETE** {npm_npm_distribution_href} | Delete a npm distribution
|
9
|
+
[**list**](DistributionsNpmApi.md#list) | **GET** /pulp/api/v3/distributions/npm/npm/ | List npm distributions
|
10
|
+
[**partial_update**](DistributionsNpmApi.md#partial_update) | **PATCH** {npm_npm_distribution_href} | Update a npm distribution
|
11
|
+
[**read**](DistributionsNpmApi.md#read) | **GET** {npm_npm_distribution_href} | Inspect a npm distribution
|
12
|
+
[**update**](DistributionsNpmApi.md#update) | **PUT** {npm_npm_distribution_href} | Update a npm distribution
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|
17
17
|
|
18
18
|
> AsyncOperationResponse create(npm_npm_distribution)
|
19
19
|
|
20
|
-
|
20
|
+
Create a npm distribution
|
21
21
|
|
22
22
|
Trigger an asynchronous create task
|
23
23
|
|
@@ -37,6 +37,7 @@ api_instance = PulpNpmClient::DistributionsNpmApi.new
|
|
37
37
|
npm_npm_distribution = PulpNpmClient::NpmNpmDistribution.new # NpmNpmDistribution |
|
38
38
|
|
39
39
|
begin
|
40
|
+
#Create a npm distribution
|
40
41
|
result = api_instance.create(npm_npm_distribution)
|
41
42
|
p result
|
42
43
|
rescue PulpNpmClient::ApiError => e
|
@@ -67,9 +68,9 @@ Name | Type | Description | Notes
|
|
67
68
|
|
68
69
|
## delete
|
69
70
|
|
70
|
-
> AsyncOperationResponse delete(
|
71
|
-
|
71
|
+
> AsyncOperationResponse delete(npm_npm_distribution_href, opts)
|
72
72
|
|
73
|
+
Delete a npm distribution
|
73
74
|
|
74
75
|
Trigger an asynchronous delete task
|
75
76
|
|
@@ -86,7 +87,7 @@ PulpNpmClient.configure do |config|
|
|
86
87
|
end
|
87
88
|
|
88
89
|
api_instance = PulpNpmClient::DistributionsNpmApi.new
|
89
|
-
|
90
|
+
npm_npm_distribution_href = 'npm_npm_distribution_href_example' # String |
|
90
91
|
opts = {
|
91
92
|
base_path: 'base_path_example', # String | base_path
|
92
93
|
base_path__contains: 'base_path__contains_example', # String | base_path__contains
|
@@ -98,7 +99,8 @@ opts = {
|
|
98
99
|
}
|
99
100
|
|
100
101
|
begin
|
101
|
-
|
102
|
+
#Delete a npm distribution
|
103
|
+
result = api_instance.delete(npm_npm_distribution_href, opts)
|
102
104
|
p result
|
103
105
|
rescue PulpNpmClient::ApiError => e
|
104
106
|
puts "Exception when calling DistributionsNpmApi->delete: #{e}"
|
@@ -110,7 +112,7 @@ end
|
|
110
112
|
|
111
113
|
Name | Type | Description | Notes
|
112
114
|
------------- | ------------- | ------------- | -------------
|
113
|
-
**
|
115
|
+
**npm_npm_distribution_href** | **String**| |
|
114
116
|
**base_path** | **String**| base_path | [optional]
|
115
117
|
**base_path__contains** | **String**| base_path__contains | [optional]
|
116
118
|
**base_path__icontains** | **String**| base_path__icontains | [optional]
|
@@ -137,7 +139,7 @@ Name | Type | Description | Notes
|
|
137
139
|
|
138
140
|
> InlineResponse2001 list(opts)
|
139
141
|
|
140
|
-
|
142
|
+
List npm distributions
|
141
143
|
|
142
144
|
ViewSet for NPM Distributions.
|
143
145
|
|
@@ -169,6 +171,7 @@ opts = {
|
|
169
171
|
}
|
170
172
|
|
171
173
|
begin
|
174
|
+
#List npm distributions
|
172
175
|
result = api_instance.list(opts)
|
173
176
|
p result
|
174
177
|
rescue PulpNpmClient::ApiError => e
|
@@ -209,9 +212,9 @@ Name | Type | Description | Notes
|
|
209
212
|
|
210
213
|
## partial_update
|
211
214
|
|
212
|
-
> AsyncOperationResponse partial_update(
|
213
|
-
|
215
|
+
> AsyncOperationResponse partial_update(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
|
214
216
|
|
217
|
+
Update a npm distribution
|
215
218
|
|
216
219
|
Trigger an asynchronous partial update task
|
217
220
|
|
@@ -228,7 +231,7 @@ PulpNpmClient.configure do |config|
|
|
228
231
|
end
|
229
232
|
|
230
233
|
api_instance = PulpNpmClient::DistributionsNpmApi.new
|
231
|
-
|
234
|
+
npm_npm_distribution_href = 'npm_npm_distribution_href_example' # String |
|
232
235
|
patchednpm_npm_distribution = PulpNpmClient::PatchednpmNpmDistribution.new # PatchednpmNpmDistribution |
|
233
236
|
opts = {
|
234
237
|
base_path: 'base_path_example', # String | base_path
|
@@ -241,7 +244,8 @@ opts = {
|
|
241
244
|
}
|
242
245
|
|
243
246
|
begin
|
244
|
-
|
247
|
+
#Update a npm distribution
|
248
|
+
result = api_instance.partial_update(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
|
245
249
|
p result
|
246
250
|
rescue PulpNpmClient::ApiError => e
|
247
251
|
puts "Exception when calling DistributionsNpmApi->partial_update: #{e}"
|
@@ -253,7 +257,7 @@ end
|
|
253
257
|
|
254
258
|
Name | Type | Description | Notes
|
255
259
|
------------- | ------------- | ------------- | -------------
|
256
|
-
**
|
260
|
+
**npm_npm_distribution_href** | **String**| |
|
257
261
|
**patchednpm_npm_distribution** | [**PatchednpmNpmDistribution**](PatchednpmNpmDistribution.md)| |
|
258
262
|
**base_path** | **String**| base_path | [optional]
|
259
263
|
**base_path__contains** | **String**| base_path__contains | [optional]
|
@@ -279,9 +283,9 @@ Name | Type | Description | Notes
|
|
279
283
|
|
280
284
|
## read
|
281
285
|
|
282
|
-
> NpmNpmDistributionResponse read(
|
283
|
-
|
286
|
+
> NpmNpmDistributionResponse read(npm_npm_distribution_href, opts)
|
284
287
|
|
288
|
+
Inspect a npm distribution
|
285
289
|
|
286
290
|
ViewSet for NPM Distributions.
|
287
291
|
|
@@ -298,14 +302,15 @@ PulpNpmClient.configure do |config|
|
|
298
302
|
end
|
299
303
|
|
300
304
|
api_instance = PulpNpmClient::DistributionsNpmApi.new
|
301
|
-
|
305
|
+
npm_npm_distribution_href = 'npm_npm_distribution_href_example' # String |
|
302
306
|
opts = {
|
303
307
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
304
308
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
305
309
|
}
|
306
310
|
|
307
311
|
begin
|
308
|
-
|
312
|
+
#Inspect a npm distribution
|
313
|
+
result = api_instance.read(npm_npm_distribution_href, opts)
|
309
314
|
p result
|
310
315
|
rescue PulpNpmClient::ApiError => e
|
311
316
|
puts "Exception when calling DistributionsNpmApi->read: #{e}"
|
@@ -317,7 +322,7 @@ end
|
|
317
322
|
|
318
323
|
Name | Type | Description | Notes
|
319
324
|
------------- | ------------- | ------------- | -------------
|
320
|
-
**
|
325
|
+
**npm_npm_distribution_href** | **String**| |
|
321
326
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
322
327
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
323
328
|
|
@@ -337,9 +342,9 @@ Name | Type | Description | Notes
|
|
337
342
|
|
338
343
|
## update
|
339
344
|
|
340
|
-
> AsyncOperationResponse update(
|
341
|
-
|
345
|
+
> AsyncOperationResponse update(npm_npm_distribution_href, npm_npm_distribution, opts)
|
342
346
|
|
347
|
+
Update a npm distribution
|
343
348
|
|
344
349
|
Trigger an asynchronous update task
|
345
350
|
|
@@ -356,7 +361,7 @@ PulpNpmClient.configure do |config|
|
|
356
361
|
end
|
357
362
|
|
358
363
|
api_instance = PulpNpmClient::DistributionsNpmApi.new
|
359
|
-
|
364
|
+
npm_npm_distribution_href = 'npm_npm_distribution_href_example' # String |
|
360
365
|
npm_npm_distribution = PulpNpmClient::NpmNpmDistribution.new # NpmNpmDistribution |
|
361
366
|
opts = {
|
362
367
|
base_path: 'base_path_example', # String | base_path
|
@@ -369,7 +374,8 @@ opts = {
|
|
369
374
|
}
|
370
375
|
|
371
376
|
begin
|
372
|
-
|
377
|
+
#Update a npm distribution
|
378
|
+
result = api_instance.update(npm_npm_distribution_href, npm_npm_distribution, opts)
|
373
379
|
p result
|
374
380
|
rescue PulpNpmClient::ApiError => e
|
375
381
|
puts "Exception when calling DistributionsNpmApi->update: #{e}"
|
@@ -381,7 +387,7 @@ end
|
|
381
387
|
|
382
388
|
Name | Type | Description | Notes
|
383
389
|
------------- | ------------- | ------------- | -------------
|
384
|
-
**
|
390
|
+
**npm_npm_distribution_href** | **String**| |
|
385
391
|
**npm_npm_distribution** | [**NpmNpmDistribution**](NpmNpmDistribution.md)| |
|
386
392
|
**base_path** | **String**| base_path | [optional]
|
387
393
|
**base_path__contains** | **String**| base_path__contains | [optional]
|
data/docs/RemotesNpmApi.md
CHANGED
@@ -4,12 +4,12 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**create**](RemotesNpmApi.md#create) | **POST** /pulp/api/v3/remotes/npm/npm/ |
|
8
|
-
[**delete**](RemotesNpmApi.md#delete) | **DELETE** {
|
9
|
-
[**list**](RemotesNpmApi.md#list) | **GET** /pulp/api/v3/remotes/npm/npm/ |
|
10
|
-
[**partial_update**](RemotesNpmApi.md#partial_update) | **PATCH** {
|
11
|
-
[**read**](RemotesNpmApi.md#read) | **GET** {
|
12
|
-
[**update**](RemotesNpmApi.md#update) | **PUT** {
|
7
|
+
[**create**](RemotesNpmApi.md#create) | **POST** /pulp/api/v3/remotes/npm/npm/ | Create a npm remote
|
8
|
+
[**delete**](RemotesNpmApi.md#delete) | **DELETE** {npm_npm_remote_href} | Delete a npm remote
|
9
|
+
[**list**](RemotesNpmApi.md#list) | **GET** /pulp/api/v3/remotes/npm/npm/ | List npm remotes
|
10
|
+
[**partial_update**](RemotesNpmApi.md#partial_update) | **PATCH** {npm_npm_remote_href} | Update a npm remote
|
11
|
+
[**read**](RemotesNpmApi.md#read) | **GET** {npm_npm_remote_href} | Inspect a npm remote
|
12
|
+
[**update**](RemotesNpmApi.md#update) | **PUT** {npm_npm_remote_href} | Update a npm remote
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -17,7 +17,7 @@ Method | HTTP request | Description
|
|
17
17
|
|
18
18
|
> NpmNpmRemoteResponse create(npm_npm_remote)
|
19
19
|
|
20
|
-
|
20
|
+
Create a npm remote
|
21
21
|
|
22
22
|
A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
23
23
|
|
@@ -37,6 +37,7 @@ api_instance = PulpNpmClient::RemotesNpmApi.new
|
|
37
37
|
npm_npm_remote = PulpNpmClient::NpmNpmRemote.new # NpmNpmRemote |
|
38
38
|
|
39
39
|
begin
|
40
|
+
#Create a npm remote
|
40
41
|
result = api_instance.create(npm_npm_remote)
|
41
42
|
p result
|
42
43
|
rescue PulpNpmClient::ApiError => e
|
@@ -67,9 +68,9 @@ Name | Type | Description | Notes
|
|
67
68
|
|
68
69
|
## delete
|
69
70
|
|
70
|
-
> AsyncOperationResponse delete(
|
71
|
-
|
71
|
+
> AsyncOperationResponse delete(npm_npm_remote_href, opts)
|
72
72
|
|
73
|
+
Delete a npm remote
|
73
74
|
|
74
75
|
Trigger an asynchronous delete task
|
75
76
|
|
@@ -86,7 +87,7 @@ PulpNpmClient.configure do |config|
|
|
86
87
|
end
|
87
88
|
|
88
89
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
89
|
-
|
90
|
+
npm_npm_remote_href = 'npm_npm_remote_href_example' # String |
|
90
91
|
opts = {
|
91
92
|
name: 'name_example', # String | name
|
92
93
|
name__in: 'name__in_example', # String | name__in
|
@@ -100,7 +101,8 @@ opts = {
|
|
100
101
|
}
|
101
102
|
|
102
103
|
begin
|
103
|
-
|
104
|
+
#Delete a npm remote
|
105
|
+
result = api_instance.delete(npm_npm_remote_href, opts)
|
104
106
|
p result
|
105
107
|
rescue PulpNpmClient::ApiError => e
|
106
108
|
puts "Exception when calling RemotesNpmApi->delete: #{e}"
|
@@ -112,7 +114,7 @@ end
|
|
112
114
|
|
113
115
|
Name | Type | Description | Notes
|
114
116
|
------------- | ------------- | ------------- | -------------
|
115
|
-
**
|
117
|
+
**npm_npm_remote_href** | **String**| |
|
116
118
|
**name** | **String**| name | [optional]
|
117
119
|
**name__in** | **String**| name__in | [optional]
|
118
120
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
@@ -141,7 +143,7 @@ Name | Type | Description | Notes
|
|
141
143
|
|
142
144
|
> InlineResponse2002 list(opts)
|
143
145
|
|
144
|
-
|
146
|
+
List npm remotes
|
145
147
|
|
146
148
|
A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
147
149
|
|
@@ -175,6 +177,7 @@ opts = {
|
|
175
177
|
}
|
176
178
|
|
177
179
|
begin
|
180
|
+
#List npm remotes
|
178
181
|
result = api_instance.list(opts)
|
179
182
|
p result
|
180
183
|
rescue PulpNpmClient::ApiError => e
|
@@ -217,9 +220,9 @@ Name | Type | Description | Notes
|
|
217
220
|
|
218
221
|
## partial_update
|
219
222
|
|
220
|
-
> AsyncOperationResponse partial_update(
|
221
|
-
|
223
|
+
> AsyncOperationResponse partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts)
|
222
224
|
|
225
|
+
Update a npm remote
|
223
226
|
|
224
227
|
Trigger an asynchronous partial update task
|
225
228
|
|
@@ -236,7 +239,7 @@ PulpNpmClient.configure do |config|
|
|
236
239
|
end
|
237
240
|
|
238
241
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
239
|
-
|
242
|
+
npm_npm_remote_href = 'npm_npm_remote_href_example' # String |
|
240
243
|
patchednpm_npm_remote = PulpNpmClient::PatchednpmNpmRemote.new # PatchednpmNpmRemote |
|
241
244
|
opts = {
|
242
245
|
name: 'name_example', # String | name
|
@@ -251,7 +254,8 @@ opts = {
|
|
251
254
|
}
|
252
255
|
|
253
256
|
begin
|
254
|
-
|
257
|
+
#Update a npm remote
|
258
|
+
result = api_instance.partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts)
|
255
259
|
p result
|
256
260
|
rescue PulpNpmClient::ApiError => e
|
257
261
|
puts "Exception when calling RemotesNpmApi->partial_update: #{e}"
|
@@ -263,7 +267,7 @@ end
|
|
263
267
|
|
264
268
|
Name | Type | Description | Notes
|
265
269
|
------------- | ------------- | ------------- | -------------
|
266
|
-
**
|
270
|
+
**npm_npm_remote_href** | **String**| |
|
267
271
|
**patchednpm_npm_remote** | [**PatchednpmNpmRemote**](PatchednpmNpmRemote.md)| |
|
268
272
|
**name** | **String**| name | [optional]
|
269
273
|
**name__in** | **String**| name__in | [optional]
|
@@ -291,9 +295,9 @@ Name | Type | Description | Notes
|
|
291
295
|
|
292
296
|
## read
|
293
297
|
|
294
|
-
> NpmNpmRemoteResponse read(
|
295
|
-
|
298
|
+
> NpmNpmRemoteResponse read(npm_npm_remote_href, opts)
|
296
299
|
|
300
|
+
Inspect a npm remote
|
297
301
|
|
298
302
|
A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
299
303
|
|
@@ -310,14 +314,15 @@ PulpNpmClient.configure do |config|
|
|
310
314
|
end
|
311
315
|
|
312
316
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
313
|
-
|
317
|
+
npm_npm_remote_href = 'npm_npm_remote_href_example' # String |
|
314
318
|
opts = {
|
315
319
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
316
320
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
317
321
|
}
|
318
322
|
|
319
323
|
begin
|
320
|
-
|
324
|
+
#Inspect a npm remote
|
325
|
+
result = api_instance.read(npm_npm_remote_href, opts)
|
321
326
|
p result
|
322
327
|
rescue PulpNpmClient::ApiError => e
|
323
328
|
puts "Exception when calling RemotesNpmApi->read: #{e}"
|
@@ -329,7 +334,7 @@ end
|
|
329
334
|
|
330
335
|
Name | Type | Description | Notes
|
331
336
|
------------- | ------------- | ------------- | -------------
|
332
|
-
**
|
337
|
+
**npm_npm_remote_href** | **String**| |
|
333
338
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
334
339
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
335
340
|
|
@@ -349,9 +354,9 @@ Name | Type | Description | Notes
|
|
349
354
|
|
350
355
|
## update
|
351
356
|
|
352
|
-
> AsyncOperationResponse update(
|
353
|
-
|
357
|
+
> AsyncOperationResponse update(npm_npm_remote_href, npm_npm_remote, opts)
|
354
358
|
|
359
|
+
Update a npm remote
|
355
360
|
|
356
361
|
Trigger an asynchronous update task
|
357
362
|
|
@@ -368,7 +373,7 @@ PulpNpmClient.configure do |config|
|
|
368
373
|
end
|
369
374
|
|
370
375
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
371
|
-
|
376
|
+
npm_npm_remote_href = 'npm_npm_remote_href_example' # String |
|
372
377
|
npm_npm_remote = PulpNpmClient::NpmNpmRemote.new # NpmNpmRemote |
|
373
378
|
opts = {
|
374
379
|
name: 'name_example', # String | name
|
@@ -383,7 +388,8 @@ opts = {
|
|
383
388
|
}
|
384
389
|
|
385
390
|
begin
|
386
|
-
|
391
|
+
#Update a npm remote
|
392
|
+
result = api_instance.update(npm_npm_remote_href, npm_npm_remote, opts)
|
387
393
|
p result
|
388
394
|
rescue PulpNpmClient::ApiError => e
|
389
395
|
puts "Exception when calling RemotesNpmApi->update: #{e}"
|
@@ -395,7 +401,7 @@ end
|
|
395
401
|
|
396
402
|
Name | Type | Description | Notes
|
397
403
|
------------- | ------------- | ------------- | -------------
|
398
|
-
**
|
404
|
+
**npm_npm_remote_href** | **String**| |
|
399
405
|
**npm_npm_remote** | [**NpmNpmRemote**](NpmNpmRemote.md)| |
|
400
406
|
**name** | **String**| name | [optional]
|
401
407
|
**name__in** | **String**| name__in | [optional]
|