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
data/docs/RepositoriesNpmApi.md
CHANGED
@@ -4,14 +4,14 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**create**](RepositoriesNpmApi.md#create) | **POST** /pulp/api/v3/repositories/npm/npm/ |
|
8
|
-
[**delete**](RepositoriesNpmApi.md#delete) | **DELETE** {
|
9
|
-
[**list**](RepositoriesNpmApi.md#list) | **GET** /pulp/api/v3/repositories/npm/npm/ |
|
10
|
-
[**modify**](RepositoriesNpmApi.md#modify) | **POST** {
|
11
|
-
[**partial_update**](RepositoriesNpmApi.md#partial_update) | **PATCH** {
|
12
|
-
[**read**](RepositoriesNpmApi.md#read) | **GET** {
|
13
|
-
[**sync**](RepositoriesNpmApi.md#sync) | **POST** {
|
14
|
-
[**update**](RepositoriesNpmApi.md#update) | **PUT** {
|
7
|
+
[**create**](RepositoriesNpmApi.md#create) | **POST** /pulp/api/v3/repositories/npm/npm/ | Create a npm repository
|
8
|
+
[**delete**](RepositoriesNpmApi.md#delete) | **DELETE** {npm_npm_repository_href} | Delete a npm repository
|
9
|
+
[**list**](RepositoriesNpmApi.md#list) | **GET** /pulp/api/v3/repositories/npm/npm/ | List npm repositorys
|
10
|
+
[**modify**](RepositoriesNpmApi.md#modify) | **POST** {npm_npm_repository_href}modify/ | Modify Repository Content
|
11
|
+
[**partial_update**](RepositoriesNpmApi.md#partial_update) | **PATCH** {npm_npm_repository_href} | Update a npm repository
|
12
|
+
[**read**](RepositoriesNpmApi.md#read) | **GET** {npm_npm_repository_href} | Inspect a npm repository
|
13
|
+
[**sync**](RepositoriesNpmApi.md#sync) | **POST** {npm_npm_repository_href}sync/ | Sync from remote
|
14
|
+
[**update**](RepositoriesNpmApi.md#update) | **PUT** {npm_npm_repository_href} | Update a npm repository
|
15
15
|
|
16
16
|
|
17
17
|
|
@@ -19,7 +19,7 @@ Method | HTTP request | Description
|
|
19
19
|
|
20
20
|
> NpmNpmRepositoryResponse create(npm_npm_repository)
|
21
21
|
|
22
|
-
|
22
|
+
Create a npm repository
|
23
23
|
|
24
24
|
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
25
25
|
|
@@ -39,6 +39,7 @@ api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
|
39
39
|
npm_npm_repository = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
|
40
40
|
|
41
41
|
begin
|
42
|
+
#Create a npm repository
|
42
43
|
result = api_instance.create(npm_npm_repository)
|
43
44
|
p result
|
44
45
|
rescue PulpNpmClient::ApiError => e
|
@@ -69,9 +70,9 @@ Name | Type | Description | Notes
|
|
69
70
|
|
70
71
|
## delete
|
71
72
|
|
72
|
-
> AsyncOperationResponse delete(
|
73
|
-
|
73
|
+
> AsyncOperationResponse delete(npm_npm_repository_href, opts)
|
74
74
|
|
75
|
+
Delete a npm repository
|
75
76
|
|
76
77
|
Trigger an asynchronous delete task
|
77
78
|
|
@@ -88,7 +89,7 @@ PulpNpmClient.configure do |config|
|
|
88
89
|
end
|
89
90
|
|
90
91
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
91
|
-
|
92
|
+
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
92
93
|
opts = {
|
93
94
|
name: 'name_example', # String | name
|
94
95
|
name__in: 'name__in_example', # String | name__in
|
@@ -96,7 +97,8 @@ opts = {
|
|
96
97
|
}
|
97
98
|
|
98
99
|
begin
|
99
|
-
|
100
|
+
#Delete a npm repository
|
101
|
+
result = api_instance.delete(npm_npm_repository_href, opts)
|
100
102
|
p result
|
101
103
|
rescue PulpNpmClient::ApiError => e
|
102
104
|
puts "Exception when calling RepositoriesNpmApi->delete: #{e}"
|
@@ -108,7 +110,7 @@ end
|
|
108
110
|
|
109
111
|
Name | Type | Description | Notes
|
110
112
|
------------- | ------------- | ------------- | -------------
|
111
|
-
**
|
113
|
+
**npm_npm_repository_href** | **String**| |
|
112
114
|
**name** | **String**| name | [optional]
|
113
115
|
**name__in** | **String**| name__in | [optional]
|
114
116
|
**ordering** | **String**| Which field to use when ordering the results. | [optional]
|
@@ -131,7 +133,7 @@ Name | Type | Description | Notes
|
|
131
133
|
|
132
134
|
> InlineResponse2003 list(opts)
|
133
135
|
|
134
|
-
|
136
|
+
List npm repositorys
|
135
137
|
|
136
138
|
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
137
139
|
|
@@ -159,6 +161,7 @@ opts = {
|
|
159
161
|
}
|
160
162
|
|
161
163
|
begin
|
164
|
+
#List npm repositorys
|
162
165
|
result = api_instance.list(opts)
|
163
166
|
p result
|
164
167
|
rescue PulpNpmClient::ApiError => e
|
@@ -195,7 +198,7 @@ Name | Type | Description | Notes
|
|
195
198
|
|
196
199
|
## modify
|
197
200
|
|
198
|
-
> AsyncOperationResponse modify(
|
201
|
+
> AsyncOperationResponse modify(npm_npm_repository_href, repository_add_remove_content)
|
199
202
|
|
200
203
|
Modify Repository Content
|
201
204
|
|
@@ -214,12 +217,12 @@ PulpNpmClient.configure do |config|
|
|
214
217
|
end
|
215
218
|
|
216
219
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
217
|
-
|
220
|
+
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
218
221
|
repository_add_remove_content = PulpNpmClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
|
219
222
|
|
220
223
|
begin
|
221
224
|
#Modify Repository Content
|
222
|
-
result = api_instance.modify(
|
225
|
+
result = api_instance.modify(npm_npm_repository_href, repository_add_remove_content)
|
223
226
|
p result
|
224
227
|
rescue PulpNpmClient::ApiError => e
|
225
228
|
puts "Exception when calling RepositoriesNpmApi->modify: #{e}"
|
@@ -231,7 +234,7 @@ end
|
|
231
234
|
|
232
235
|
Name | Type | Description | Notes
|
233
236
|
------------- | ------------- | ------------- | -------------
|
234
|
-
**
|
237
|
+
**npm_npm_repository_href** | **String**| |
|
235
238
|
**repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md)| |
|
236
239
|
|
237
240
|
### Return type
|
@@ -250,9 +253,9 @@ Name | Type | Description | Notes
|
|
250
253
|
|
251
254
|
## partial_update
|
252
255
|
|
253
|
-
> AsyncOperationResponse partial_update(
|
254
|
-
|
256
|
+
> AsyncOperationResponse partial_update(npm_npm_repository_href, patchednpm_npm_repository, opts)
|
255
257
|
|
258
|
+
Update a npm repository
|
256
259
|
|
257
260
|
Trigger an asynchronous partial update task
|
258
261
|
|
@@ -269,7 +272,7 @@ PulpNpmClient.configure do |config|
|
|
269
272
|
end
|
270
273
|
|
271
274
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
272
|
-
|
275
|
+
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
273
276
|
patchednpm_npm_repository = PulpNpmClient::PatchednpmNpmRepository.new # PatchednpmNpmRepository |
|
274
277
|
opts = {
|
275
278
|
name: 'name_example', # String | name
|
@@ -278,7 +281,8 @@ opts = {
|
|
278
281
|
}
|
279
282
|
|
280
283
|
begin
|
281
|
-
|
284
|
+
#Update a npm repository
|
285
|
+
result = api_instance.partial_update(npm_npm_repository_href, patchednpm_npm_repository, opts)
|
282
286
|
p result
|
283
287
|
rescue PulpNpmClient::ApiError => e
|
284
288
|
puts "Exception when calling RepositoriesNpmApi->partial_update: #{e}"
|
@@ -290,7 +294,7 @@ end
|
|
290
294
|
|
291
295
|
Name | Type | Description | Notes
|
292
296
|
------------- | ------------- | ------------- | -------------
|
293
|
-
**
|
297
|
+
**npm_npm_repository_href** | **String**| |
|
294
298
|
**patchednpm_npm_repository** | [**PatchednpmNpmRepository**](PatchednpmNpmRepository.md)| |
|
295
299
|
**name** | **String**| name | [optional]
|
296
300
|
**name__in** | **String**| name__in | [optional]
|
@@ -312,9 +316,9 @@ Name | Type | Description | Notes
|
|
312
316
|
|
313
317
|
## read
|
314
318
|
|
315
|
-
> NpmNpmRepositoryResponse read(
|
316
|
-
|
319
|
+
> NpmNpmRepositoryResponse read(npm_npm_repository_href, opts)
|
317
320
|
|
321
|
+
Inspect a npm repository
|
318
322
|
|
319
323
|
A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
320
324
|
|
@@ -331,14 +335,15 @@ PulpNpmClient.configure do |config|
|
|
331
335
|
end
|
332
336
|
|
333
337
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
334
|
-
|
338
|
+
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
335
339
|
opts = {
|
336
340
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
337
341
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
338
342
|
}
|
339
343
|
|
340
344
|
begin
|
341
|
-
|
345
|
+
#Inspect a npm repository
|
346
|
+
result = api_instance.read(npm_npm_repository_href, opts)
|
342
347
|
p result
|
343
348
|
rescue PulpNpmClient::ApiError => e
|
344
349
|
puts "Exception when calling RepositoriesNpmApi->read: #{e}"
|
@@ -350,7 +355,7 @@ end
|
|
350
355
|
|
351
356
|
Name | Type | Description | Notes
|
352
357
|
------------- | ------------- | ------------- | -------------
|
353
|
-
**
|
358
|
+
**npm_npm_repository_href** | **String**| |
|
354
359
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
355
360
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
356
361
|
|
@@ -370,7 +375,7 @@ Name | Type | Description | Notes
|
|
370
375
|
|
371
376
|
## sync
|
372
377
|
|
373
|
-
> AsyncOperationResponse sync(
|
378
|
+
> AsyncOperationResponse sync(npm_npm_repository_href, repository_sync_url)
|
374
379
|
|
375
380
|
Sync from remote
|
376
381
|
|
@@ -389,12 +394,12 @@ PulpNpmClient.configure do |config|
|
|
389
394
|
end
|
390
395
|
|
391
396
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
392
|
-
|
397
|
+
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
393
398
|
repository_sync_url = PulpNpmClient::RepositorySyncURL.new # RepositorySyncURL |
|
394
399
|
|
395
400
|
begin
|
396
401
|
#Sync from remote
|
397
|
-
result = api_instance.sync(
|
402
|
+
result = api_instance.sync(npm_npm_repository_href, repository_sync_url)
|
398
403
|
p result
|
399
404
|
rescue PulpNpmClient::ApiError => e
|
400
405
|
puts "Exception when calling RepositoriesNpmApi->sync: #{e}"
|
@@ -406,7 +411,7 @@ end
|
|
406
411
|
|
407
412
|
Name | Type | Description | Notes
|
408
413
|
------------- | ------------- | ------------- | -------------
|
409
|
-
**
|
414
|
+
**npm_npm_repository_href** | **String**| |
|
410
415
|
**repository_sync_url** | [**RepositorySyncURL**](RepositorySyncURL.md)| |
|
411
416
|
|
412
417
|
### Return type
|
@@ -425,9 +430,9 @@ Name | Type | Description | Notes
|
|
425
430
|
|
426
431
|
## update
|
427
432
|
|
428
|
-
> AsyncOperationResponse update(
|
429
|
-
|
433
|
+
> AsyncOperationResponse update(npm_npm_repository_href, npm_npm_repository, opts)
|
430
434
|
|
435
|
+
Update a npm repository
|
431
436
|
|
432
437
|
Trigger an asynchronous update task
|
433
438
|
|
@@ -444,7 +449,7 @@ PulpNpmClient.configure do |config|
|
|
444
449
|
end
|
445
450
|
|
446
451
|
api_instance = PulpNpmClient::RepositoriesNpmApi.new
|
447
|
-
|
452
|
+
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
448
453
|
npm_npm_repository = PulpNpmClient::NpmNpmRepository.new # NpmNpmRepository |
|
449
454
|
opts = {
|
450
455
|
name: 'name_example', # String | name
|
@@ -453,7 +458,8 @@ opts = {
|
|
453
458
|
}
|
454
459
|
|
455
460
|
begin
|
456
|
-
|
461
|
+
#Update a npm repository
|
462
|
+
result = api_instance.update(npm_npm_repository_href, npm_npm_repository, opts)
|
457
463
|
p result
|
458
464
|
rescue PulpNpmClient::ApiError => e
|
459
465
|
puts "Exception when calling RepositoriesNpmApi->update: #{e}"
|
@@ -465,7 +471,7 @@ end
|
|
465
471
|
|
466
472
|
Name | Type | Description | Notes
|
467
473
|
------------- | ------------- | ------------- | -------------
|
468
|
-
**
|
474
|
+
**npm_npm_repository_href** | **String**| |
|
469
475
|
**npm_npm_repository** | [**NpmNpmRepository**](NpmNpmRepository.md)| |
|
470
476
|
**name** | **String**| name | [optional]
|
471
477
|
**name__in** | **String**| name__in | [optional]
|
@@ -4,18 +4,18 @@ All URIs are relative to *http://pulp*
|
|
4
4
|
|
5
5
|
Method | HTTP request | Description
|
6
6
|
------------- | ------------- | -------------
|
7
|
-
[**delete**](RepositoriesNpmVersionsApi.md#delete) | **DELETE** {
|
8
|
-
[**list**](RepositoriesNpmVersionsApi.md#list) | **GET** {
|
9
|
-
[**read**](RepositoriesNpmVersionsApi.md#read) | **GET** {
|
10
|
-
[**repair**](RepositoriesNpmVersionsApi.md#repair) | **POST** {
|
7
|
+
[**delete**](RepositoriesNpmVersionsApi.md#delete) | **DELETE** {npm_npm_repository_version_href} | Delete a repository version
|
8
|
+
[**list**](RepositoriesNpmVersionsApi.md#list) | **GET** {npm_npm_repository_href}versions/ | List repository versions
|
9
|
+
[**read**](RepositoriesNpmVersionsApi.md#read) | **GET** {npm_npm_repository_version_href} | Inspect a repository version
|
10
|
+
[**repair**](RepositoriesNpmVersionsApi.md#repair) | **POST** {npm_npm_repository_version_href}repair/ |
|
11
11
|
|
12
12
|
|
13
13
|
|
14
14
|
## delete
|
15
15
|
|
16
|
-
> AsyncOperationResponse delete(
|
17
|
-
|
16
|
+
> AsyncOperationResponse delete(npm_npm_repository_version_href, opts)
|
18
17
|
|
18
|
+
Delete a repository version
|
19
19
|
|
20
20
|
Trigger an asynchronous task to delete a repositroy version.
|
21
21
|
|
@@ -32,7 +32,7 @@ PulpNpmClient.configure do |config|
|
|
32
32
|
end
|
33
33
|
|
34
34
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
35
|
-
|
35
|
+
npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
|
36
36
|
opts = {
|
37
37
|
content: 'content_example', # String | content
|
38
38
|
content__in: 'content__in_example', # String | content__in
|
@@ -52,7 +52,8 @@ opts = {
|
|
52
52
|
}
|
53
53
|
|
54
54
|
begin
|
55
|
-
|
55
|
+
#Delete a repository version
|
56
|
+
result = api_instance.delete(npm_npm_repository_version_href, opts)
|
56
57
|
p result
|
57
58
|
rescue PulpNpmClient::ApiError => e
|
58
59
|
puts "Exception when calling RepositoriesNpmVersionsApi->delete: #{e}"
|
@@ -64,7 +65,7 @@ end
|
|
64
65
|
|
65
66
|
Name | Type | Description | Notes
|
66
67
|
------------- | ------------- | ------------- | -------------
|
67
|
-
**
|
68
|
+
**npm_npm_repository_version_href** | **String**| |
|
68
69
|
**content** | **String**| content | [optional]
|
69
70
|
**content__in** | **String**| content__in | [optional]
|
70
71
|
**number** | **String**| number | [optional]
|
@@ -97,9 +98,9 @@ Name | Type | Description | Notes
|
|
97
98
|
|
98
99
|
## list
|
99
100
|
|
100
|
-
> InlineResponse2004 list(
|
101
|
-
|
101
|
+
> InlineResponse2004 list(npm_npm_repository_href, opts)
|
102
102
|
|
103
|
+
List repository versions
|
103
104
|
|
104
105
|
A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
105
106
|
|
@@ -116,7 +117,7 @@ PulpNpmClient.configure do |config|
|
|
116
117
|
end
|
117
118
|
|
118
119
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
119
|
-
|
120
|
+
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
120
121
|
opts = {
|
121
122
|
content: 'content_example', # String | content
|
122
123
|
content__in: 'content__in_example', # String | content__in
|
@@ -140,7 +141,8 @@ opts = {
|
|
140
141
|
}
|
141
142
|
|
142
143
|
begin
|
143
|
-
|
144
|
+
#List repository versions
|
145
|
+
result = api_instance.list(npm_npm_repository_href, opts)
|
144
146
|
p result
|
145
147
|
rescue PulpNpmClient::ApiError => e
|
146
148
|
puts "Exception when calling RepositoriesNpmVersionsApi->list: #{e}"
|
@@ -152,7 +154,7 @@ end
|
|
152
154
|
|
153
155
|
Name | Type | Description | Notes
|
154
156
|
------------- | ------------- | ------------- | -------------
|
155
|
-
**
|
157
|
+
**npm_npm_repository_href** | **String**| |
|
156
158
|
**content** | **String**| content | [optional]
|
157
159
|
**content__in** | **String**| content__in | [optional]
|
158
160
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
@@ -189,9 +191,9 @@ Name | Type | Description | Notes
|
|
189
191
|
|
190
192
|
## read
|
191
193
|
|
192
|
-
> RepositoryVersionResponse read(
|
193
|
-
|
194
|
+
> RepositoryVersionResponse read(npm_npm_repository_version_href, opts)
|
194
195
|
|
196
|
+
Inspect a repository version
|
195
197
|
|
196
198
|
A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
197
199
|
|
@@ -208,14 +210,15 @@ PulpNpmClient.configure do |config|
|
|
208
210
|
end
|
209
211
|
|
210
212
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
211
|
-
|
213
|
+
npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
|
212
214
|
opts = {
|
213
215
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
214
216
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
215
217
|
}
|
216
218
|
|
217
219
|
begin
|
218
|
-
|
220
|
+
#Inspect a repository version
|
221
|
+
result = api_instance.read(npm_npm_repository_version_href, opts)
|
219
222
|
p result
|
220
223
|
rescue PulpNpmClient::ApiError => e
|
221
224
|
puts "Exception when calling RepositoriesNpmVersionsApi->read: #{e}"
|
@@ -227,7 +230,7 @@ end
|
|
227
230
|
|
228
231
|
Name | Type | Description | Notes
|
229
232
|
------------- | ------------- | ------------- | -------------
|
230
|
-
**
|
233
|
+
**npm_npm_repository_version_href** | **String**| |
|
231
234
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
232
235
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
233
236
|
|
@@ -247,7 +250,7 @@ Name | Type | Description | Notes
|
|
247
250
|
|
248
251
|
## repair
|
249
252
|
|
250
|
-
> AsyncOperationResponse repair(
|
253
|
+
> AsyncOperationResponse repair(npm_npm_repository_version_href, repository_version)
|
251
254
|
|
252
255
|
|
253
256
|
|
@@ -266,11 +269,11 @@ PulpNpmClient.configure do |config|
|
|
266
269
|
end
|
267
270
|
|
268
271
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
269
|
-
|
272
|
+
npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
|
270
273
|
repository_version = PulpNpmClient::RepositoryVersion.new # RepositoryVersion |
|
271
274
|
|
272
275
|
begin
|
273
|
-
result = api_instance.repair(
|
276
|
+
result = api_instance.repair(npm_npm_repository_version_href, repository_version)
|
274
277
|
p result
|
275
278
|
rescue PulpNpmClient::ApiError => e
|
276
279
|
puts "Exception when calling RepositoriesNpmVersionsApi->repair: #{e}"
|
@@ -282,7 +285,7 @@ end
|
|
282
285
|
|
283
286
|
Name | Type | Description | Notes
|
284
287
|
------------- | ------------- | ------------- | -------------
|
285
|
-
**
|
288
|
+
**npm_npm_repository_version_href** | **String**| |
|
286
289
|
**repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
|
287
290
|
|
288
291
|
### Return type
|
@@ -19,6 +19,7 @@ module PulpNpmClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Create a package
|
22
23
|
# Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
|
23
24
|
# @param relative_path [String]
|
24
25
|
# @param name [String]
|
@@ -33,6 +34,7 @@ module PulpNpmClient
|
|
33
34
|
data
|
34
35
|
end
|
35
36
|
|
37
|
+
# Create a package
|
36
38
|
# Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
|
37
39
|
# @param relative_path [String]
|
38
40
|
# @param name [String]
|
@@ -105,6 +107,7 @@ module PulpNpmClient
|
|
105
107
|
return data, status_code, headers
|
106
108
|
end
|
107
109
|
|
110
|
+
# List packages
|
108
111
|
# 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.
|
109
112
|
# @param [Hash] opts the optional parameters
|
110
113
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -123,6 +126,7 @@ module PulpNpmClient
|
|
123
126
|
data
|
124
127
|
end
|
125
128
|
|
129
|
+
# List packages
|
126
130
|
# 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.
|
127
131
|
# @param [Hash] opts the optional parameters
|
128
132
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -189,33 +193,35 @@ module PulpNpmClient
|
|
189
193
|
return data, status_code, headers
|
190
194
|
end
|
191
195
|
|
196
|
+
# Inspect a package
|
192
197
|
# 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.
|
193
|
-
# @param
|
198
|
+
# @param npm_package_href [String]
|
194
199
|
# @param [Hash] opts the optional parameters
|
195
200
|
# @option opts [String] :fields A list of fields to include in the response.
|
196
201
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
197
202
|
# @return [NpmPackageResponse]
|
198
|
-
def read(
|
199
|
-
data, _status_code, _headers = read_with_http_info(
|
203
|
+
def read(npm_package_href, opts = {})
|
204
|
+
data, _status_code, _headers = read_with_http_info(npm_package_href, opts)
|
200
205
|
data
|
201
206
|
end
|
202
207
|
|
208
|
+
# Inspect a package
|
203
209
|
# 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.
|
204
|
-
# @param
|
210
|
+
# @param npm_package_href [String]
|
205
211
|
# @param [Hash] opts the optional parameters
|
206
212
|
# @option opts [String] :fields A list of fields to include in the response.
|
207
213
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
208
214
|
# @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
|
209
|
-
def read_with_http_info(
|
215
|
+
def read_with_http_info(npm_package_href, opts = {})
|
210
216
|
if @api_client.config.debugging
|
211
217
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.read ...'
|
212
218
|
end
|
213
|
-
# verify the required parameter '
|
214
|
-
if @api_client.config.client_side_validation &&
|
215
|
-
fail ArgumentError, "Missing the required parameter '
|
219
|
+
# verify the required parameter 'npm_package_href' is set
|
220
|
+
if @api_client.config.client_side_validation && npm_package_href.nil?
|
221
|
+
fail ArgumentError, "Missing the required parameter 'npm_package_href' when calling ContentPackagesApi.read"
|
216
222
|
end
|
217
223
|
# resource path
|
218
|
-
local_var_path = '{
|
224
|
+
local_var_path = '{npm_package_href}'.sub('{' + 'npm_package_href' + '}', CGI.escape(npm_package_href.to_s).gsub('%2F', '/'))
|
219
225
|
|
220
226
|
# query parameters
|
221
227
|
query_params = opts[:query_params] || {}
|