pulp_npm_client 0.1.0a1.dev01595640515 → 0.1.0a1.dev01595986114
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 +42 -32
- data/docs/ContentPackagesApi.md +33 -36
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsNpmApi.md +113 -71
- data/docs/InlineResponse200.md +3 -3
- data/docs/InlineResponse2001.md +3 -3
- data/docs/InlineResponse2002.md +3 -3
- data/docs/InlineResponse2003.md +3 -3
- data/docs/InlineResponse2004.md +3 -3
- data/docs/NpmNpmDistribution.md +1 -7
- data/docs/NpmNpmDistributionResponse.md +31 -0
- data/docs/NpmNpmRemote.md +4 -10
- data/docs/NpmNpmRemoteResponse.md +43 -0
- data/docs/NpmNpmRepository.md +4 -10
- data/docs/NpmNpmRepositoryResponse.md +29 -0
- data/docs/NpmPackage.md +5 -5
- data/docs/NpmPackageResponse.md +27 -0
- data/docs/PatchednpmNpmDistribution.md +25 -0
- data/docs/PatchednpmNpmRemote.md +37 -0
- data/docs/PatchednpmNpmRepository.md +21 -0
- data/docs/PolicyEnum.md +16 -0
- data/docs/RemotesNpmApi.md +133 -79
- data/docs/RepositoriesNpmApi.md +103 -85
- data/docs/RepositoriesNpmVersionsApi.md +95 -66
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositorySyncURL.md +1 -1
- data/docs/RepositoryVersion.md +1 -9
- data/docs/RepositoryVersionResponse.md +25 -0
- data/lib/pulp_npm_client.rb +12 -2
- data/lib/pulp_npm_client/api/content_packages_api.rb +34 -52
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +129 -78
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +163 -94
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +119 -104
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +119 -80
- data/lib/pulp_npm_client/api_client.rb +2 -2
- data/lib/pulp_npm_client/api_error.rb +2 -2
- data/lib/pulp_npm_client/configuration.rb +3 -3
- data/lib/pulp_npm_client/models/async_operation_response.rb +3 -2
- data/lib/pulp_npm_client/models/content_summary.rb +9 -15
- data/lib/pulp_npm_client/models/content_summary_response.rb +240 -0
- data/lib/pulp_npm_client/models/inline_response200.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2001.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2002.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2003.rb +3 -13
- data/lib/pulp_npm_client/models/inline_response2004.rb +3 -13
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +4 -85
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +290 -0
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +7 -199
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +368 -0
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +18 -78
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +271 -0
- data/lib/pulp_npm_client/models/npm_package.rb +24 -79
- data/lib/pulp_npm_client/models/npm_package_response.rb +269 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +251 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +329 -0
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +229 -0
- data/lib/pulp_npm_client/models/policy_enum.rb +37 -0
- data/lib/pulp_npm_client/models/repository_add_remove_content.rb +5 -4
- data/lib/pulp_npm_client/models/repository_sync_url.rb +3 -8
- data/lib/pulp_npm_client/models/repository_version.rb +7 -43
- data/lib/pulp_npm_client/models/repository_version_response.rb +246 -0
- data/lib/pulp_npm_client/version.rb +3 -3
- data/pulp_npm_client.gemspec +4 -4
- data/spec/api/content_packages_api_spec.rb +14 -17
- data/spec/api/distributions_npm_api_spec.rb +38 -23
- data/spec/api/remotes_npm_api_spec.rb +50 -29
- data/spec/api/repositories_npm_api_spec.rb +30 -27
- data/spec/api/repositories_npm_versions_api_spec.rb +38 -26
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/async_operation_response_spec.rb +2 -2
- data/spec/models/content_summary_response_spec.rb +53 -0
- data/spec/models/content_summary_spec.rb +2 -2
- data/spec/models/inline_response2001_spec.rb +2 -2
- data/spec/models/inline_response2002_spec.rb +2 -2
- data/spec/models/inline_response2003_spec.rb +2 -2
- data/spec/models/inline_response2004_spec.rb +2 -2
- data/spec/models/inline_response200_spec.rb +2 -2
- data/spec/models/npm_npm_distribution_response_spec.rb +83 -0
- data/spec/models/npm_npm_distribution_spec.rb +2 -20
- data/spec/models/npm_npm_remote_response_spec.rb +119 -0
- data/spec/models/npm_npm_remote_spec.rb +2 -24
- data/spec/models/npm_npm_repository_response_spec.rb +77 -0
- data/spec/models/npm_npm_repository_spec.rb +5 -23
- data/spec/models/npm_package_response_spec.rb +71 -0
- data/spec/models/npm_package_spec.rb +6 -6
- data/spec/models/patchednpm_npm_distribution_spec.rb +65 -0
- data/spec/models/patchednpm_npm_remote_spec.rb +101 -0
- data/spec/models/patchednpm_npm_repository_spec.rb +53 -0
- data/spec/models/policy_enum_spec.rb +35 -0
- data/spec/models/repository_add_remove_content_spec.rb +2 -2
- data/spec/models/repository_sync_url_spec.rb +2 -2
- data/spec/models/repository_version_response_spec.rb +65 -0
- data/spec/models/repository_version_spec.rb +2 -26
- data/spec/spec_helper.rb +2 -2
- metadata +44 -4
data/docs/PolicyEnum.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# PulpNpmClient::PolicyEnum
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'PulpNpmClient'
|
12
|
+
|
13
|
+
instance = PulpNpmClient::PolicyEnum.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|
data/docs/RemotesNpmApi.md
CHANGED
@@ -4,22 +4,22 @@ 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** {npm_remote_href} |
|
9
|
-
[**list**](RemotesNpmApi.md#list) | **GET** /pulp/api/v3/remotes/npm/npm/ |
|
10
|
-
[**partial_update**](RemotesNpmApi.md#partial_update) | **PATCH** {npm_remote_href} |
|
11
|
-
[**read**](RemotesNpmApi.md#read) | **GET** {npm_remote_href} |
|
12
|
-
[**update**](RemotesNpmApi.md#update) | **PUT** {npm_remote_href} |
|
7
|
+
[**create**](RemotesNpmApi.md#create) | **POST** /pulp/api/v3/remotes/npm/npm/ |
|
8
|
+
[**delete**](RemotesNpmApi.md#delete) | **DELETE** {npm_remote_href} |
|
9
|
+
[**list**](RemotesNpmApi.md#list) | **GET** /pulp/api/v3/remotes/npm/npm/ |
|
10
|
+
[**partial_update**](RemotesNpmApi.md#partial_update) | **PATCH** {npm_remote_href} |
|
11
|
+
[**read**](RemotesNpmApi.md#read) | **GET** {npm_remote_href} |
|
12
|
+
[**update**](RemotesNpmApi.md#update) | **PUT** {npm_remote_href} |
|
13
13
|
|
14
14
|
|
15
15
|
|
16
16
|
## create
|
17
17
|
|
18
|
-
>
|
18
|
+
> NpmNpmRemoteResponse create(npm_npm_remote)
|
19
19
|
|
20
|
-
Create a npm remote
|
21
20
|
|
22
|
-
|
21
|
+
|
22
|
+
A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
23
23
|
|
24
24
|
### Example
|
25
25
|
|
@@ -28,17 +28,16 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
|
|
28
28
|
require 'pulp_npm_client'
|
29
29
|
# setup authorization
|
30
30
|
PulpNpmClient.configure do |config|
|
31
|
-
# Configure HTTP basic authorization:
|
31
|
+
# Configure HTTP basic authorization: basicAuth
|
32
32
|
config.username = 'YOUR USERNAME'
|
33
33
|
config.password = 'YOUR PASSWORD'
|
34
34
|
end
|
35
35
|
|
36
36
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
37
|
-
|
37
|
+
npm_npm_remote = PulpNpmClient::NpmNpmRemote.new # NpmNpmRemote |
|
38
38
|
|
39
39
|
begin
|
40
|
-
|
41
|
-
result = api_instance.create(data)
|
40
|
+
result = api_instance.create(npm_npm_remote)
|
42
41
|
p result
|
43
42
|
rescue PulpNpmClient::ApiError => e
|
44
43
|
puts "Exception when calling RemotesNpmApi->create: #{e}"
|
@@ -50,27 +49,27 @@ end
|
|
50
49
|
|
51
50
|
Name | Type | Description | Notes
|
52
51
|
------------- | ------------- | ------------- | -------------
|
53
|
-
**
|
52
|
+
**npm_npm_remote** | [**NpmNpmRemote**](NpmNpmRemote.md)| |
|
54
53
|
|
55
54
|
### Return type
|
56
55
|
|
57
|
-
[**
|
56
|
+
[**NpmNpmRemoteResponse**](NpmNpmRemoteResponse.md)
|
58
57
|
|
59
58
|
### Authorization
|
60
59
|
|
61
|
-
[
|
60
|
+
[basicAuth](../README.md#basicAuth)
|
62
61
|
|
63
62
|
### HTTP request headers
|
64
63
|
|
65
|
-
- **Content-Type**: application/json
|
64
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
66
65
|
- **Accept**: application/json
|
67
66
|
|
68
67
|
|
69
68
|
## delete
|
70
69
|
|
71
|
-
> AsyncOperationResponse delete(npm_remote_href)
|
70
|
+
> AsyncOperationResponse delete(npm_remote_href, opts)
|
71
|
+
|
72
72
|
|
73
|
-
Delete a npm remote
|
74
73
|
|
75
74
|
Trigger an asynchronous delete task
|
76
75
|
|
@@ -81,17 +80,27 @@ Trigger an asynchronous delete task
|
|
81
80
|
require 'pulp_npm_client'
|
82
81
|
# setup authorization
|
83
82
|
PulpNpmClient.configure do |config|
|
84
|
-
# Configure HTTP basic authorization:
|
83
|
+
# Configure HTTP basic authorization: basicAuth
|
85
84
|
config.username = 'YOUR USERNAME'
|
86
85
|
config.password = 'YOUR PASSWORD'
|
87
86
|
end
|
88
87
|
|
89
88
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
90
|
-
npm_remote_href = 'npm_remote_href_example' # String |
|
89
|
+
npm_remote_href = 'npm_remote_href_example' # String |
|
90
|
+
opts = {
|
91
|
+
name: 'name_example', # String | name
|
92
|
+
name__in: 'name__in_example', # String | name__in
|
93
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
94
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
|
95
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
|
96
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
|
97
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | pulp_last_updated__lt
|
98
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | pulp_last_updated__lte
|
99
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example' # String | pulp_last_updated__range
|
100
|
+
}
|
91
101
|
|
92
102
|
begin
|
93
|
-
|
94
|
-
result = api_instance.delete(npm_remote_href)
|
103
|
+
result = api_instance.delete(npm_remote_href, opts)
|
95
104
|
p result
|
96
105
|
rescue PulpNpmClient::ApiError => e
|
97
106
|
puts "Exception when calling RemotesNpmApi->delete: #{e}"
|
@@ -103,7 +112,16 @@ end
|
|
103
112
|
|
104
113
|
Name | Type | Description | Notes
|
105
114
|
------------- | ------------- | ------------- | -------------
|
106
|
-
**npm_remote_href** | **String**|
|
115
|
+
**npm_remote_href** | **String**| |
|
116
|
+
**name** | **String**| name | [optional]
|
117
|
+
**name__in** | **String**| name__in | [optional]
|
118
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
119
|
+
**pulp_last_updated** | **String**| pulp_last_updated | [optional]
|
120
|
+
**pulp_last_updated__gt** | **String**| pulp_last_updated__gt | [optional]
|
121
|
+
**pulp_last_updated__gte** | **String**| pulp_last_updated__gte | [optional]
|
122
|
+
**pulp_last_updated__lt** | **String**| pulp_last_updated__lt | [optional]
|
123
|
+
**pulp_last_updated__lte** | **String**| pulp_last_updated__lte | [optional]
|
124
|
+
**pulp_last_updated__range** | **String**| pulp_last_updated__range | [optional]
|
107
125
|
|
108
126
|
### Return type
|
109
127
|
|
@@ -111,7 +129,7 @@ Name | Type | Description | Notes
|
|
111
129
|
|
112
130
|
### Authorization
|
113
131
|
|
114
|
-
[
|
132
|
+
[basicAuth](../README.md#basicAuth)
|
115
133
|
|
116
134
|
### HTTP request headers
|
117
135
|
|
@@ -123,9 +141,9 @@ Name | Type | Description | Notes
|
|
123
141
|
|
124
142
|
> InlineResponse2002 list(opts)
|
125
143
|
|
126
|
-
List npm remotes
|
127
144
|
|
128
|
-
|
145
|
+
|
146
|
+
A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
129
147
|
|
130
148
|
### Example
|
131
149
|
|
@@ -134,30 +152,29 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
|
|
134
152
|
require 'pulp_npm_client'
|
135
153
|
# setup authorization
|
136
154
|
PulpNpmClient.configure do |config|
|
137
|
-
# Configure HTTP basic authorization:
|
155
|
+
# Configure HTTP basic authorization: basicAuth
|
138
156
|
config.username = 'YOUR USERNAME'
|
139
157
|
config.password = 'YOUR PASSWORD'
|
140
158
|
end
|
141
159
|
|
142
160
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
143
161
|
opts = {
|
144
|
-
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
145
|
-
name: 'name_example', # String |
|
146
|
-
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
147
|
-
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | Filter results where pulp_last_updated is less than value
|
148
|
-
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | Filter results where pulp_last_updated is less than or equal to value
|
149
|
-
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | Filter results where pulp_last_updated is greater than value
|
150
|
-
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | Filter results where pulp_last_updated is greater than or equal to value
|
151
|
-
pulp_last_updated__range: 'pulp_last_updated__range_example', # String | Filter results where pulp_last_updated is between two comma separated values
|
152
|
-
pulp_last_updated: 'pulp_last_updated_example', # String | ISO 8601 formatted dates are supported
|
153
162
|
limit: 56, # Integer | Number of results to return per page.
|
163
|
+
name: 'name_example', # String | name
|
164
|
+
name__in: 'name__in_example', # String | name__in
|
154
165
|
offset: 56, # Integer | The initial index from which to return the results.
|
166
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
167
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
|
168
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
|
169
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
|
170
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | pulp_last_updated__lt
|
171
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | pulp_last_updated__lte
|
172
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example', # String | pulp_last_updated__range
|
155
173
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
156
174
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
157
175
|
}
|
158
176
|
|
159
177
|
begin
|
160
|
-
#List npm remotes
|
161
178
|
result = api_instance.list(opts)
|
162
179
|
p result
|
163
180
|
rescue PulpNpmClient::ApiError => e
|
@@ -170,17 +187,17 @@ end
|
|
170
187
|
|
171
188
|
Name | Type | Description | Notes
|
172
189
|
------------- | ------------- | ------------- | -------------
|
173
|
-
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
174
|
-
**name** | **String**| | [optional]
|
175
|
-
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
176
|
-
**pulp_last_updated__lt** | **String**| Filter results where pulp_last_updated is less than value | [optional]
|
177
|
-
**pulp_last_updated__lte** | **String**| Filter results where pulp_last_updated is less than or equal to value | [optional]
|
178
|
-
**pulp_last_updated__gt** | **String**| Filter results where pulp_last_updated is greater than value | [optional]
|
179
|
-
**pulp_last_updated__gte** | **String**| Filter results where pulp_last_updated is greater than or equal to value | [optional]
|
180
|
-
**pulp_last_updated__range** | **String**| Filter results where pulp_last_updated is between two comma separated values | [optional]
|
181
|
-
**pulp_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
|
182
190
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
191
|
+
**name** | **String**| name | [optional]
|
192
|
+
**name__in** | **String**| name__in | [optional]
|
183
193
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
194
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
195
|
+
**pulp_last_updated** | **String**| pulp_last_updated | [optional]
|
196
|
+
**pulp_last_updated__gt** | **String**| pulp_last_updated__gt | [optional]
|
197
|
+
**pulp_last_updated__gte** | **String**| pulp_last_updated__gte | [optional]
|
198
|
+
**pulp_last_updated__lt** | **String**| pulp_last_updated__lt | [optional]
|
199
|
+
**pulp_last_updated__lte** | **String**| pulp_last_updated__lte | [optional]
|
200
|
+
**pulp_last_updated__range** | **String**| pulp_last_updated__range | [optional]
|
184
201
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
185
202
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
186
203
|
|
@@ -190,7 +207,7 @@ Name | Type | Description | Notes
|
|
190
207
|
|
191
208
|
### Authorization
|
192
209
|
|
193
|
-
[
|
210
|
+
[basicAuth](../README.md#basicAuth)
|
194
211
|
|
195
212
|
### HTTP request headers
|
196
213
|
|
@@ -200,9 +217,9 @@ Name | Type | Description | Notes
|
|
200
217
|
|
201
218
|
## partial_update
|
202
219
|
|
203
|
-
> AsyncOperationResponse partial_update(npm_remote_href,
|
220
|
+
> AsyncOperationResponse partial_update(npm_remote_href, patchednpm_npm_remote, opts)
|
221
|
+
|
204
222
|
|
205
|
-
Partially update a npm remote
|
206
223
|
|
207
224
|
Trigger an asynchronous partial update task
|
208
225
|
|
@@ -213,18 +230,28 @@ Trigger an asynchronous partial update task
|
|
213
230
|
require 'pulp_npm_client'
|
214
231
|
# setup authorization
|
215
232
|
PulpNpmClient.configure do |config|
|
216
|
-
# Configure HTTP basic authorization:
|
233
|
+
# Configure HTTP basic authorization: basicAuth
|
217
234
|
config.username = 'YOUR USERNAME'
|
218
235
|
config.password = 'YOUR PASSWORD'
|
219
236
|
end
|
220
237
|
|
221
238
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
222
|
-
npm_remote_href = 'npm_remote_href_example' # String |
|
223
|
-
|
239
|
+
npm_remote_href = 'npm_remote_href_example' # String |
|
240
|
+
patchednpm_npm_remote = PulpNpmClient::PatchednpmNpmRemote.new # PatchednpmNpmRemote |
|
241
|
+
opts = {
|
242
|
+
name: 'name_example', # String | name
|
243
|
+
name__in: 'name__in_example', # String | name__in
|
244
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
245
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
|
246
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
|
247
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
|
248
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | pulp_last_updated__lt
|
249
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | pulp_last_updated__lte
|
250
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example' # String | pulp_last_updated__range
|
251
|
+
}
|
224
252
|
|
225
253
|
begin
|
226
|
-
|
227
|
-
result = api_instance.partial_update(npm_remote_href, data)
|
254
|
+
result = api_instance.partial_update(npm_remote_href, patchednpm_npm_remote, opts)
|
228
255
|
p result
|
229
256
|
rescue PulpNpmClient::ApiError => e
|
230
257
|
puts "Exception when calling RemotesNpmApi->partial_update: #{e}"
|
@@ -236,8 +263,17 @@ end
|
|
236
263
|
|
237
264
|
Name | Type | Description | Notes
|
238
265
|
------------- | ------------- | ------------- | -------------
|
239
|
-
**npm_remote_href** | **String**|
|
240
|
-
**
|
266
|
+
**npm_remote_href** | **String**| |
|
267
|
+
**patchednpm_npm_remote** | [**PatchednpmNpmRemote**](PatchednpmNpmRemote.md)| |
|
268
|
+
**name** | **String**| name | [optional]
|
269
|
+
**name__in** | **String**| name__in | [optional]
|
270
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
271
|
+
**pulp_last_updated** | **String**| pulp_last_updated | [optional]
|
272
|
+
**pulp_last_updated__gt** | **String**| pulp_last_updated__gt | [optional]
|
273
|
+
**pulp_last_updated__gte** | **String**| pulp_last_updated__gte | [optional]
|
274
|
+
**pulp_last_updated__lt** | **String**| pulp_last_updated__lt | [optional]
|
275
|
+
**pulp_last_updated__lte** | **String**| pulp_last_updated__lte | [optional]
|
276
|
+
**pulp_last_updated__range** | **String**| pulp_last_updated__range | [optional]
|
241
277
|
|
242
278
|
### Return type
|
243
279
|
|
@@ -245,21 +281,21 @@ Name | Type | Description | Notes
|
|
245
281
|
|
246
282
|
### Authorization
|
247
283
|
|
248
|
-
[
|
284
|
+
[basicAuth](../README.md#basicAuth)
|
249
285
|
|
250
286
|
### HTTP request headers
|
251
287
|
|
252
|
-
- **Content-Type**: application/json
|
288
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
253
289
|
- **Accept**: application/json
|
254
290
|
|
255
291
|
|
256
292
|
## read
|
257
293
|
|
258
|
-
>
|
294
|
+
> NpmNpmRemoteResponse read(npm_remote_href, opts)
|
295
|
+
|
259
296
|
|
260
|
-
Inspect a npm remote
|
261
297
|
|
262
|
-
Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
298
|
+
A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
263
299
|
|
264
300
|
### Example
|
265
301
|
|
@@ -268,20 +304,19 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
|
|
268
304
|
require 'pulp_npm_client'
|
269
305
|
# setup authorization
|
270
306
|
PulpNpmClient.configure do |config|
|
271
|
-
# Configure HTTP basic authorization:
|
307
|
+
# Configure HTTP basic authorization: basicAuth
|
272
308
|
config.username = 'YOUR USERNAME'
|
273
309
|
config.password = 'YOUR PASSWORD'
|
274
310
|
end
|
275
311
|
|
276
312
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
277
|
-
npm_remote_href = 'npm_remote_href_example' # String |
|
313
|
+
npm_remote_href = 'npm_remote_href_example' # String |
|
278
314
|
opts = {
|
279
315
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
280
316
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
281
317
|
}
|
282
318
|
|
283
319
|
begin
|
284
|
-
#Inspect a npm remote
|
285
320
|
result = api_instance.read(npm_remote_href, opts)
|
286
321
|
p result
|
287
322
|
rescue PulpNpmClient::ApiError => e
|
@@ -294,17 +329,17 @@ end
|
|
294
329
|
|
295
330
|
Name | Type | Description | Notes
|
296
331
|
------------- | ------------- | ------------- | -------------
|
297
|
-
**npm_remote_href** | **String**|
|
332
|
+
**npm_remote_href** | **String**| |
|
298
333
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
299
334
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
300
335
|
|
301
336
|
### Return type
|
302
337
|
|
303
|
-
[**
|
338
|
+
[**NpmNpmRemoteResponse**](NpmNpmRemoteResponse.md)
|
304
339
|
|
305
340
|
### Authorization
|
306
341
|
|
307
|
-
[
|
342
|
+
[basicAuth](../README.md#basicAuth)
|
308
343
|
|
309
344
|
### HTTP request headers
|
310
345
|
|
@@ -314,9 +349,9 @@ Name | Type | Description | Notes
|
|
314
349
|
|
315
350
|
## update
|
316
351
|
|
317
|
-
> AsyncOperationResponse update(npm_remote_href,
|
352
|
+
> AsyncOperationResponse update(npm_remote_href, npm_npm_remote, opts)
|
353
|
+
|
318
354
|
|
319
|
-
Update a npm remote
|
320
355
|
|
321
356
|
Trigger an asynchronous update task
|
322
357
|
|
@@ -327,18 +362,28 @@ Trigger an asynchronous update task
|
|
327
362
|
require 'pulp_npm_client'
|
328
363
|
# setup authorization
|
329
364
|
PulpNpmClient.configure do |config|
|
330
|
-
# Configure HTTP basic authorization:
|
365
|
+
# Configure HTTP basic authorization: basicAuth
|
331
366
|
config.username = 'YOUR USERNAME'
|
332
367
|
config.password = 'YOUR PASSWORD'
|
333
368
|
end
|
334
369
|
|
335
370
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
336
|
-
npm_remote_href = 'npm_remote_href_example' # String |
|
337
|
-
|
371
|
+
npm_remote_href = 'npm_remote_href_example' # String |
|
372
|
+
npm_npm_remote = PulpNpmClient::NpmNpmRemote.new # NpmNpmRemote |
|
373
|
+
opts = {
|
374
|
+
name: 'name_example', # String | name
|
375
|
+
name__in: 'name__in_example', # String | name__in
|
376
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
377
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
|
378
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
|
379
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
|
380
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | pulp_last_updated__lt
|
381
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | pulp_last_updated__lte
|
382
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example' # String | pulp_last_updated__range
|
383
|
+
}
|
338
384
|
|
339
385
|
begin
|
340
|
-
|
341
|
-
result = api_instance.update(npm_remote_href, data)
|
386
|
+
result = api_instance.update(npm_remote_href, npm_npm_remote, opts)
|
342
387
|
p result
|
343
388
|
rescue PulpNpmClient::ApiError => e
|
344
389
|
puts "Exception when calling RemotesNpmApi->update: #{e}"
|
@@ -350,8 +395,17 @@ end
|
|
350
395
|
|
351
396
|
Name | Type | Description | Notes
|
352
397
|
------------- | ------------- | ------------- | -------------
|
353
|
-
**npm_remote_href** | **String**|
|
354
|
-
**
|
398
|
+
**npm_remote_href** | **String**| |
|
399
|
+
**npm_npm_remote** | [**NpmNpmRemote**](NpmNpmRemote.md)| |
|
400
|
+
**name** | **String**| name | [optional]
|
401
|
+
**name__in** | **String**| name__in | [optional]
|
402
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
403
|
+
**pulp_last_updated** | **String**| pulp_last_updated | [optional]
|
404
|
+
**pulp_last_updated__gt** | **String**| pulp_last_updated__gt | [optional]
|
405
|
+
**pulp_last_updated__gte** | **String**| pulp_last_updated__gte | [optional]
|
406
|
+
**pulp_last_updated__lt** | **String**| pulp_last_updated__lt | [optional]
|
407
|
+
**pulp_last_updated__lte** | **String**| pulp_last_updated__lte | [optional]
|
408
|
+
**pulp_last_updated__range** | **String**| pulp_last_updated__range | [optional]
|
355
409
|
|
356
410
|
### Return type
|
357
411
|
|
@@ -359,10 +413,10 @@ Name | Type | Description | Notes
|
|
359
413
|
|
360
414
|
### Authorization
|
361
415
|
|
362
|
-
[
|
416
|
+
[basicAuth](../README.md#basicAuth)
|
363
417
|
|
364
418
|
### HTTP request headers
|
365
419
|
|
366
|
-
- **Content-Type**: application/json
|
420
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
367
421
|
- **Accept**: application/json
|
368
422
|
|