pulp_npm_client 0.1.0a1.dev01595813316 → 0.1.0a1.dev01596158992
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 +22 -11
- data/docs/ContentPackagesApi.md +27 -27
- data/docs/ContentSummary.md +3 -3
- data/docs/ContentSummaryResponse.md +21 -0
- data/docs/DistributionsNpmApi.md +104 -56
- 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 +124 -64
- data/docs/RepositoriesNpmApi.md +94 -70
- data/docs/RepositoriesNpmVersionsApi.md +90 -58
- 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 -46
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +131 -68
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +165 -84
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +121 -94
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +119 -74
- 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 -14
- data/spec/api/distributions_npm_api_spec.rb +39 -18
- data/spec/api/remotes_npm_api_spec.rb +51 -24
- data/spec/api/repositories_npm_api_spec.rb +31 -22
- data/spec/api/repositories_npm_versions_api_spec.rb +38 -23
- 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 +54 -14
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
@@ -7,7 +7,7 @@ Method | HTTP request | Description
|
|
7
7
|
[**create**](RemotesNpmApi.md#create) | **POST** /pulp/api/v3/remotes/npm/npm/ | Create a npm remote
|
8
8
|
[**delete**](RemotesNpmApi.md#delete) | **DELETE** {npm_remote_href} | Delete a npm remote
|
9
9
|
[**list**](RemotesNpmApi.md#list) | **GET** /pulp/api/v3/remotes/npm/npm/ | List npm remotes
|
10
|
-
[**partial_update**](RemotesNpmApi.md#partial_update) | **PATCH** {npm_remote_href} |
|
10
|
+
[**partial_update**](RemotesNpmApi.md#partial_update) | **PATCH** {npm_remote_href} | Update a npm remote
|
11
11
|
[**read**](RemotesNpmApi.md#read) | **GET** {npm_remote_href} | Inspect a npm remote
|
12
12
|
[**update**](RemotesNpmApi.md#update) | **PUT** {npm_remote_href} | Update a npm remote
|
13
13
|
|
@@ -15,11 +15,11 @@ Method | HTTP request | Description
|
|
15
15
|
|
16
16
|
## create
|
17
17
|
|
18
|
-
>
|
18
|
+
> NpmNpmRemoteResponse create(npm_npm_remote)
|
19
19
|
|
20
20
|
Create a npm remote
|
21
21
|
|
22
|
-
Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
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,17 @@ 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
40
|
#Create a npm remote
|
41
|
-
result = api_instance.create(
|
41
|
+
result = api_instance.create(npm_npm_remote)
|
42
42
|
p result
|
43
43
|
rescue PulpNpmClient::ApiError => e
|
44
44
|
puts "Exception when calling RemotesNpmApi->create: #{e}"
|
@@ -50,25 +50,25 @@ end
|
|
50
50
|
|
51
51
|
Name | Type | Description | Notes
|
52
52
|
------------- | ------------- | ------------- | -------------
|
53
|
-
**
|
53
|
+
**npm_npm_remote** | [**NpmNpmRemote**](NpmNpmRemote.md)| |
|
54
54
|
|
55
55
|
### Return type
|
56
56
|
|
57
|
-
[**
|
57
|
+
[**NpmNpmRemoteResponse**](NpmNpmRemoteResponse.md)
|
58
58
|
|
59
59
|
### Authorization
|
60
60
|
|
61
|
-
[
|
61
|
+
[basicAuth](../README.md#basicAuth)
|
62
62
|
|
63
63
|
### HTTP request headers
|
64
64
|
|
65
|
-
- **Content-Type**: application/json
|
65
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
66
66
|
- **Accept**: application/json
|
67
67
|
|
68
68
|
|
69
69
|
## delete
|
70
70
|
|
71
|
-
> AsyncOperationResponse delete(npm_remote_href)
|
71
|
+
> AsyncOperationResponse delete(npm_remote_href, opts)
|
72
72
|
|
73
73
|
Delete a npm remote
|
74
74
|
|
@@ -81,17 +81,28 @@ Trigger an asynchronous delete task
|
|
81
81
|
require 'pulp_npm_client'
|
82
82
|
# setup authorization
|
83
83
|
PulpNpmClient.configure do |config|
|
84
|
-
# Configure HTTP basic authorization:
|
84
|
+
# Configure HTTP basic authorization: basicAuth
|
85
85
|
config.username = 'YOUR USERNAME'
|
86
86
|
config.password = 'YOUR PASSWORD'
|
87
87
|
end
|
88
88
|
|
89
89
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
90
|
-
npm_remote_href = 'npm_remote_href_example' # String |
|
90
|
+
npm_remote_href = 'npm_remote_href_example' # String |
|
91
|
+
opts = {
|
92
|
+
name: 'name_example', # String | name
|
93
|
+
name__in: 'name__in_example', # String | name__in
|
94
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
95
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
|
96
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
|
97
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
|
98
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | pulp_last_updated__lt
|
99
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | pulp_last_updated__lte
|
100
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example' # String | pulp_last_updated__range
|
101
|
+
}
|
91
102
|
|
92
103
|
begin
|
93
104
|
#Delete a npm remote
|
94
|
-
result = api_instance.delete(npm_remote_href)
|
105
|
+
result = api_instance.delete(npm_remote_href, opts)
|
95
106
|
p result
|
96
107
|
rescue PulpNpmClient::ApiError => e
|
97
108
|
puts "Exception when calling RemotesNpmApi->delete: #{e}"
|
@@ -103,7 +114,16 @@ end
|
|
103
114
|
|
104
115
|
Name | Type | Description | Notes
|
105
116
|
------------- | ------------- | ------------- | -------------
|
106
|
-
**npm_remote_href** | **String**|
|
117
|
+
**npm_remote_href** | **String**| |
|
118
|
+
**name** | **String**| name | [optional]
|
119
|
+
**name__in** | **String**| name__in | [optional]
|
120
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
121
|
+
**pulp_last_updated** | **String**| pulp_last_updated | [optional]
|
122
|
+
**pulp_last_updated__gt** | **String**| pulp_last_updated__gt | [optional]
|
123
|
+
**pulp_last_updated__gte** | **String**| pulp_last_updated__gte | [optional]
|
124
|
+
**pulp_last_updated__lt** | **String**| pulp_last_updated__lt | [optional]
|
125
|
+
**pulp_last_updated__lte** | **String**| pulp_last_updated__lte | [optional]
|
126
|
+
**pulp_last_updated__range** | **String**| pulp_last_updated__range | [optional]
|
107
127
|
|
108
128
|
### Return type
|
109
129
|
|
@@ -111,7 +131,7 @@ Name | Type | Description | Notes
|
|
111
131
|
|
112
132
|
### Authorization
|
113
133
|
|
114
|
-
[
|
134
|
+
[basicAuth](../README.md#basicAuth)
|
115
135
|
|
116
136
|
### HTTP request headers
|
117
137
|
|
@@ -125,7 +145,7 @@ Name | Type | Description | Notes
|
|
125
145
|
|
126
146
|
List npm remotes
|
127
147
|
|
128
|
-
Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
148
|
+
A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
129
149
|
|
130
150
|
### Example
|
131
151
|
|
@@ -134,24 +154,24 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
|
|
134
154
|
require 'pulp_npm_client'
|
135
155
|
# setup authorization
|
136
156
|
PulpNpmClient.configure do |config|
|
137
|
-
# Configure HTTP basic authorization:
|
157
|
+
# Configure HTTP basic authorization: basicAuth
|
138
158
|
config.username = 'YOUR USERNAME'
|
139
159
|
config.password = 'YOUR PASSWORD'
|
140
160
|
end
|
141
161
|
|
142
162
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
143
163
|
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
164
|
limit: 56, # Integer | Number of results to return per page.
|
165
|
+
name: 'name_example', # String | name
|
166
|
+
name__in: 'name__in_example', # String | name__in
|
154
167
|
offset: 56, # Integer | The initial index from which to return the results.
|
168
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
169
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
|
170
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
|
171
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
|
172
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | pulp_last_updated__lt
|
173
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | pulp_last_updated__lte
|
174
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example', # String | pulp_last_updated__range
|
155
175
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
156
176
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
157
177
|
}
|
@@ -170,17 +190,17 @@ end
|
|
170
190
|
|
171
191
|
Name | Type | Description | Notes
|
172
192
|
------------- | ------------- | ------------- | -------------
|
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
193
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
194
|
+
**name** | **String**| name | [optional]
|
195
|
+
**name__in** | **String**| name__in | [optional]
|
183
196
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
197
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
198
|
+
**pulp_last_updated** | **String**| pulp_last_updated | [optional]
|
199
|
+
**pulp_last_updated__gt** | **String**| pulp_last_updated__gt | [optional]
|
200
|
+
**pulp_last_updated__gte** | **String**| pulp_last_updated__gte | [optional]
|
201
|
+
**pulp_last_updated__lt** | **String**| pulp_last_updated__lt | [optional]
|
202
|
+
**pulp_last_updated__lte** | **String**| pulp_last_updated__lte | [optional]
|
203
|
+
**pulp_last_updated__range** | **String**| pulp_last_updated__range | [optional]
|
184
204
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
185
205
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
186
206
|
|
@@ -190,7 +210,7 @@ Name | Type | Description | Notes
|
|
190
210
|
|
191
211
|
### Authorization
|
192
212
|
|
193
|
-
[
|
213
|
+
[basicAuth](../README.md#basicAuth)
|
194
214
|
|
195
215
|
### HTTP request headers
|
196
216
|
|
@@ -200,9 +220,9 @@ Name | Type | Description | Notes
|
|
200
220
|
|
201
221
|
## partial_update
|
202
222
|
|
203
|
-
> AsyncOperationResponse partial_update(npm_remote_href,
|
223
|
+
> AsyncOperationResponse partial_update(npm_remote_href, patchednpm_npm_remote, opts)
|
204
224
|
|
205
|
-
|
225
|
+
Update a npm remote
|
206
226
|
|
207
227
|
Trigger an asynchronous partial update task
|
208
228
|
|
@@ -213,18 +233,29 @@ Trigger an asynchronous partial update task
|
|
213
233
|
require 'pulp_npm_client'
|
214
234
|
# setup authorization
|
215
235
|
PulpNpmClient.configure do |config|
|
216
|
-
# Configure HTTP basic authorization:
|
236
|
+
# Configure HTTP basic authorization: basicAuth
|
217
237
|
config.username = 'YOUR USERNAME'
|
218
238
|
config.password = 'YOUR PASSWORD'
|
219
239
|
end
|
220
240
|
|
221
241
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
222
|
-
npm_remote_href = 'npm_remote_href_example' # String |
|
223
|
-
|
242
|
+
npm_remote_href = 'npm_remote_href_example' # String |
|
243
|
+
patchednpm_npm_remote = PulpNpmClient::PatchednpmNpmRemote.new # PatchednpmNpmRemote |
|
244
|
+
opts = {
|
245
|
+
name: 'name_example', # String | name
|
246
|
+
name__in: 'name__in_example', # String | name__in
|
247
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
248
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
|
249
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
|
250
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
|
251
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | pulp_last_updated__lt
|
252
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | pulp_last_updated__lte
|
253
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example' # String | pulp_last_updated__range
|
254
|
+
}
|
224
255
|
|
225
256
|
begin
|
226
|
-
#
|
227
|
-
result = api_instance.partial_update(npm_remote_href,
|
257
|
+
#Update a npm remote
|
258
|
+
result = api_instance.partial_update(npm_remote_href, patchednpm_npm_remote, opts)
|
228
259
|
p result
|
229
260
|
rescue PulpNpmClient::ApiError => e
|
230
261
|
puts "Exception when calling RemotesNpmApi->partial_update: #{e}"
|
@@ -236,8 +267,17 @@ end
|
|
236
267
|
|
237
268
|
Name | Type | Description | Notes
|
238
269
|
------------- | ------------- | ------------- | -------------
|
239
|
-
**npm_remote_href** | **String**|
|
240
|
-
**
|
270
|
+
**npm_remote_href** | **String**| |
|
271
|
+
**patchednpm_npm_remote** | [**PatchednpmNpmRemote**](PatchednpmNpmRemote.md)| |
|
272
|
+
**name** | **String**| name | [optional]
|
273
|
+
**name__in** | **String**| name__in | [optional]
|
274
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
275
|
+
**pulp_last_updated** | **String**| pulp_last_updated | [optional]
|
276
|
+
**pulp_last_updated__gt** | **String**| pulp_last_updated__gt | [optional]
|
277
|
+
**pulp_last_updated__gte** | **String**| pulp_last_updated__gte | [optional]
|
278
|
+
**pulp_last_updated__lt** | **String**| pulp_last_updated__lt | [optional]
|
279
|
+
**pulp_last_updated__lte** | **String**| pulp_last_updated__lte | [optional]
|
280
|
+
**pulp_last_updated__range** | **String**| pulp_last_updated__range | [optional]
|
241
281
|
|
242
282
|
### Return type
|
243
283
|
|
@@ -245,21 +285,21 @@ Name | Type | Description | Notes
|
|
245
285
|
|
246
286
|
### Authorization
|
247
287
|
|
248
|
-
[
|
288
|
+
[basicAuth](../README.md#basicAuth)
|
249
289
|
|
250
290
|
### HTTP request headers
|
251
291
|
|
252
|
-
- **Content-Type**: application/json
|
292
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
253
293
|
- **Accept**: application/json
|
254
294
|
|
255
295
|
|
256
296
|
## read
|
257
297
|
|
258
|
-
>
|
298
|
+
> NpmNpmRemoteResponse read(npm_remote_href, opts)
|
259
299
|
|
260
300
|
Inspect a npm remote
|
261
301
|
|
262
|
-
Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
302
|
+
A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
263
303
|
|
264
304
|
### Example
|
265
305
|
|
@@ -268,13 +308,13 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
|
|
268
308
|
require 'pulp_npm_client'
|
269
309
|
# setup authorization
|
270
310
|
PulpNpmClient.configure do |config|
|
271
|
-
# Configure HTTP basic authorization:
|
311
|
+
# Configure HTTP basic authorization: basicAuth
|
272
312
|
config.username = 'YOUR USERNAME'
|
273
313
|
config.password = 'YOUR PASSWORD'
|
274
314
|
end
|
275
315
|
|
276
316
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
277
|
-
npm_remote_href = 'npm_remote_href_example' # String |
|
317
|
+
npm_remote_href = 'npm_remote_href_example' # String |
|
278
318
|
opts = {
|
279
319
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
280
320
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
@@ -294,17 +334,17 @@ end
|
|
294
334
|
|
295
335
|
Name | Type | Description | Notes
|
296
336
|
------------- | ------------- | ------------- | -------------
|
297
|
-
**npm_remote_href** | **String**|
|
337
|
+
**npm_remote_href** | **String**| |
|
298
338
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
299
339
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
300
340
|
|
301
341
|
### Return type
|
302
342
|
|
303
|
-
[**
|
343
|
+
[**NpmNpmRemoteResponse**](NpmNpmRemoteResponse.md)
|
304
344
|
|
305
345
|
### Authorization
|
306
346
|
|
307
|
-
[
|
347
|
+
[basicAuth](../README.md#basicAuth)
|
308
348
|
|
309
349
|
### HTTP request headers
|
310
350
|
|
@@ -314,7 +354,7 @@ Name | Type | Description | Notes
|
|
314
354
|
|
315
355
|
## update
|
316
356
|
|
317
|
-
> AsyncOperationResponse update(npm_remote_href,
|
357
|
+
> AsyncOperationResponse update(npm_remote_href, npm_npm_remote, opts)
|
318
358
|
|
319
359
|
Update a npm remote
|
320
360
|
|
@@ -327,18 +367,29 @@ Trigger an asynchronous update task
|
|
327
367
|
require 'pulp_npm_client'
|
328
368
|
# setup authorization
|
329
369
|
PulpNpmClient.configure do |config|
|
330
|
-
# Configure HTTP basic authorization:
|
370
|
+
# Configure HTTP basic authorization: basicAuth
|
331
371
|
config.username = 'YOUR USERNAME'
|
332
372
|
config.password = 'YOUR PASSWORD'
|
333
373
|
end
|
334
374
|
|
335
375
|
api_instance = PulpNpmClient::RemotesNpmApi.new
|
336
|
-
npm_remote_href = 'npm_remote_href_example' # String |
|
337
|
-
|
376
|
+
npm_remote_href = 'npm_remote_href_example' # String |
|
377
|
+
npm_npm_remote = PulpNpmClient::NpmNpmRemote.new # NpmNpmRemote |
|
378
|
+
opts = {
|
379
|
+
name: 'name_example', # String | name
|
380
|
+
name__in: 'name__in_example', # String | name__in
|
381
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
382
|
+
pulp_last_updated: 'pulp_last_updated_example', # String | pulp_last_updated
|
383
|
+
pulp_last_updated__gt: 'pulp_last_updated__gt_example', # String | pulp_last_updated__gt
|
384
|
+
pulp_last_updated__gte: 'pulp_last_updated__gte_example', # String | pulp_last_updated__gte
|
385
|
+
pulp_last_updated__lt: 'pulp_last_updated__lt_example', # String | pulp_last_updated__lt
|
386
|
+
pulp_last_updated__lte: 'pulp_last_updated__lte_example', # String | pulp_last_updated__lte
|
387
|
+
pulp_last_updated__range: 'pulp_last_updated__range_example' # String | pulp_last_updated__range
|
388
|
+
}
|
338
389
|
|
339
390
|
begin
|
340
391
|
#Update a npm remote
|
341
|
-
result = api_instance.update(npm_remote_href,
|
392
|
+
result = api_instance.update(npm_remote_href, npm_npm_remote, opts)
|
342
393
|
p result
|
343
394
|
rescue PulpNpmClient::ApiError => e
|
344
395
|
puts "Exception when calling RemotesNpmApi->update: #{e}"
|
@@ -350,8 +401,17 @@ end
|
|
350
401
|
|
351
402
|
Name | Type | Description | Notes
|
352
403
|
------------- | ------------- | ------------- | -------------
|
353
|
-
**npm_remote_href** | **String**|
|
354
|
-
**
|
404
|
+
**npm_remote_href** | **String**| |
|
405
|
+
**npm_npm_remote** | [**NpmNpmRemote**](NpmNpmRemote.md)| |
|
406
|
+
**name** | **String**| name | [optional]
|
407
|
+
**name__in** | **String**| name__in | [optional]
|
408
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
409
|
+
**pulp_last_updated** | **String**| pulp_last_updated | [optional]
|
410
|
+
**pulp_last_updated__gt** | **String**| pulp_last_updated__gt | [optional]
|
411
|
+
**pulp_last_updated__gte** | **String**| pulp_last_updated__gte | [optional]
|
412
|
+
**pulp_last_updated__lt** | **String**| pulp_last_updated__lt | [optional]
|
413
|
+
**pulp_last_updated__lte** | **String**| pulp_last_updated__lte | [optional]
|
414
|
+
**pulp_last_updated__range** | **String**| pulp_last_updated__range | [optional]
|
355
415
|
|
356
416
|
### Return type
|
357
417
|
|
@@ -359,10 +419,10 @@ Name | Type | Description | Notes
|
|
359
419
|
|
360
420
|
### Authorization
|
361
421
|
|
362
|
-
[
|
422
|
+
[basicAuth](../README.md#basicAuth)
|
363
423
|
|
364
424
|
### HTTP request headers
|
365
425
|
|
366
|
-
- **Content-Type**: application/json
|
426
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
367
427
|
- **Accept**: application/json
|
368
428
|
|
data/docs/RepositoriesNpmApi.md
CHANGED
@@ -8,7 +8,7 @@ Method | HTTP request | Description
|
|
8
8
|
[**delete**](RepositoriesNpmApi.md#delete) | **DELETE** {npm_repository_href} | Delete a npm repository
|
9
9
|
[**list**](RepositoriesNpmApi.md#list) | **GET** /pulp/api/v3/repositories/npm/npm/ | List npm repositorys
|
10
10
|
[**modify**](RepositoriesNpmApi.md#modify) | **POST** {npm_repository_href}modify/ | Modify Repository Content
|
11
|
-
[**partial_update**](RepositoriesNpmApi.md#partial_update) | **PATCH** {npm_repository_href} |
|
11
|
+
[**partial_update**](RepositoriesNpmApi.md#partial_update) | **PATCH** {npm_repository_href} | Update a npm repository
|
12
12
|
[**read**](RepositoriesNpmApi.md#read) | **GET** {npm_repository_href} | Inspect a npm repository
|
13
13
|
[**sync**](RepositoriesNpmApi.md#sync) | **POST** {npm_repository_href}sync/ | Sync from remote
|
14
14
|
[**update**](RepositoriesNpmApi.md#update) | **PUT** {npm_repository_href} | Update a npm repository
|
@@ -17,11 +17,11 @@ Method | HTTP request | Description
|
|
17
17
|
|
18
18
|
## create
|
19
19
|
|
20
|
-
>
|
20
|
+
> NpmNpmRepositoryResponse create(npm_npm_repository)
|
21
21
|
|
22
22
|
Create a npm repository
|
23
23
|
|
24
|
-
Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
24
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
25
25
|
|
26
26
|
### Example
|
27
27
|
|
@@ -30,17 +30,17 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
|
|
30
30
|
require 'pulp_npm_client'
|
31
31
|
# setup authorization
|
32
32
|
PulpNpmClient.configure do |config|
|
33
|
-
# Configure HTTP basic authorization:
|
33
|
+
# Configure HTTP basic authorization: basicAuth
|
34
34
|
config.username = 'YOUR USERNAME'
|
35
35
|
config.password = 'YOUR PASSWORD'
|
36
36
|
end
|
37
37
|
|
38
38
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
39
|
-
|
39
|
+
npm_npm_repository = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
|
40
40
|
|
41
41
|
begin
|
42
42
|
#Create a npm repository
|
43
|
-
result = api_instance.create(
|
43
|
+
result = api_instance.create(npm_npm_repository)
|
44
44
|
p result
|
45
45
|
rescue PulpNpmClient::ApiError => e
|
46
46
|
puts "Exception when calling RepositoriesNpmApi->create: #{e}"
|
@@ -52,25 +52,25 @@ end
|
|
52
52
|
|
53
53
|
Name | Type | Description | Notes
|
54
54
|
------------- | ------------- | ------------- | -------------
|
55
|
-
**
|
55
|
+
**npm_npm_repository** | [**NpmNpmRepository**](NpmNpmRepository.md)| |
|
56
56
|
|
57
57
|
### Return type
|
58
58
|
|
59
|
-
[**
|
59
|
+
[**NpmNpmRepositoryResponse**](NpmNpmRepositoryResponse.md)
|
60
60
|
|
61
61
|
### Authorization
|
62
62
|
|
63
|
-
[
|
63
|
+
[basicAuth](../README.md#basicAuth)
|
64
64
|
|
65
65
|
### HTTP request headers
|
66
66
|
|
67
|
-
- **Content-Type**: application/json
|
67
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
68
68
|
- **Accept**: application/json
|
69
69
|
|
70
70
|
|
71
71
|
## delete
|
72
72
|
|
73
|
-
> AsyncOperationResponse delete(npm_repository_href)
|
73
|
+
> AsyncOperationResponse delete(npm_repository_href, opts)
|
74
74
|
|
75
75
|
Delete a npm repository
|
76
76
|
|
@@ -83,17 +83,22 @@ Trigger an asynchronous delete task
|
|
83
83
|
require 'pulp_npm_client'
|
84
84
|
# setup authorization
|
85
85
|
PulpNpmClient.configure do |config|
|
86
|
-
# Configure HTTP basic authorization:
|
86
|
+
# Configure HTTP basic authorization: basicAuth
|
87
87
|
config.username = 'YOUR USERNAME'
|
88
88
|
config.password = 'YOUR PASSWORD'
|
89
89
|
end
|
90
90
|
|
91
91
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
92
|
-
npm_repository_href = 'npm_repository_href_example' # String |
|
92
|
+
npm_repository_href = 'npm_repository_href_example' # String |
|
93
|
+
opts = {
|
94
|
+
name: 'name_example', # String | name
|
95
|
+
name__in: 'name__in_example', # String | name__in
|
96
|
+
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
97
|
+
}
|
93
98
|
|
94
99
|
begin
|
95
100
|
#Delete a npm repository
|
96
|
-
result = api_instance.delete(npm_repository_href)
|
101
|
+
result = api_instance.delete(npm_repository_href, opts)
|
97
102
|
p result
|
98
103
|
rescue PulpNpmClient::ApiError => e
|
99
104
|
puts "Exception when calling RepositoriesNpmApi->delete: #{e}"
|
@@ -105,7 +110,10 @@ end
|
|
105
110
|
|
106
111
|
Name | Type | Description | Notes
|
107
112
|
------------- | ------------- | ------------- | -------------
|
108
|
-
**npm_repository_href** | **String**|
|
113
|
+
**npm_repository_href** | **String**| |
|
114
|
+
**name** | **String**| name | [optional]
|
115
|
+
**name__in** | **String**| name__in | [optional]
|
116
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
109
117
|
|
110
118
|
### Return type
|
111
119
|
|
@@ -113,7 +121,7 @@ Name | Type | Description | Notes
|
|
113
121
|
|
114
122
|
### Authorization
|
115
123
|
|
116
|
-
[
|
124
|
+
[basicAuth](../README.md#basicAuth)
|
117
125
|
|
118
126
|
### HTTP request headers
|
119
127
|
|
@@ -127,7 +135,7 @@ Name | Type | Description | Notes
|
|
127
135
|
|
128
136
|
List npm repositorys
|
129
137
|
|
130
|
-
Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
138
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
131
139
|
|
132
140
|
### Example
|
133
141
|
|
@@ -136,18 +144,18 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
|
|
136
144
|
require 'pulp_npm_client'
|
137
145
|
# setup authorization
|
138
146
|
PulpNpmClient.configure do |config|
|
139
|
-
# Configure HTTP basic authorization:
|
147
|
+
# Configure HTTP basic authorization: basicAuth
|
140
148
|
config.username = 'YOUR USERNAME'
|
141
149
|
config.password = 'YOUR PASSWORD'
|
142
150
|
end
|
143
151
|
|
144
152
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
145
153
|
opts = {
|
146
|
-
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
147
|
-
name: 'name_example', # String |
|
148
|
-
name__in: 'name__in_example', # String | Filter results where name is in a comma-separated list of values
|
149
154
|
limit: 56, # Integer | Number of results to return per page.
|
155
|
+
name: 'name_example', # String | name
|
156
|
+
name__in: 'name__in_example', # String | name__in
|
150
157
|
offset: 56, # Integer | The initial index from which to return the results.
|
158
|
+
ordering: 'ordering_example', # String | Which field to use when ordering the results.
|
151
159
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
152
160
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
153
161
|
}
|
@@ -166,11 +174,11 @@ end
|
|
166
174
|
|
167
175
|
Name | Type | Description | Notes
|
168
176
|
------------- | ------------- | ------------- | -------------
|
169
|
-
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
170
|
-
**name** | **String**| | [optional]
|
171
|
-
**name__in** | **String**| Filter results where name is in a comma-separated list of values | [optional]
|
172
177
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
178
|
+
**name** | **String**| name | [optional]
|
179
|
+
**name__in** | **String**| name__in | [optional]
|
173
180
|
**offset** | **Integer**| The initial index from which to return the results. | [optional]
|
181
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
174
182
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
175
183
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
176
184
|
|
@@ -180,7 +188,7 @@ Name | Type | Description | Notes
|
|
180
188
|
|
181
189
|
### Authorization
|
182
190
|
|
183
|
-
[
|
191
|
+
[basicAuth](../README.md#basicAuth)
|
184
192
|
|
185
193
|
### HTTP request headers
|
186
194
|
|
@@ -190,7 +198,7 @@ Name | Type | Description | Notes
|
|
190
198
|
|
191
199
|
## modify
|
192
200
|
|
193
|
-
> AsyncOperationResponse modify(npm_repository_href,
|
201
|
+
> AsyncOperationResponse modify(npm_repository_href, repository_add_remove_content)
|
194
202
|
|
195
203
|
Modify Repository Content
|
196
204
|
|
@@ -203,18 +211,18 @@ Trigger an asynchronous task to create a new repository version.
|
|
203
211
|
require 'pulp_npm_client'
|
204
212
|
# setup authorization
|
205
213
|
PulpNpmClient.configure do |config|
|
206
|
-
# Configure HTTP basic authorization:
|
214
|
+
# Configure HTTP basic authorization: basicAuth
|
207
215
|
config.username = 'YOUR USERNAME'
|
208
216
|
config.password = 'YOUR PASSWORD'
|
209
217
|
end
|
210
218
|
|
211
219
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
212
|
-
npm_repository_href = 'npm_repository_href_example' # String |
|
213
|
-
|
220
|
+
npm_repository_href = 'npm_repository_href_example' # String |
|
221
|
+
repository_add_remove_content = PulpNpmClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
214
222
|
|
215
223
|
begin
|
216
224
|
#Modify Repository Content
|
217
|
-
result = api_instance.modify(npm_repository_href,
|
225
|
+
result = api_instance.modify(npm_repository_href, repository_add_remove_content)
|
218
226
|
p result
|
219
227
|
rescue PulpNpmClient::ApiError => e
|
220
228
|
puts "Exception when calling RepositoriesNpmApi->modify: #{e}"
|
@@ -226,8 +234,8 @@ end
|
|
226
234
|
|
227
235
|
Name | Type | Description | Notes
|
228
236
|
------------- | ------------- | ------------- | -------------
|
229
|
-
**npm_repository_href** | **String**|
|
230
|
-
**
|
237
|
+
**npm_repository_href** | **String**| |
|
238
|
+
**repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
|
231
239
|
|
232
240
|
### Return type
|
233
241
|
|
@@ -235,19 +243,19 @@ Name | Type | Description | Notes
|
|
235
243
|
|
236
244
|
### Authorization
|
237
245
|
|
238
|
-
[
|
246
|
+
[basicAuth](../README.md#basicAuth)
|
239
247
|
|
240
248
|
### HTTP request headers
|
241
249
|
|
242
|
-
- **Content-Type**: application/json
|
250
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
243
251
|
- **Accept**: application/json
|
244
252
|
|
245
253
|
|
246
254
|
## partial_update
|
247
255
|
|
248
|
-
> AsyncOperationResponse partial_update(npm_repository_href,
|
256
|
+
> AsyncOperationResponse partial_update(npm_repository_href, patchednpm_npm_repository, opts)
|
249
257
|
|
250
|
-
|
258
|
+
Update a npm repository
|
251
259
|
|
252
260
|
Trigger an asynchronous partial update task
|
253
261
|
|
@@ -258,18 +266,23 @@ Trigger an asynchronous partial update task
|
|
258
266
|
require 'pulp_npm_client'
|
259
267
|
# setup authorization
|
260
268
|
PulpNpmClient.configure do |config|
|
261
|
-
# Configure HTTP basic authorization:
|
269
|
+
# Configure HTTP basic authorization: basicAuth
|
262
270
|
config.username = 'YOUR USERNAME'
|
263
271
|
config.password = 'YOUR PASSWORD'
|
264
272
|
end
|
265
273
|
|
266
274
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
267
|
-
npm_repository_href = 'npm_repository_href_example' # String |
|
268
|
-
|
275
|
+
npm_repository_href = 'npm_repository_href_example' # String |
|
276
|
+
patchednpm_npm_repository = PulpNpmClient::PatchednpmNpmRepository.new # PatchednpmNpmRepository |
|
277
|
+
opts = {
|
278
|
+
name: 'name_example', # String | name
|
279
|
+
name__in: 'name__in_example', # String | name__in
|
280
|
+
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
281
|
+
}
|
269
282
|
|
270
283
|
begin
|
271
|
-
#
|
272
|
-
result = api_instance.partial_update(npm_repository_href,
|
284
|
+
#Update a npm repository
|
285
|
+
result = api_instance.partial_update(npm_repository_href, patchednpm_npm_repository, opts)
|
273
286
|
p result
|
274
287
|
rescue PulpNpmClient::ApiError => e
|
275
288
|
puts "Exception when calling RepositoriesNpmApi->partial_update: #{e}"
|
@@ -281,8 +294,11 @@ end
|
|
281
294
|
|
282
295
|
Name | Type | Description | Notes
|
283
296
|
------------- | ------------- | ------------- | -------------
|
284
|
-
**npm_repository_href** | **String**|
|
285
|
-
**
|
297
|
+
**npm_repository_href** | **String**| |
|
298
|
+
**patchednpm_npm_repository** | [**PatchednpmNpmRepository**](PatchednpmNpmRepository.md)| |
|
299
|
+
**name** | **String**| name | [optional]
|
300
|
+
**name__in** | **String**| name__in | [optional]
|
301
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
286
302
|
|
287
303
|
### Return type
|
288
304
|
|
@@ -290,21 +306,21 @@ Name | Type | Description | Notes
|
|
290
306
|
|
291
307
|
### Authorization
|
292
308
|
|
293
|
-
[
|
309
|
+
[basicAuth](../README.md#basicAuth)
|
294
310
|
|
295
311
|
### HTTP request headers
|
296
312
|
|
297
|
-
- **Content-Type**: application/json
|
313
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
298
314
|
- **Accept**: application/json
|
299
315
|
|
300
316
|
|
301
317
|
## read
|
302
318
|
|
303
|
-
>
|
319
|
+
> NpmNpmRepositoryResponse read(npm_repository_href, opts)
|
304
320
|
|
305
321
|
Inspect a npm repository
|
306
322
|
|
307
|
-
Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
323
|
+
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
308
324
|
|
309
325
|
### Example
|
310
326
|
|
@@ -313,13 +329,13 @@ Similar to the PackageViewSet above, define endpoint_name, queryset and serializ
|
|
313
329
|
require 'pulp_npm_client'
|
314
330
|
# setup authorization
|
315
331
|
PulpNpmClient.configure do |config|
|
316
|
-
# Configure HTTP basic authorization:
|
332
|
+
# Configure HTTP basic authorization: basicAuth
|
317
333
|
config.username = 'YOUR USERNAME'
|
318
334
|
config.password = 'YOUR PASSWORD'
|
319
335
|
end
|
320
336
|
|
321
337
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
322
|
-
npm_repository_href = 'npm_repository_href_example' # String |
|
338
|
+
npm_repository_href = 'npm_repository_href_example' # String |
|
323
339
|
opts = {
|
324
340
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
325
341
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
@@ -339,17 +355,17 @@ end
|
|
339
355
|
|
340
356
|
Name | Type | Description | Notes
|
341
357
|
------------- | ------------- | ------------- | -------------
|
342
|
-
**npm_repository_href** | **String**|
|
358
|
+
**npm_repository_href** | **String**| |
|
343
359
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
344
360
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
345
361
|
|
346
362
|
### Return type
|
347
363
|
|
348
|
-
[**
|
364
|
+
[**NpmNpmRepositoryResponse**](NpmNpmRepositoryResponse.md)
|
349
365
|
|
350
366
|
### Authorization
|
351
367
|
|
352
|
-
[
|
368
|
+
[basicAuth](../README.md#basicAuth)
|
353
369
|
|
354
370
|
### HTTP request headers
|
355
371
|
|
@@ -359,7 +375,7 @@ Name | Type | Description | Notes
|
|
359
375
|
|
360
376
|
## sync
|
361
377
|
|
362
|
-
> AsyncOperationResponse sync(npm_repository_href,
|
378
|
+
> AsyncOperationResponse sync(npm_repository_href, repository_sync_url)
|
363
379
|
|
364
380
|
Sync from remote
|
365
381
|
|
@@ -372,18 +388,18 @@ Trigger an asynchronous task to sync content.
|
|
372
388
|
require 'pulp_npm_client'
|
373
389
|
# setup authorization
|
374
390
|
PulpNpmClient.configure do |config|
|
375
|
-
# Configure HTTP basic authorization:
|
391
|
+
# Configure HTTP basic authorization: basicAuth
|
376
392
|
config.username = 'YOUR USERNAME'
|
377
393
|
config.password = 'YOUR PASSWORD'
|
378
394
|
end
|
379
395
|
|
380
396
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
381
|
-
npm_repository_href = 'npm_repository_href_example' # String |
|
382
|
-
|
397
|
+
npm_repository_href = 'npm_repository_href_example' # String |
|
398
|
+
repository_sync_url = PulpNpmClient::RepositorySyncURL.new # RepositorySyncURL |
|
383
399
|
|
384
400
|
begin
|
385
401
|
#Sync from remote
|
386
|
-
result = api_instance.sync(npm_repository_href,
|
402
|
+
result = api_instance.sync(npm_repository_href, repository_sync_url)
|
387
403
|
p result
|
388
404
|
rescue PulpNpmClient::ApiError => e
|
389
405
|
puts "Exception when calling RepositoriesNpmApi->sync: #{e}"
|
@@ -395,8 +411,8 @@ end
|
|
395
411
|
|
396
412
|
Name | Type | Description | Notes
|
397
413
|
------------- | ------------- | ------------- | -------------
|
398
|
-
**npm_repository_href** | **String**|
|
399
|
-
**
|
414
|
+
**npm_repository_href** | **String**| |
|
415
|
+
**repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
400
416
|
|
401
417
|
### Return type
|
402
418
|
|
@@ -404,17 +420,17 @@ Name | Type | Description | Notes
|
|
404
420
|
|
405
421
|
### Authorization
|
406
422
|
|
407
|
-
[
|
423
|
+
[basicAuth](../README.md#basicAuth)
|
408
424
|
|
409
425
|
### HTTP request headers
|
410
426
|
|
411
|
-
- **Content-Type**: application/json
|
427
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
412
428
|
- **Accept**: application/json
|
413
429
|
|
414
430
|
|
415
431
|
## update
|
416
432
|
|
417
|
-
> AsyncOperationResponse update(npm_repository_href,
|
433
|
+
> AsyncOperationResponse update(npm_repository_href, npm_npm_repository, opts)
|
418
434
|
|
419
435
|
Update a npm repository
|
420
436
|
|
@@ -427,18 +443,23 @@ Trigger an asynchronous update task
|
|
427
443
|
require 'pulp_npm_client'
|
428
444
|
# setup authorization
|
429
445
|
PulpNpmClient.configure do |config|
|
430
|
-
# Configure HTTP basic authorization:
|
446
|
+
# Configure HTTP basic authorization: basicAuth
|
431
447
|
config.username = 'YOUR USERNAME'
|
432
448
|
config.password = 'YOUR PASSWORD'
|
433
449
|
end
|
434
450
|
|
435
451
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
436
|
-
npm_repository_href = 'npm_repository_href_example' # String |
|
437
|
-
|
452
|
+
npm_repository_href = 'npm_repository_href_example' # String |
|
453
|
+
npm_npm_repository = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
|
454
|
+
opts = {
|
455
|
+
name: 'name_example', # String | name
|
456
|
+
name__in: 'name__in_example', # String | name__in
|
457
|
+
ordering: 'ordering_example' # String | Which field to use when ordering the results.
|
458
|
+
}
|
438
459
|
|
439
460
|
begin
|
440
461
|
#Update a npm repository
|
441
|
-
result = api_instance.update(npm_repository_href,
|
462
|
+
result = api_instance.update(npm_repository_href, npm_npm_repository, opts)
|
442
463
|
p result
|
443
464
|
rescue PulpNpmClient::ApiError => e
|
444
465
|
puts "Exception when calling RepositoriesNpmApi->update: #{e}"
|
@@ -450,8 +471,11 @@ end
|
|
450
471
|
|
451
472
|
Name | Type | Description | Notes
|
452
473
|
------------- | ------------- | ------------- | -------------
|
453
|
-
**npm_repository_href** | **String**|
|
454
|
-
**
|
474
|
+
**npm_repository_href** | **String**| |
|
475
|
+
**npm_npm_repository** | [**NpmNpmRepository**](NpmNpmRepository.md)| |
|
476
|
+
**name** | **String**| name | [optional]
|
477
|
+
**name__in** | **String**| name__in | [optional]
|
478
|
+
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
455
479
|
|
456
480
|
### Return type
|
457
481
|
|
@@ -459,10 +483,10 @@ Name | Type | Description | Notes
|
|
459
483
|
|
460
484
|
### Authorization
|
461
485
|
|
462
|
-
[
|
486
|
+
[basicAuth](../README.md#basicAuth)
|
463
487
|
|
464
488
|
### HTTP request headers
|
465
489
|
|
466
|
-
- **Content-Type**: application/json
|
490
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
|
467
491
|
- **Accept**: application/json
|
468
492
|
|