pulp_npm_client 0.1.0a1.dev01596158992 → 0.1.0a1.dev01596245316
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 +23 -23
- data/docs/ContentPackagesApi.md +5 -5
- data/docs/DistributionsNpmApi.md +20 -20
- data/docs/RemotesNpmApi.md +20 -20
- data/docs/RepositoriesNpmApi.md +30 -30
- data/docs/RepositoriesNpmVersionsApi.md +20 -20
- data/lib/pulp_npm_client/api/content_packages_api.rb +9 -9
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +36 -36
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +36 -36
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +54 -54
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +36 -36
- data/lib/pulp_npm_client/version.rb +1 -1
- data/spec/api/content_packages_api_spec.rb +1 -1
- data/spec/api/distributions_npm_api_spec.rb +4 -4
- data/spec/api/remotes_npm_api_spec.rb +4 -4
- data/spec/api/repositories_npm_api_spec.rb +6 -6
- data/spec/api/repositories_npm_versions_api_spec.rb +4 -4
- metadata +2 -2
@@ -4,16 +4,16 @@ 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(
|
16
|
+
> AsyncOperationResponse delete(npm_npm_repository_version_href, opts)
|
17
17
|
|
18
18
|
Delete a repository version
|
19
19
|
|
@@ -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
|
@@ -53,7 +53,7 @@ opts = {
|
|
53
53
|
|
54
54
|
begin
|
55
55
|
#Delete a repository version
|
56
|
-
result = api_instance.delete(
|
56
|
+
result = api_instance.delete(npm_npm_repository_version_href, opts)
|
57
57
|
p result
|
58
58
|
rescue PulpNpmClient::ApiError => e
|
59
59
|
puts "Exception when calling RepositoriesNpmVersionsApi->delete: #{e}"
|
@@ -65,7 +65,7 @@ end
|
|
65
65
|
|
66
66
|
Name | Type | Description | Notes
|
67
67
|
------------- | ------------- | ------------- | -------------
|
68
|
-
**
|
68
|
+
**npm_npm_repository_version_href** | **String**| |
|
69
69
|
**content** | **String**| content | [optional]
|
70
70
|
**content__in** | **String**| content__in | [optional]
|
71
71
|
**number** | **String**| number | [optional]
|
@@ -98,7 +98,7 @@ Name | Type | Description | Notes
|
|
98
98
|
|
99
99
|
## list
|
100
100
|
|
101
|
-
> InlineResponse2004 list(
|
101
|
+
> InlineResponse2004 list(npm_npm_repository_href, opts)
|
102
102
|
|
103
103
|
List repository versions
|
104
104
|
|
@@ -117,7 +117,7 @@ PulpNpmClient.configure do |config|
|
|
117
117
|
end
|
118
118
|
|
119
119
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
120
|
-
|
120
|
+
npm_npm_repository_href = 'npm_npm_repository_href_example' # String |
|
121
121
|
opts = {
|
122
122
|
content: 'content_example', # String | content
|
123
123
|
content__in: 'content__in_example', # String | content__in
|
@@ -142,7 +142,7 @@ opts = {
|
|
142
142
|
|
143
143
|
begin
|
144
144
|
#List repository versions
|
145
|
-
result = api_instance.list(
|
145
|
+
result = api_instance.list(npm_npm_repository_href, opts)
|
146
146
|
p result
|
147
147
|
rescue PulpNpmClient::ApiError => e
|
148
148
|
puts "Exception when calling RepositoriesNpmVersionsApi->list: #{e}"
|
@@ -154,7 +154,7 @@ end
|
|
154
154
|
|
155
155
|
Name | Type | Description | Notes
|
156
156
|
------------- | ------------- | ------------- | -------------
|
157
|
-
**
|
157
|
+
**npm_npm_repository_href** | **String**| |
|
158
158
|
**content** | **String**| content | [optional]
|
159
159
|
**content__in** | **String**| content__in | [optional]
|
160
160
|
**limit** | **Integer**| Number of results to return per page. | [optional]
|
@@ -191,7 +191,7 @@ Name | Type | Description | Notes
|
|
191
191
|
|
192
192
|
## read
|
193
193
|
|
194
|
-
> RepositoryVersionResponse read(
|
194
|
+
> RepositoryVersionResponse read(npm_npm_repository_version_href, opts)
|
195
195
|
|
196
196
|
Inspect a repository version
|
197
197
|
|
@@ -210,7 +210,7 @@ PulpNpmClient.configure do |config|
|
|
210
210
|
end
|
211
211
|
|
212
212
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
213
|
-
|
213
|
+
npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
|
214
214
|
opts = {
|
215
215
|
fields: 'fields_example', # String | A list of fields to include in the response.
|
216
216
|
exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
|
@@ -218,7 +218,7 @@ opts = {
|
|
218
218
|
|
219
219
|
begin
|
220
220
|
#Inspect a repository version
|
221
|
-
result = api_instance.read(
|
221
|
+
result = api_instance.read(npm_npm_repository_version_href, opts)
|
222
222
|
p result
|
223
223
|
rescue PulpNpmClient::ApiError => e
|
224
224
|
puts "Exception when calling RepositoriesNpmVersionsApi->read: #{e}"
|
@@ -230,7 +230,7 @@ end
|
|
230
230
|
|
231
231
|
Name | Type | Description | Notes
|
232
232
|
------------- | ------------- | ------------- | -------------
|
233
|
-
**
|
233
|
+
**npm_npm_repository_version_href** | **String**| |
|
234
234
|
**fields** | **String**| A list of fields to include in the response. | [optional]
|
235
235
|
**exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
|
236
236
|
|
@@ -250,7 +250,7 @@ Name | Type | Description | Notes
|
|
250
250
|
|
251
251
|
## repair
|
252
252
|
|
253
|
-
> AsyncOperationResponse repair(
|
253
|
+
> AsyncOperationResponse repair(npm_npm_repository_version_href, repository_version)
|
254
254
|
|
255
255
|
|
256
256
|
|
@@ -269,11 +269,11 @@ PulpNpmClient.configure do |config|
|
|
269
269
|
end
|
270
270
|
|
271
271
|
api_instance = PulpNpmClient::RepositoriesNpmVersionsApi.new
|
272
|
-
|
272
|
+
npm_npm_repository_version_href = 'npm_npm_repository_version_href_example' # String |
|
273
273
|
repository_version = PulpNpmClient::RepositoryVersion.new # RepositoryVersion |
|
274
274
|
|
275
275
|
begin
|
276
|
-
result = api_instance.repair(
|
276
|
+
result = api_instance.repair(npm_npm_repository_version_href, repository_version)
|
277
277
|
p result
|
278
278
|
rescue PulpNpmClient::ApiError => e
|
279
279
|
puts "Exception when calling RepositoriesNpmVersionsApi->repair: #{e}"
|
@@ -285,7 +285,7 @@ end
|
|
285
285
|
|
286
286
|
Name | Type | Description | Notes
|
287
287
|
------------- | ------------- | ------------- | -------------
|
288
|
-
**
|
288
|
+
**npm_npm_repository_version_href** | **String**| |
|
289
289
|
**repository_version** | [**RepositoryVersion**](RepositoryVersion.md)| |
|
290
290
|
|
291
291
|
### Return type
|
@@ -195,33 +195,33 @@ module PulpNpmClient
|
|
195
195
|
|
196
196
|
# Inspect a package
|
197
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.
|
198
|
-
# @param
|
198
|
+
# @param npm_package_href [String]
|
199
199
|
# @param [Hash] opts the optional parameters
|
200
200
|
# @option opts [String] :fields A list of fields to include in the response.
|
201
201
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
202
202
|
# @return [NpmPackageResponse]
|
203
|
-
def read(
|
204
|
-
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)
|
205
205
|
data
|
206
206
|
end
|
207
207
|
|
208
208
|
# Inspect a package
|
209
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.
|
210
|
-
# @param
|
210
|
+
# @param npm_package_href [String]
|
211
211
|
# @param [Hash] opts the optional parameters
|
212
212
|
# @option opts [String] :fields A list of fields to include in the response.
|
213
213
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
214
214
|
# @return [Array<(NpmPackageResponse, Integer, Hash)>] NpmPackageResponse data, response status code and response headers
|
215
|
-
def read_with_http_info(
|
215
|
+
def read_with_http_info(npm_package_href, opts = {})
|
216
216
|
if @api_client.config.debugging
|
217
217
|
@api_client.config.logger.debug 'Calling API: ContentPackagesApi.read ...'
|
218
218
|
end
|
219
|
-
# verify the required parameter '
|
220
|
-
if @api_client.config.client_side_validation &&
|
221
|
-
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"
|
222
222
|
end
|
223
223
|
# resource path
|
224
|
-
local_var_path = '{
|
224
|
+
local_var_path = '{npm_package_href}'.sub('{' + 'npm_package_href' + '}', CGI.escape(npm_package_href.to_s).gsub('%2F', '/'))
|
225
225
|
|
226
226
|
# query parameters
|
227
227
|
query_params = opts[:query_params] || {}
|
@@ -85,7 +85,7 @@ module PulpNpmClient
|
|
85
85
|
|
86
86
|
# Delete a npm distribution
|
87
87
|
# Trigger an asynchronous delete task
|
88
|
-
# @param
|
88
|
+
# @param npm_npm_distribution_href [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @option opts [String] :base_path base_path
|
91
91
|
# @option opts [String] :base_path__contains base_path__contains
|
@@ -95,14 +95,14 @@ module PulpNpmClient
|
|
95
95
|
# @option opts [String] :name__in name__in
|
96
96
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
97
97
|
# @return [AsyncOperationResponse]
|
98
|
-
def delete(
|
99
|
-
data, _status_code, _headers = delete_with_http_info(
|
98
|
+
def delete(npm_npm_distribution_href, opts = {})
|
99
|
+
data, _status_code, _headers = delete_with_http_info(npm_npm_distribution_href, opts)
|
100
100
|
data
|
101
101
|
end
|
102
102
|
|
103
103
|
# Delete a npm distribution
|
104
104
|
# Trigger an asynchronous delete task
|
105
|
-
# @param
|
105
|
+
# @param npm_npm_distribution_href [String]
|
106
106
|
# @param [Hash] opts the optional parameters
|
107
107
|
# @option opts [String] :base_path base_path
|
108
108
|
# @option opts [String] :base_path__contains base_path__contains
|
@@ -112,16 +112,16 @@ module PulpNpmClient
|
|
112
112
|
# @option opts [String] :name__in name__in
|
113
113
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
114
114
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
115
|
-
def delete_with_http_info(
|
115
|
+
def delete_with_http_info(npm_npm_distribution_href, opts = {})
|
116
116
|
if @api_client.config.debugging
|
117
117
|
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.delete ...'
|
118
118
|
end
|
119
|
-
# verify the required parameter '
|
120
|
-
if @api_client.config.client_side_validation &&
|
121
|
-
fail ArgumentError, "Missing the required parameter '
|
119
|
+
# verify the required parameter 'npm_npm_distribution_href' is set
|
120
|
+
if @api_client.config.client_side_validation && npm_npm_distribution_href.nil?
|
121
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_distribution_href' when calling DistributionsNpmApi.delete"
|
122
122
|
end
|
123
123
|
# resource path
|
124
|
-
local_var_path = '{
|
124
|
+
local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
|
125
125
|
|
126
126
|
# query parameters
|
127
127
|
query_params = opts[:query_params] || {}
|
@@ -257,7 +257,7 @@ module PulpNpmClient
|
|
257
257
|
|
258
258
|
# Update a npm distribution
|
259
259
|
# Trigger an asynchronous partial update task
|
260
|
-
# @param
|
260
|
+
# @param npm_npm_distribution_href [String]
|
261
261
|
# @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
|
262
262
|
# @param [Hash] opts the optional parameters
|
263
263
|
# @option opts [String] :base_path base_path
|
@@ -268,14 +268,14 @@ module PulpNpmClient
|
|
268
268
|
# @option opts [String] :name__in name__in
|
269
269
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
270
270
|
# @return [AsyncOperationResponse]
|
271
|
-
def partial_update(
|
272
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
271
|
+
def partial_update(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
|
272
|
+
data, _status_code, _headers = partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts)
|
273
273
|
data
|
274
274
|
end
|
275
275
|
|
276
276
|
# Update a npm distribution
|
277
277
|
# Trigger an asynchronous partial update task
|
278
|
-
# @param
|
278
|
+
# @param npm_npm_distribution_href [String]
|
279
279
|
# @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
|
280
280
|
# @param [Hash] opts the optional parameters
|
281
281
|
# @option opts [String] :base_path base_path
|
@@ -286,20 +286,20 @@ module PulpNpmClient
|
|
286
286
|
# @option opts [String] :name__in name__in
|
287
287
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
288
288
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
289
|
-
def partial_update_with_http_info(
|
289
|
+
def partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
|
290
290
|
if @api_client.config.debugging
|
291
291
|
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.partial_update ...'
|
292
292
|
end
|
293
|
-
# verify the required parameter '
|
294
|
-
if @api_client.config.client_side_validation &&
|
295
|
-
fail ArgumentError, "Missing the required parameter '
|
293
|
+
# verify the required parameter 'npm_npm_distribution_href' is set
|
294
|
+
if @api_client.config.client_side_validation && npm_npm_distribution_href.nil?
|
295
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_distribution_href' when calling DistributionsNpmApi.partial_update"
|
296
296
|
end
|
297
297
|
# verify the required parameter 'patchednpm_npm_distribution' is set
|
298
298
|
if @api_client.config.client_side_validation && patchednpm_npm_distribution.nil?
|
299
299
|
fail ArgumentError, "Missing the required parameter 'patchednpm_npm_distribution' when calling DistributionsNpmApi.partial_update"
|
300
300
|
end
|
301
301
|
# resource path
|
302
|
-
local_var_path = '{
|
302
|
+
local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
|
303
303
|
|
304
304
|
# query parameters
|
305
305
|
query_params = opts[:query_params] || {}
|
@@ -348,33 +348,33 @@ module PulpNpmClient
|
|
348
348
|
|
349
349
|
# Inspect a npm distribution
|
350
350
|
# ViewSet for NPM Distributions.
|
351
|
-
# @param
|
351
|
+
# @param npm_npm_distribution_href [String]
|
352
352
|
# @param [Hash] opts the optional parameters
|
353
353
|
# @option opts [String] :fields A list of fields to include in the response.
|
354
354
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
355
355
|
# @return [NpmNpmDistributionResponse]
|
356
|
-
def read(
|
357
|
-
data, _status_code, _headers = read_with_http_info(
|
356
|
+
def read(npm_npm_distribution_href, opts = {})
|
357
|
+
data, _status_code, _headers = read_with_http_info(npm_npm_distribution_href, opts)
|
358
358
|
data
|
359
359
|
end
|
360
360
|
|
361
361
|
# Inspect a npm distribution
|
362
362
|
# ViewSet for NPM Distributions.
|
363
|
-
# @param
|
363
|
+
# @param npm_npm_distribution_href [String]
|
364
364
|
# @param [Hash] opts the optional parameters
|
365
365
|
# @option opts [String] :fields A list of fields to include in the response.
|
366
366
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
367
367
|
# @return [Array<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
|
368
|
-
def read_with_http_info(
|
368
|
+
def read_with_http_info(npm_npm_distribution_href, opts = {})
|
369
369
|
if @api_client.config.debugging
|
370
370
|
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.read ...'
|
371
371
|
end
|
372
|
-
# verify the required parameter '
|
373
|
-
if @api_client.config.client_side_validation &&
|
374
|
-
fail ArgumentError, "Missing the required parameter '
|
372
|
+
# verify the required parameter 'npm_npm_distribution_href' is set
|
373
|
+
if @api_client.config.client_side_validation && npm_npm_distribution_href.nil?
|
374
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_distribution_href' when calling DistributionsNpmApi.read"
|
375
375
|
end
|
376
376
|
# resource path
|
377
|
-
local_var_path = '{
|
377
|
+
local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
|
378
378
|
|
379
379
|
# query parameters
|
380
380
|
query_params = opts[:query_params] || {}
|
@@ -416,7 +416,7 @@ module PulpNpmClient
|
|
416
416
|
|
417
417
|
# Update a npm distribution
|
418
418
|
# Trigger an asynchronous update task
|
419
|
-
# @param
|
419
|
+
# @param npm_npm_distribution_href [String]
|
420
420
|
# @param npm_npm_distribution [NpmNpmDistribution]
|
421
421
|
# @param [Hash] opts the optional parameters
|
422
422
|
# @option opts [String] :base_path base_path
|
@@ -427,14 +427,14 @@ module PulpNpmClient
|
|
427
427
|
# @option opts [String] :name__in name__in
|
428
428
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
429
429
|
# @return [AsyncOperationResponse]
|
430
|
-
def update(
|
431
|
-
data, _status_code, _headers = update_with_http_info(
|
430
|
+
def update(npm_npm_distribution_href, npm_npm_distribution, opts = {})
|
431
|
+
data, _status_code, _headers = update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts)
|
432
432
|
data
|
433
433
|
end
|
434
434
|
|
435
435
|
# Update a npm distribution
|
436
436
|
# Trigger an asynchronous update task
|
437
|
-
# @param
|
437
|
+
# @param npm_npm_distribution_href [String]
|
438
438
|
# @param npm_npm_distribution [NpmNpmDistribution]
|
439
439
|
# @param [Hash] opts the optional parameters
|
440
440
|
# @option opts [String] :base_path base_path
|
@@ -445,20 +445,20 @@ module PulpNpmClient
|
|
445
445
|
# @option opts [String] :name__in name__in
|
446
446
|
# @option opts [String] :ordering Which field to use when ordering the results.
|
447
447
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
448
|
-
def update_with_http_info(
|
448
|
+
def update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts = {})
|
449
449
|
if @api_client.config.debugging
|
450
450
|
@api_client.config.logger.debug 'Calling API: DistributionsNpmApi.update ...'
|
451
451
|
end
|
452
|
-
# verify the required parameter '
|
453
|
-
if @api_client.config.client_side_validation &&
|
454
|
-
fail ArgumentError, "Missing the required parameter '
|
452
|
+
# verify the required parameter 'npm_npm_distribution_href' is set
|
453
|
+
if @api_client.config.client_side_validation && npm_npm_distribution_href.nil?
|
454
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_distribution_href' when calling DistributionsNpmApi.update"
|
455
455
|
end
|
456
456
|
# verify the required parameter 'npm_npm_distribution' is set
|
457
457
|
if @api_client.config.client_side_validation && npm_npm_distribution.nil?
|
458
458
|
fail ArgumentError, "Missing the required parameter 'npm_npm_distribution' when calling DistributionsNpmApi.update"
|
459
459
|
end
|
460
460
|
# resource path
|
461
|
-
local_var_path = '{
|
461
|
+
local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
|
462
462
|
|
463
463
|
# query parameters
|
464
464
|
query_params = opts[:query_params] || {}
|
@@ -85,7 +85,7 @@ module PulpNpmClient
|
|
85
85
|
|
86
86
|
# Delete a npm remote
|
87
87
|
# Trigger an asynchronous delete task
|
88
|
-
# @param
|
88
|
+
# @param npm_npm_remote_href [String]
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @option opts [String] :name name
|
91
91
|
# @option opts [String] :name__in name__in
|
@@ -97,14 +97,14 @@ module PulpNpmClient
|
|
97
97
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
98
98
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
99
99
|
# @return [AsyncOperationResponse]
|
100
|
-
def delete(
|
101
|
-
data, _status_code, _headers = delete_with_http_info(
|
100
|
+
def delete(npm_npm_remote_href, opts = {})
|
101
|
+
data, _status_code, _headers = delete_with_http_info(npm_npm_remote_href, opts)
|
102
102
|
data
|
103
103
|
end
|
104
104
|
|
105
105
|
# Delete a npm remote
|
106
106
|
# Trigger an asynchronous delete task
|
107
|
-
# @param
|
107
|
+
# @param npm_npm_remote_href [String]
|
108
108
|
# @param [Hash] opts the optional parameters
|
109
109
|
# @option opts [String] :name name
|
110
110
|
# @option opts [String] :name__in name__in
|
@@ -116,16 +116,16 @@ module PulpNpmClient
|
|
116
116
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
117
117
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
118
118
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
119
|
-
def delete_with_http_info(
|
119
|
+
def delete_with_http_info(npm_npm_remote_href, opts = {})
|
120
120
|
if @api_client.config.debugging
|
121
121
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.delete ...'
|
122
122
|
end
|
123
|
-
# verify the required parameter '
|
124
|
-
if @api_client.config.client_side_validation &&
|
125
|
-
fail ArgumentError, "Missing the required parameter '
|
123
|
+
# verify the required parameter 'npm_npm_remote_href' is set
|
124
|
+
if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
|
125
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.delete"
|
126
126
|
end
|
127
127
|
# resource path
|
128
|
-
local_var_path = '{
|
128
|
+
local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
|
129
129
|
|
130
130
|
# query parameters
|
131
131
|
query_params = opts[:query_params] || {}
|
@@ -269,7 +269,7 @@ module PulpNpmClient
|
|
269
269
|
|
270
270
|
# Update a npm remote
|
271
271
|
# Trigger an asynchronous partial update task
|
272
|
-
# @param
|
272
|
+
# @param npm_npm_remote_href [String]
|
273
273
|
# @param patchednpm_npm_remote [PatchednpmNpmRemote]
|
274
274
|
# @param [Hash] opts the optional parameters
|
275
275
|
# @option opts [String] :name name
|
@@ -282,14 +282,14 @@ module PulpNpmClient
|
|
282
282
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
283
283
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
284
284
|
# @return [AsyncOperationResponse]
|
285
|
-
def partial_update(
|
286
|
-
data, _status_code, _headers = partial_update_with_http_info(
|
285
|
+
def partial_update(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
|
286
|
+
data, _status_code, _headers = partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts)
|
287
287
|
data
|
288
288
|
end
|
289
289
|
|
290
290
|
# Update a npm remote
|
291
291
|
# Trigger an asynchronous partial update task
|
292
|
-
# @param
|
292
|
+
# @param npm_npm_remote_href [String]
|
293
293
|
# @param patchednpm_npm_remote [PatchednpmNpmRemote]
|
294
294
|
# @param [Hash] opts the optional parameters
|
295
295
|
# @option opts [String] :name name
|
@@ -302,20 +302,20 @@ module PulpNpmClient
|
|
302
302
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
303
303
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
304
304
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
305
|
-
def partial_update_with_http_info(
|
305
|
+
def partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
|
306
306
|
if @api_client.config.debugging
|
307
307
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.partial_update ...'
|
308
308
|
end
|
309
|
-
# verify the required parameter '
|
310
|
-
if @api_client.config.client_side_validation &&
|
311
|
-
fail ArgumentError, "Missing the required parameter '
|
309
|
+
# verify the required parameter 'npm_npm_remote_href' is set
|
310
|
+
if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
|
311
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.partial_update"
|
312
312
|
end
|
313
313
|
# verify the required parameter 'patchednpm_npm_remote' is set
|
314
314
|
if @api_client.config.client_side_validation && patchednpm_npm_remote.nil?
|
315
315
|
fail ArgumentError, "Missing the required parameter 'patchednpm_npm_remote' when calling RemotesNpmApi.partial_update"
|
316
316
|
end
|
317
317
|
# resource path
|
318
|
-
local_var_path = '{
|
318
|
+
local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
|
319
319
|
|
320
320
|
# query parameters
|
321
321
|
query_params = opts[:query_params] || {}
|
@@ -366,33 +366,33 @@ module PulpNpmClient
|
|
366
366
|
|
367
367
|
# Inspect a npm remote
|
368
368
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
369
|
-
# @param
|
369
|
+
# @param npm_npm_remote_href [String]
|
370
370
|
# @param [Hash] opts the optional parameters
|
371
371
|
# @option opts [String] :fields A list of fields to include in the response.
|
372
372
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
373
373
|
# @return [NpmNpmRemoteResponse]
|
374
|
-
def read(
|
375
|
-
data, _status_code, _headers = read_with_http_info(
|
374
|
+
def read(npm_npm_remote_href, opts = {})
|
375
|
+
data, _status_code, _headers = read_with_http_info(npm_npm_remote_href, opts)
|
376
376
|
data
|
377
377
|
end
|
378
378
|
|
379
379
|
# Inspect a npm remote
|
380
380
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
381
|
-
# @param
|
381
|
+
# @param npm_npm_remote_href [String]
|
382
382
|
# @param [Hash] opts the optional parameters
|
383
383
|
# @option opts [String] :fields A list of fields to include in the response.
|
384
384
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
385
385
|
# @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
|
386
|
-
def read_with_http_info(
|
386
|
+
def read_with_http_info(npm_npm_remote_href, opts = {})
|
387
387
|
if @api_client.config.debugging
|
388
388
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.read ...'
|
389
389
|
end
|
390
|
-
# verify the required parameter '
|
391
|
-
if @api_client.config.client_side_validation &&
|
392
|
-
fail ArgumentError, "Missing the required parameter '
|
390
|
+
# verify the required parameter 'npm_npm_remote_href' is set
|
391
|
+
if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
|
392
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.read"
|
393
393
|
end
|
394
394
|
# resource path
|
395
|
-
local_var_path = '{
|
395
|
+
local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
|
396
396
|
|
397
397
|
# query parameters
|
398
398
|
query_params = opts[:query_params] || {}
|
@@ -434,7 +434,7 @@ module PulpNpmClient
|
|
434
434
|
|
435
435
|
# Update a npm remote
|
436
436
|
# Trigger an asynchronous update task
|
437
|
-
# @param
|
437
|
+
# @param npm_npm_remote_href [String]
|
438
438
|
# @param npm_npm_remote [NpmNpmRemote]
|
439
439
|
# @param [Hash] opts the optional parameters
|
440
440
|
# @option opts [String] :name name
|
@@ -447,14 +447,14 @@ module PulpNpmClient
|
|
447
447
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
448
448
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
449
449
|
# @return [AsyncOperationResponse]
|
450
|
-
def update(
|
451
|
-
data, _status_code, _headers = update_with_http_info(
|
450
|
+
def update(npm_npm_remote_href, npm_npm_remote, opts = {})
|
451
|
+
data, _status_code, _headers = update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts)
|
452
452
|
data
|
453
453
|
end
|
454
454
|
|
455
455
|
# Update a npm remote
|
456
456
|
# Trigger an asynchronous update task
|
457
|
-
# @param
|
457
|
+
# @param npm_npm_remote_href [String]
|
458
458
|
# @param npm_npm_remote [NpmNpmRemote]
|
459
459
|
# @param [Hash] opts the optional parameters
|
460
460
|
# @option opts [String] :name name
|
@@ -467,20 +467,20 @@ module PulpNpmClient
|
|
467
467
|
# @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
|
468
468
|
# @option opts [String] :pulp_last_updated__range pulp_last_updated__range
|
469
469
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
470
|
-
def update_with_http_info(
|
470
|
+
def update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts = {})
|
471
471
|
if @api_client.config.debugging
|
472
472
|
@api_client.config.logger.debug 'Calling API: RemotesNpmApi.update ...'
|
473
473
|
end
|
474
|
-
# verify the required parameter '
|
475
|
-
if @api_client.config.client_side_validation &&
|
476
|
-
fail ArgumentError, "Missing the required parameter '
|
474
|
+
# verify the required parameter 'npm_npm_remote_href' is set
|
475
|
+
if @api_client.config.client_side_validation && npm_npm_remote_href.nil?
|
476
|
+
fail ArgumentError, "Missing the required parameter 'npm_npm_remote_href' when calling RemotesNpmApi.update"
|
477
477
|
end
|
478
478
|
# verify the required parameter 'npm_npm_remote' is set
|
479
479
|
if @api_client.config.client_side_validation && npm_npm_remote.nil?
|
480
480
|
fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.update"
|
481
481
|
end
|
482
482
|
# resource path
|
483
|
-
local_var_path = '{
|
483
|
+
local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
|
484
484
|
|
485
485
|
# query parameters
|
486
486
|
query_params = opts[:query_params] || {}
|