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
@@ -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 npm repository
|
22
23
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
23
24
|
# @param npm_npm_repository [NpmNpmRepository]
|
24
25
|
# @param [Hash] opts the optional parameters
|
@@ -28,6 +29,7 @@ module PulpNpmClient
|
|
28
29
|
data
|
29
30
|
end
|
30
31
|
|
32
|
+
# Create a npm repository
|
31
33
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
32
34
|
# @param npm_npm_repository [NpmNpmRepository]
|
33
35
|
# @param [Hash] opts the optional parameters
|
@@ -81,35 +83,37 @@ module PulpNpmClient
|
|
81
83
|
return data, status_code, headers
|
82
84
|
end
|
83
85
|
|
86
|
+
# Delete a npm repository
|
84
87
|
# Trigger an asynchronous delete task
|
85
|
-
# @param
|
88
|
+
# @param npm_npm_repository_href [String]
|
86
89
|
# @param [Hash] opts the optional parameters
|
87
90
|
# @option opts [String] :name name
|
88
91
|
# @option opts [String] :name__in name__in
|
89
92
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
90
93
|
# @return [AsyncOperationResponse]
|
91
|
-
def delete(
|
92
|
-
data, _status_code, _headers = delete_with_http_info(
|
94
|
+
def delete(npm_npm_repository_href, opts = {})
|
95
|
+
data, _status_code, _headers = delete_with_http_info(npm_npm_repository_href, opts)
|
93
96
|
data
|
94
97
|
end
|
95
98
|
|
99
|
+
# Delete a npm repository
|
96
100
|
# Trigger an asynchronous delete task
|
97
|
-
# @param
|
101
|
+
# @param npm_npm_repository_href [String]
|
98
102
|
# @param [Hash] opts the optional parameters
|
99
103
|
# @option opts [String] :name name
|
100
104
|
# @option opts [String] :name__in name__in
|
101
105
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
102
106
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
103
|
-
def delete_with_http_info(
|
107
|
+
def delete_with_http_info(npm_npm_repository_href, opts = {})
|
104
108
|
if @api_client.config.debugging
|
105
109
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.delete ...'
|
106
110
|
end
|
107
|
-
# verify the required parameter '
|
108
|
-
if @api_client.config.client_side_validation &&
|
109
|
-
fail ArgumentError, "Missing the required parameter '
|
111
|
+
# verify the required parameter 'npm_npm_repository_href' is set
|
112
|
+
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.delete"
|
110
114
|
end
|
111
115
|
# resource path
|
112
|
-
local_var_path = '{
|
116
|
+
local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
113
117
|
|
114
118
|
# query parameters
|
115
119
|
query_params = opts[:query_params] || {}
|
@@ -150,6 +154,7 @@ module PulpNpmClient
|
|
150
154
|
return data, status_code, headers
|
151
155
|
end
|
152
156
|
|
157
|
+
# List npm repositorys
|
153
158
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
154
159
|
# @param [Hash] opts the optional parameters
|
155
160
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -165,6 +170,7 @@ module PulpNpmClient
|
|
165
170
|
data
|
166
171
|
end
|
167
172
|
|
173
|
+
# List npm repositorys
|
168
174
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
169
175
|
# @param [Hash] opts the optional parameters
|
170
176
|
# @option opts [Integer] :limit Number of results to return per page.
|
@@ -227,35 +233,35 @@ module PulpNpmClient
|
|
227
233
|
|
228
234
|
# Modify Repository Content
|
229
235
|
# Trigger an asynchronous task to create a new repository version.
|
230
|
-
# @param
|
236
|
+
# @param npm_npm_repository_href [String]
|
231
237
|
# @param repository_add_remove_content [RepositoryAddRemoveContent]
|
232
238
|
# @param [Hash] opts the optional parameters
|
233
239
|
# @return [AsyncOperationResponse]
|
234
|
-
def modify(
|
235
|
-
data, _status_code, _headers = modify_with_http_info(
|
240
|
+
def modify(npm_npm_repository_href, repository_add_remove_content, opts = {})
|
241
|
+
data, _status_code, _headers = modify_with_http_info(npm_npm_repository_href, repository_add_remove_content, opts)
|
236
242
|
data
|
237
243
|
end
|
238
244
|
|
239
245
|
# Modify Repository Content
|
240
246
|
# Trigger an asynchronous task to create a new repository version.
|
241
|
-
# @param
|
247
|
+
# @param npm_npm_repository_href [String]
|
242
248
|
# @param repository_add_remove_content [RepositoryAddRemoveContent]
|
243
249
|
# @param [Hash] opts the optional parameters
|
244
250
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
245
|
-
def modify_with_http_info(
|
251
|
+
def modify_with_http_info(npm_npm_repository_href, repository_add_remove_content, opts = {})
|
246
252
|
if @api_client.config.debugging
|
247
253
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.modify ...'
|
248
254
|
end
|
249
|
-
# verify the required parameter '
|
250
|
-
if @api_client.config.client_side_validation &&
|
251
|
-
fail ArgumentError, "Missing the required parameter '
|
255
|
+
# verify the required parameter 'npm_npm_repository_href' is set
|
256
|
+
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
257
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.modify"
|
252
258
|
end
|
253
259
|
# verify the required parameter 'repository_add_remove_content' is set
|
254
260
|
if @api_client.config.client_side_validation && repository_add_remove_content.nil?
|
255
261
|
fail ArgumentError, "Missing the required parameter 'repository_add_remove_content' when calling RepositoriesNpmApi.modify"
|
256
262
|
end
|
257
263
|
# resource path
|
258
|
-
local_var_path = '{
|
264
|
+
local_var_path = '{npm_npm_repository_href}modify/'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
259
265
|
|
260
266
|
# query parameters
|
261
267
|
query_params = opts[:query_params] || {}
|
@@ -295,41 +301,43 @@ module PulpNpmClient
|
|
295
301
|
return data, status_code, headers
|
296
302
|
end
|
297
303
|
|
304
|
+
# Update a npm repository
|
298
305
|
# Trigger an asynchronous partial update task
|
299
|
-
# @param
|
306
|
+
# @param npm_npm_repository_href [String]
|
300
307
|
# @param patchednpm_npm_repository [PatchednpmNpmRepository]
|
301
308
|
# @param [Hash] opts the optional parameters
|
302
309
|
# @option opts [String] :name name
|
303
310
|
# @option opts [String] :name__in name__in
|
304
311
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
305
312
|
# @return [AsyncOperationResponse]
|
306
|
-
def partial_update(
|
307
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
313
|
+
def partial_update(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
|
314
|
+
data, _status_code, _headers = partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts)
|
308
315
|
data
|
309
316
|
end
|
310
317
|
|
318
|
+
# Update a npm repository
|
311
319
|
# Trigger an asynchronous partial update task
|
312
|
-
# @param
|
320
|
+
# @param npm_npm_repository_href [String]
|
313
321
|
# @param patchednpm_npm_repository [PatchednpmNpmRepository]
|
314
322
|
# @param [Hash] opts the optional parameters
|
315
323
|
# @option opts [String] :name name
|
316
324
|
# @option opts [String] :name__in name__in
|
317
325
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
318
326
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
319
|
-
def partial_update_with_http_info(
|
327
|
+
def partial_update_with_http_info(npm_npm_repository_href, patchednpm_npm_repository, opts = {})
|
320
328
|
if @api_client.config.debugging
|
321
329
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.partial_update ...'
|
322
330
|
end
|
323
|
-
# verify the required parameter '
|
324
|
-
if @api_client.config.client_side_validation &&
|
325
|
-
fail ArgumentError, "Missing the required parameter '
|
331
|
+
# verify the required parameter 'npm_npm_repository_href' is set
|
332
|
+
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
333
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.partial_update"
|
326
334
|
end
|
327
335
|
# verify the required parameter 'patchednpm_npm_repository' is set
|
328
336
|
if @api_client.config.client_side_validation && patchednpm_npm_repository.nil?
|
329
337
|
fail ArgumentError, "Missing the required parameter 'patchednpm_npm_repository' when calling RepositoriesNpmApi.partial_update"
|
330
338
|
end
|
331
339
|
# resource path
|
332
|
-
local_var_path = '{
|
340
|
+
local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
333
341
|
|
334
342
|
# query parameters
|
335
343
|
query_params = opts[:query_params] || {}
|
@@ -372,33 +380,35 @@ module PulpNpmClient
|
|
372
380
|
return data, status_code, headers
|
373
381
|
end
|
374
382
|
|
383
|
+
# Inspect a npm repository
|
375
384
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
376
|
-
# @param
|
385
|
+
# @param npm_npm_repository_href [String]
|
377
386
|
# @param [Hash] opts the optional parameters
|
378
387
|
# @option opts [String] :fields A list of fields to include in the response.
|
379
388
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
380
389
|
# @return [NpmNpmRepositoryResponse]
|
381
|
-
def read(
|
382
|
-
data, _status_code, _headers = read_with_http_info(
|
390
|
+
def read(npm_npm_repository_href, opts = {})
|
391
|
+
data, _status_code, _headers = read_with_http_info(npm_npm_repository_href, opts)
|
383
392
|
data
|
384
393
|
end
|
385
394
|
|
395
|
+
# Inspect a npm repository
|
386
396
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
387
|
-
# @param
|
397
|
+
# @param npm_npm_repository_href [String]
|
388
398
|
# @param [Hash] opts the optional parameters
|
389
399
|
# @option opts [String] :fields A list of fields to include in the response.
|
390
400
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
391
401
|
# @return [Array<(NpmNpmRepositoryResponse, Integer, Hash)>] NpmNpmRepositoryResponse data, response status code and response headers
|
392
|
-
def read_with_http_info(
|
402
|
+
def read_with_http_info(npm_npm_repository_href, opts = {})
|
393
403
|
if @api_client.config.debugging
|
394
404
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.read ...'
|
395
405
|
end
|
396
|
-
# verify the required parameter '
|
397
|
-
if @api_client.config.client_side_validation &&
|
398
|
-
fail ArgumentError, "Missing the required parameter '
|
406
|
+
# verify the required parameter 'npm_npm_repository_href' is set
|
407
|
+
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
408
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.read"
|
399
409
|
end
|
400
410
|
# resource path
|
401
|
-
local_var_path = '{
|
411
|
+
local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
402
412
|
|
403
413
|
# query parameters
|
404
414
|
query_params = opts[:query_params] || {}
|
@@ -440,35 +450,35 @@ module PulpNpmClient
|
|
440
450
|
|
441
451
|
# Sync from remote
|
442
452
|
# Trigger an asynchronous task to sync content.
|
443
|
-
# @param
|
453
|
+
# @param npm_npm_repository_href [String]
|
444
454
|
# @param repository_sync_url [RepositorySyncURL]
|
445
455
|
# @param [Hash] opts the optional parameters
|
446
456
|
# @return [AsyncOperationResponse]
|
447
|
-
def sync(
|
448
|
-
data, _status_code, _headers = sync_with_http_info(
|
457
|
+
def sync(npm_npm_repository_href, repository_sync_url, opts = {})
|
458
|
+
data, _status_code, _headers = sync_with_http_info(npm_npm_repository_href, repository_sync_url, opts)
|
449
459
|
data
|
450
460
|
end
|
451
461
|
|
452
462
|
# Sync from remote
|
453
463
|
# Trigger an asynchronous task to sync content.
|
454
|
-
# @param
|
464
|
+
# @param npm_npm_repository_href [String]
|
455
465
|
# @param repository_sync_url [RepositorySyncURL]
|
456
466
|
# @param [Hash] opts the optional parameters
|
457
467
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
458
|
-
def sync_with_http_info(
|
468
|
+
def sync_with_http_info(npm_npm_repository_href, repository_sync_url, opts = {})
|
459
469
|
if @api_client.config.debugging
|
460
470
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.sync ...'
|
461
471
|
end
|
462
|
-
# verify the required parameter '
|
463
|
-
if @api_client.config.client_side_validation &&
|
464
|
-
fail ArgumentError, "Missing the required parameter '
|
472
|
+
# verify the required parameter 'npm_npm_repository_href' is set
|
473
|
+
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
474
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.sync"
|
465
475
|
end
|
466
476
|
# verify the required parameter 'repository_sync_url' is set
|
467
477
|
if @api_client.config.client_side_validation && repository_sync_url.nil?
|
468
478
|
fail ArgumentError, "Missing the required parameter 'repository_sync_url' when calling RepositoriesNpmApi.sync"
|
469
479
|
end
|
470
480
|
# resource path
|
471
|
-
local_var_path = '{
|
481
|
+
local_var_path = '{npm_npm_repository_href}sync/'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
472
482
|
|
473
483
|
# query parameters
|
474
484
|
query_params = opts[:query_params] || {}
|
@@ -508,41 +518,43 @@ module PulpNpmClient
|
|
508
518
|
return data, status_code, headers
|
509
519
|
end
|
510
520
|
|
521
|
+
# Update a npm repository
|
511
522
|
# Trigger an asynchronous update task
|
512
|
-
# @param
|
523
|
+
# @param npm_npm_repository_href [String]
|
513
524
|
# @param npm_npm_repository [NpmNpmRepository]
|
514
525
|
# @param [Hash] opts the optional parameters
|
515
526
|
# @option opts [String] :name name
|
516
527
|
# @option opts [String] :name__in name__in
|
517
528
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
518
529
|
# @return [AsyncOperationResponse]
|
519
|
-
def update(
|
520
|
-
data, _status_code, _headers = update_with_http_info(
|
530
|
+
def update(npm_npm_repository_href, npm_npm_repository, opts = {})
|
531
|
+
data, _status_code, _headers = update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts)
|
521
532
|
data
|
522
533
|
end
|
523
534
|
|
535
|
+
# Update a npm repository
|
524
536
|
# Trigger an asynchronous update task
|
525
|
-
# @param
|
537
|
+
# @param npm_npm_repository_href [String]
|
526
538
|
# @param npm_npm_repository [NpmNpmRepository]
|
527
539
|
# @param [Hash] opts the optional parameters
|
528
540
|
# @option opts [String] :name name
|
529
541
|
# @option opts [String] :name__in name__in
|
530
542
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
531
543
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
532
|
-
def update_with_http_info(
|
544
|
+
def update_with_http_info(npm_npm_repository_href, npm_npm_repository, opts = {})
|
533
545
|
if @api_client.config.debugging
|
534
546
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmApi.update ...'
|
535
547
|
end
|
536
|
-
# verify the required parameter '
|
537
|
-
if @api_client.config.client_side_validation &&
|
538
|
-
fail ArgumentError, "Missing the required parameter '
|
548
|
+
# verify the required parameter 'npm_npm_repository_href' is set
|
549
|
+
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
550
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmApi.update"
|
539
551
|
end
|
540
552
|
# verify the required parameter 'npm_npm_repository' is set
|
541
553
|
if @api_client.config.client_side_validation && npm_npm_repository.nil?
|
542
554
|
fail ArgumentError, "Missing the required parameter 'npm_npm_repository' when calling RepositoriesNpmApi.update"
|
543
555
|
end
|
544
556
|
# resource path
|
545
|
-
local_var_path = '{
|
557
|
+
local_var_path = '{npm_npm_repository_href}'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
546
558
|
|
547
559
|
# query parameters
|
548
560
|
query_params = opts[:query_params] || {}
|
@@ -19,8 +19,9 @@ module PulpNpmClient
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
|
+
# Delete a repository version
|
22
23
|
# Trigger an asynchronous task to delete a repositroy version.
|
23
|
-
# @param
|
24
|
+
# @param npm_npm_repository_version_href [String]
|
24
25
|
# @param [Hash] opts the optional parameters
|
25
26
|
# @option opts [String] :content content
|
26
27
|
# @option opts [String] :content__in content__in
|
@@ -38,13 +39,14 @@ module PulpNpmClient
|
|
38
39
|
# @option opts [String] :pulp_created__lte pulp_created__lte
|
39
40
|
# @option opts [String] :pulp_created__range pulp_created__range
|
40
41
|
# @return [AsyncOperationResponse]
|
41
|
-
def delete(
|
42
|
-
data, _status_code, _headers = delete_with_http_info(
|
42
|
+
def delete(npm_npm_repository_version_href, opts = {})
|
43
|
+
data, _status_code, _headers = delete_with_http_info(npm_npm_repository_version_href, opts)
|
43
44
|
data
|
44
45
|
end
|
45
46
|
|
47
|
+
# Delete a repository version
|
46
48
|
# Trigger an asynchronous task to delete a repositroy version.
|
47
|
-
# @param
|
49
|
+
# @param npm_npm_repository_version_href [String]
|
48
50
|
# @param [Hash] opts the optional parameters
|
49
51
|
# @option opts [String] :content content
|
50
52
|
# @option opts [String] :content__in content__in
|
@@ -62,16 +64,16 @@ module PulpNpmClient
|
|
62
64
|
# @option opts [String] :pulp_created__lte pulp_created__lte
|
63
65
|
# @option opts [String] :pulp_created__range pulp_created__range
|
64
66
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
65
|
-
def delete_with_http_info(
|
67
|
+
def delete_with_http_info(npm_npm_repository_version_href, opts = {})
|
66
68
|
if @api_client.config.debugging
|
67
69
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.delete ...'
|
68
70
|
end
|
69
|
-
# verify the required parameter '
|
70
|
-
if @api_client.config.client_side_validation &&
|
71
|
-
fail ArgumentError, "Missing the required parameter '
|
71
|
+
# verify the required parameter 'npm_npm_repository_version_href' is set
|
72
|
+
if @api_client.config.client_side_validation && npm_npm_repository_version_href.nil?
|
73
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_version_href' when calling RepositoriesNpmVersionsApi.delete"
|
72
74
|
end
|
73
75
|
# resource path
|
74
|
-
local_var_path = '{
|
76
|
+
local_var_path = '{npm_npm_repository_version_href}'.sub('{' + 'npm_npm_repository_version_href' + '}', CGI.escape(npm_npm_repository_version_href.to_s).gsub('%2F', '/'))
|
75
77
|
|
76
78
|
# query parameters
|
77
79
|
query_params = opts[:query_params] || {}
|
@@ -124,8 +126,9 @@ module PulpNpmClient
|
|
124
126
|
return data, status_code, headers
|
125
127
|
end
|
126
128
|
|
129
|
+
# List repository versions
|
127
130
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
128
|
-
# @param
|
131
|
+
# @param npm_npm_repository_href [String]
|
129
132
|
# @param [Hash] opts the optional parameters
|
130
133
|
# @option opts [String] :content content
|
131
134
|
# @option opts [String] :content__in content__in
|
@@ -147,13 +150,14 @@ module PulpNpmClient
|
|
147
150
|
# @option opts [String] :fields A list of fields to include in the response.
|
148
151
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
149
152
|
# @return [InlineResponse2004]
|
150
|
-
def list(
|
151
|
-
data, _status_code, _headers = list_with_http_info(
|
153
|
+
def list(npm_npm_repository_href, opts = {})
|
154
|
+
data, _status_code, _headers = list_with_http_info(npm_npm_repository_href, opts)
|
152
155
|
data
|
153
156
|
end
|
154
157
|
|
158
|
+
# List repository versions
|
155
159
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
156
|
-
# @param
|
160
|
+
# @param npm_npm_repository_href [String]
|
157
161
|
# @param [Hash] opts the optional parameters
|
158
162
|
# @option opts [String] :content content
|
159
163
|
# @option opts [String] :content__in content__in
|
@@ -175,16 +179,16 @@ module PulpNpmClient
|
|
175
179
|
# @option opts [String] :fields A list of fields to include in the response.
|
176
180
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
177
181
|
# @return [Array<(InlineResponse2004, Integer, Hash)>] InlineResponse2004 data, response status code and response headers
|
178
|
-
def list_with_http_info(
|
182
|
+
def list_with_http_info(npm_npm_repository_href, opts = {})
|
179
183
|
if @api_client.config.debugging
|
180
184
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.list ...'
|
181
185
|
end
|
182
|
-
# verify the required parameter '
|
183
|
-
if @api_client.config.client_side_validation &&
|
184
|
-
fail ArgumentError, "Missing the required parameter '
|
186
|
+
# verify the required parameter 'npm_npm_repository_href' is set
|
187
|
+
if @api_client.config.client_side_validation && npm_npm_repository_href.nil?
|
188
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_href' when calling RepositoriesNpmVersionsApi.list"
|
185
189
|
end
|
186
190
|
# resource path
|
187
|
-
local_var_path = '{
|
191
|
+
local_var_path = '{npm_npm_repository_href}versions/'.sub('{' + 'npm_npm_repository_href' + '}', CGI.escape(npm_npm_repository_href.to_s).gsub('%2F', '/'))
|
188
192
|
|
189
193
|
# query parameters
|
190
194
|
query_params = opts[:query_params] || {}
|
@@ -241,33 +245,35 @@ module PulpNpmClient
|
|
241
245
|
return data, status_code, headers
|
242
246
|
end
|
243
247
|
|
248
|
+
# Inspect a repository version
|
244
249
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
245
|
-
# @param
|
250
|
+
# @param npm_npm_repository_version_href [String]
|
246
251
|
# @param [Hash] opts the optional parameters
|
247
252
|
# @option opts [String] :fields A list of fields to include in the response.
|
248
253
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
249
254
|
# @return [RepositoryVersionResponse]
|
250
|
-
def read(
|
251
|
-
data, _status_code, _headers = read_with_http_info(
|
255
|
+
def read(npm_npm_repository_version_href, opts = {})
|
256
|
+
data, _status_code, _headers = read_with_http_info(npm_npm_repository_version_href, opts)
|
252
257
|
data
|
253
258
|
end
|
254
259
|
|
260
|
+
# Inspect a repository version
|
255
261
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
256
|
-
# @param
|
262
|
+
# @param npm_npm_repository_version_href [String]
|
257
263
|
# @param [Hash] opts the optional parameters
|
258
264
|
# @option opts [String] :fields A list of fields to include in the response.
|
259
265
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
260
266
|
# @return [Array<(RepositoryVersionResponse, Integer, Hash)>] RepositoryVersionResponse data, response status code and response headers
|
261
|
-
def read_with_http_info(
|
267
|
+
def read_with_http_info(npm_npm_repository_version_href, opts = {})
|
262
268
|
if @api_client.config.debugging
|
263
269
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.read ...'
|
264
270
|
end
|
265
|
-
# verify the required parameter '
|
266
|
-
if @api_client.config.client_side_validation &&
|
267
|
-
fail ArgumentError, "Missing the required parameter '
|
271
|
+
# verify the required parameter 'npm_npm_repository_version_href' is set
|
272
|
+
if @api_client.config.client_side_validation && npm_npm_repository_version_href.nil?
|
273
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_version_href' when calling RepositoriesNpmVersionsApi.read"
|
268
274
|
end
|
269
275
|
# resource path
|
270
|
-
local_var_path = '{
|
276
|
+
local_var_path = '{npm_npm_repository_version_href}'.sub('{' + 'npm_npm_repository_version_href' + '}', CGI.escape(npm_npm_repository_version_href.to_s).gsub('%2F', '/'))
|
271
277
|
|
272
278
|
# query parameters
|
273
279
|
query_params = opts[:query_params] || {}
|
@@ -308,34 +314,34 @@ module PulpNpmClient
|
|
308
314
|
end
|
309
315
|
|
310
316
|
# Trigger an asynchronous task to repair a repositroy version.
|
311
|
-
# @param
|
317
|
+
# @param npm_npm_repository_version_href [String]
|
312
318
|
# @param repository_version [RepositoryVersion]
|
313
319
|
# @param [Hash] opts the optional parameters
|
314
320
|
# @return [AsyncOperationResponse]
|
315
|
-
def repair(
|
316
|
-
data, _status_code, _headers = repair_with_http_info(
|
321
|
+
def repair(npm_npm_repository_version_href, repository_version, opts = {})
|
322
|
+
data, _status_code, _headers = repair_with_http_info(npm_npm_repository_version_href, repository_version, opts)
|
317
323
|
data
|
318
324
|
end
|
319
325
|
|
320
326
|
# Trigger an asynchronous task to repair a repositroy version.
|
321
|
-
# @param
|
327
|
+
# @param npm_npm_repository_version_href [String]
|
322
328
|
# @param repository_version [RepositoryVersion]
|
323
329
|
# @param [Hash] opts the optional parameters
|
324
330
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
325
|
-
def repair_with_http_info(
|
331
|
+
def repair_with_http_info(npm_npm_repository_version_href, repository_version, opts = {})
|
326
332
|
if @api_client.config.debugging
|
327
333
|
@api_client.config.logger.debug 'Calling API: RepositoriesNpmVersionsApi.repair ...'
|
328
334
|
end
|
329
|
-
# verify the required parameter '
|
330
|
-
if @api_client.config.client_side_validation &&
|
331
|
-
fail ArgumentError, "Missing the required parameter '
|
335
|
+
# verify the required parameter 'npm_npm_repository_version_href' is set
|
336
|
+
if @api_client.config.client_side_validation && npm_npm_repository_version_href.nil?
|
337
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_repository_version_href' when calling RepositoriesNpmVersionsApi.repair"
|
332
338
|
end
|
333
339
|
# verify the required parameter 'repository_version' is set
|
334
340
|
if @api_client.config.client_side_validation && repository_version.nil?
|
335
341
|
fail ArgumentError, "Missing the required parameter 'repository_version' when calling RepositoriesNpmVersionsApi.repair"
|
336
342
|
end
|
337
343
|
# resource path
|
338
|
-
local_var_path = '{
|
344
|
+
local_var_path = '{npm_npm_repository_version_href}repair/'.sub('{' + 'npm_npm_repository_version_href' + '}', CGI.escape(npm_npm_repository_version_href.to_s).gsub('%2F', '/'))
|
339
345
|
|
340
346
|
# query parameters
|
341
347
|
query_params = opts[:query_params] || {}
|