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.

@@ -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 distribution
22
23
  # Trigger an asynchronous create task
23
24
  # @param npm_npm_distribution [NpmNpmDistribution]
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 distribution
31
33
  # Trigger an asynchronous create task
32
34
  # @param npm_npm_distribution [NpmNpmDistribution]
33
35
  # @param [Hash] opts the optional parameters
@@ -81,8 +83,9 @@ module PulpNpmClient
81
83
  return data, status_code, headers
82
84
  end
83
85
 
86
+ # Delete a npm distribution
84
87
  # Trigger an asynchronous delete task
85
- # @param npm_distribution_href [String]
88
+ # @param npm_npm_distribution_href [String]
86
89
  # @param [Hash] opts the optional parameters
87
90
  # @option opts [String] :base_path base_path
88
91
  # @option opts [String] :base_path__contains base_path__contains
@@ -92,13 +95,14 @@ module PulpNpmClient
92
95
  # @option opts [String] :name__in name__in
93
96
  # @option opts [String] :ordering Which field to use when ordering the results.
94
97
  # @return [AsyncOperationResponse]
95
- def delete(npm_distribution_href, opts = {})
96
- data, _status_code, _headers = delete_with_http_info(npm_distribution_href, opts)
98
+ def delete(npm_npm_distribution_href, opts = {})
99
+ data, _status_code, _headers = delete_with_http_info(npm_npm_distribution_href, opts)
97
100
  data
98
101
  end
99
102
 
103
+ # Delete a npm distribution
100
104
  # Trigger an asynchronous delete task
101
- # @param npm_distribution_href [String]
105
+ # @param npm_npm_distribution_href [String]
102
106
  # @param [Hash] opts the optional parameters
103
107
  # @option opts [String] :base_path base_path
104
108
  # @option opts [String] :base_path__contains base_path__contains
@@ -108,16 +112,16 @@ module PulpNpmClient
108
112
  # @option opts [String] :name__in name__in
109
113
  # @option opts [String] :ordering Which field to use when ordering the results.
110
114
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
111
- def delete_with_http_info(npm_distribution_href, opts = {})
115
+ def delete_with_http_info(npm_npm_distribution_href, opts = {})
112
116
  if @api_client.config.debugging
113
117
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.delete ...'
114
118
  end
115
- # verify the required parameter 'npm_distribution_href' is set
116
- if @api_client.config.client_side_validation && npm_distribution_href.nil?
117
- fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.delete"
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"
118
122
  end
119
123
  # resource path
120
- local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
124
+ local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
121
125
 
122
126
  # query parameters
123
127
  query_params = opts[:query_params] || {}
@@ -162,6 +166,7 @@ module PulpNpmClient
162
166
  return data, status_code, headers
163
167
  end
164
168
 
169
+ # List npm distributions
165
170
  # ViewSet for NPM Distributions.
166
171
  # @param [Hash] opts the optional parameters
167
172
  # @option opts [String] :base_path base_path
@@ -181,6 +186,7 @@ module PulpNpmClient
181
186
  data
182
187
  end
183
188
 
189
+ # List npm distributions
184
190
  # ViewSet for NPM Distributions.
185
191
  # @param [Hash] opts the optional parameters
186
192
  # @option opts [String] :base_path base_path
@@ -249,8 +255,9 @@ module PulpNpmClient
249
255
  return data, status_code, headers
250
256
  end
251
257
 
258
+ # Update a npm distribution
252
259
  # Trigger an asynchronous partial update task
253
- # @param npm_distribution_href [String]
260
+ # @param npm_npm_distribution_href [String]
254
261
  # @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
255
262
  # @param [Hash] opts the optional parameters
256
263
  # @option opts [String] :base_path base_path
@@ -261,13 +268,14 @@ module PulpNpmClient
261
268
  # @option opts [String] :name__in name__in
262
269
  # @option opts [String] :ordering Which field to use when ordering the results.
263
270
  # @return [AsyncOperationResponse]
264
- def partial_update(npm_distribution_href, patchednpm_npm_distribution, opts = {})
265
- data, _status_code, _headers = partial_update_with_http_info(npm_distribution_href, patchednpm_npm_distribution, opts)
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)
266
273
  data
267
274
  end
268
275
 
276
+ # Update a npm distribution
269
277
  # Trigger an asynchronous partial update task
270
- # @param npm_distribution_href [String]
278
+ # @param npm_npm_distribution_href [String]
271
279
  # @param patchednpm_npm_distribution [PatchednpmNpmDistribution]
272
280
  # @param [Hash] opts the optional parameters
273
281
  # @option opts [String] :base_path base_path
@@ -278,20 +286,20 @@ module PulpNpmClient
278
286
  # @option opts [String] :name__in name__in
279
287
  # @option opts [String] :ordering Which field to use when ordering the results.
280
288
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
281
- def partial_update_with_http_info(npm_distribution_href, patchednpm_npm_distribution, opts = {})
289
+ def partial_update_with_http_info(npm_npm_distribution_href, patchednpm_npm_distribution, opts = {})
282
290
  if @api_client.config.debugging
283
291
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.partial_update ...'
284
292
  end
285
- # verify the required parameter 'npm_distribution_href' is set
286
- if @api_client.config.client_side_validation && npm_distribution_href.nil?
287
- fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.partial_update"
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"
288
296
  end
289
297
  # verify the required parameter 'patchednpm_npm_distribution' is set
290
298
  if @api_client.config.client_side_validation && patchednpm_npm_distribution.nil?
291
299
  fail ArgumentError, "Missing the required parameter 'patchednpm_npm_distribution' when calling DistributionsNpmApi.partial_update"
292
300
  end
293
301
  # resource path
294
- local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
302
+ local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
295
303
 
296
304
  # query parameters
297
305
  query_params = opts[:query_params] || {}
@@ -338,33 +346,35 @@ module PulpNpmClient
338
346
  return data, status_code, headers
339
347
  end
340
348
 
349
+ # Inspect a npm distribution
341
350
  # ViewSet for NPM Distributions.
342
- # @param npm_distribution_href [String]
351
+ # @param npm_npm_distribution_href [String]
343
352
  # @param [Hash] opts the optional parameters
344
353
  # @option opts [String] :fields A list of fields to include in the response.
345
354
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
346
355
  # @return [NpmNpmDistributionResponse]
347
- def read(npm_distribution_href, opts = {})
348
- data, _status_code, _headers = read_with_http_info(npm_distribution_href, opts)
356
+ def read(npm_npm_distribution_href, opts = {})
357
+ data, _status_code, _headers = read_with_http_info(npm_npm_distribution_href, opts)
349
358
  data
350
359
  end
351
360
 
361
+ # Inspect a npm distribution
352
362
  # ViewSet for NPM Distributions.
353
- # @param npm_distribution_href [String]
363
+ # @param npm_npm_distribution_href [String]
354
364
  # @param [Hash] opts the optional parameters
355
365
  # @option opts [String] :fields A list of fields to include in the response.
356
366
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
357
367
  # @return [Array<(NpmNpmDistributionResponse, Integer, Hash)>] NpmNpmDistributionResponse data, response status code and response headers
358
- def read_with_http_info(npm_distribution_href, opts = {})
368
+ def read_with_http_info(npm_npm_distribution_href, opts = {})
359
369
  if @api_client.config.debugging
360
370
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.read ...'
361
371
  end
362
- # verify the required parameter 'npm_distribution_href' is set
363
- if @api_client.config.client_side_validation && npm_distribution_href.nil?
364
- fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.read"
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"
365
375
  end
366
376
  # resource path
367
- local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
377
+ local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
368
378
 
369
379
  # query parameters
370
380
  query_params = opts[:query_params] || {}
@@ -404,8 +414,9 @@ module PulpNpmClient
404
414
  return data, status_code, headers
405
415
  end
406
416
 
417
+ # Update a npm distribution
407
418
  # Trigger an asynchronous update task
408
- # @param npm_distribution_href [String]
419
+ # @param npm_npm_distribution_href [String]
409
420
  # @param npm_npm_distribution [NpmNpmDistribution]
410
421
  # @param [Hash] opts the optional parameters
411
422
  # @option opts [String] :base_path base_path
@@ -416,13 +427,14 @@ module PulpNpmClient
416
427
  # @option opts [String] :name__in name__in
417
428
  # @option opts [String] :ordering Which field to use when ordering the results.
418
429
  # @return [AsyncOperationResponse]
419
- def update(npm_distribution_href, npm_npm_distribution, opts = {})
420
- data, _status_code, _headers = update_with_http_info(npm_distribution_href, npm_npm_distribution, opts)
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)
421
432
  data
422
433
  end
423
434
 
435
+ # Update a npm distribution
424
436
  # Trigger an asynchronous update task
425
- # @param npm_distribution_href [String]
437
+ # @param npm_npm_distribution_href [String]
426
438
  # @param npm_npm_distribution [NpmNpmDistribution]
427
439
  # @param [Hash] opts the optional parameters
428
440
  # @option opts [String] :base_path base_path
@@ -433,20 +445,20 @@ module PulpNpmClient
433
445
  # @option opts [String] :name__in name__in
434
446
  # @option opts [String] :ordering Which field to use when ordering the results.
435
447
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
436
- def update_with_http_info(npm_distribution_href, npm_npm_distribution, opts = {})
448
+ def update_with_http_info(npm_npm_distribution_href, npm_npm_distribution, opts = {})
437
449
  if @api_client.config.debugging
438
450
  @api_client.config.logger.debug 'Calling API: DistributionsNpmApi.update ...'
439
451
  end
440
- # verify the required parameter 'npm_distribution_href' is set
441
- if @api_client.config.client_side_validation && npm_distribution_href.nil?
442
- fail ArgumentError, "Missing the required parameter 'npm_distribution_href' when calling DistributionsNpmApi.update"
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"
443
455
  end
444
456
  # verify the required parameter 'npm_npm_distribution' is set
445
457
  if @api_client.config.client_side_validation && npm_npm_distribution.nil?
446
458
  fail ArgumentError, "Missing the required parameter 'npm_npm_distribution' when calling DistributionsNpmApi.update"
447
459
  end
448
460
  # resource path
449
- local_var_path = '{npm_distribution_href}'.sub('{' + 'npm_distribution_href' + '}', CGI.escape(npm_distribution_href.to_s).gsub('%2F', '/'))
461
+ local_var_path = '{npm_npm_distribution_href}'.sub('{' + 'npm_npm_distribution_href' + '}', CGI.escape(npm_npm_distribution_href.to_s).gsub('%2F', '/'))
450
462
 
451
463
  # query parameters
452
464
  query_params = opts[:query_params] || {}
@@ -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 remote
22
23
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
23
24
  # @param npm_npm_remote [NpmNpmRemote]
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 remote
31
33
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
32
34
  # @param npm_npm_remote [NpmNpmRemote]
33
35
  # @param [Hash] opts the optional parameters
@@ -81,8 +83,9 @@ module PulpNpmClient
81
83
  return data, status_code, headers
82
84
  end
83
85
 
86
+ # Delete a npm remote
84
87
  # Trigger an asynchronous delete task
85
- # @param npm_remote_href [String]
88
+ # @param npm_npm_remote_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
@@ -94,13 +97,14 @@ module PulpNpmClient
94
97
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
95
98
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
96
99
  # @return [AsyncOperationResponse]
97
- def delete(npm_remote_href, opts = {})
98
- data, _status_code, _headers = delete_with_http_info(npm_remote_href, opts)
100
+ def delete(npm_npm_remote_href, opts = {})
101
+ data, _status_code, _headers = delete_with_http_info(npm_npm_remote_href, opts)
99
102
  data
100
103
  end
101
104
 
105
+ # Delete a npm remote
102
106
  # Trigger an asynchronous delete task
103
- # @param npm_remote_href [String]
107
+ # @param npm_npm_remote_href [String]
104
108
  # @param [Hash] opts the optional parameters
105
109
  # @option opts [String] :name name
106
110
  # @option opts [String] :name__in name__in
@@ -112,16 +116,16 @@ module PulpNpmClient
112
116
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
113
117
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
114
118
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
115
- def delete_with_http_info(npm_remote_href, opts = {})
119
+ def delete_with_http_info(npm_npm_remote_href, opts = {})
116
120
  if @api_client.config.debugging
117
121
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.delete ...'
118
122
  end
119
- # verify the required parameter 'npm_remote_href' is set
120
- if @api_client.config.client_side_validation && npm_remote_href.nil?
121
- fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.delete"
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"
122
126
  end
123
127
  # resource path
124
- local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
128
+ local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
125
129
 
126
130
  # query parameters
127
131
  query_params = opts[:query_params] || {}
@@ -168,6 +172,7 @@ module PulpNpmClient
168
172
  return data, status_code, headers
169
173
  end
170
174
 
175
+ # List npm remotes
171
176
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
172
177
  # @param [Hash] opts the optional parameters
173
178
  # @option opts [Integer] :limit Number of results to return per page.
@@ -189,6 +194,7 @@ module PulpNpmClient
189
194
  data
190
195
  end
191
196
 
197
+ # List npm remotes
192
198
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
193
199
  # @param [Hash] opts the optional parameters
194
200
  # @option opts [Integer] :limit Number of results to return per page.
@@ -261,8 +267,9 @@ module PulpNpmClient
261
267
  return data, status_code, headers
262
268
  end
263
269
 
270
+ # Update a npm remote
264
271
  # Trigger an asynchronous partial update task
265
- # @param npm_remote_href [String]
272
+ # @param npm_npm_remote_href [String]
266
273
  # @param patchednpm_npm_remote [PatchednpmNpmRemote]
267
274
  # @param [Hash] opts the optional parameters
268
275
  # @option opts [String] :name name
@@ -275,13 +282,14 @@ module PulpNpmClient
275
282
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
276
283
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
277
284
  # @return [AsyncOperationResponse]
278
- def partial_update(npm_remote_href, patchednpm_npm_remote, opts = {})
279
- data, _status_code, _headers = partial_update_with_http_info(npm_remote_href, patchednpm_npm_remote, opts)
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)
280
287
  data
281
288
  end
282
289
 
290
+ # Update a npm remote
283
291
  # Trigger an asynchronous partial update task
284
- # @param npm_remote_href [String]
292
+ # @param npm_npm_remote_href [String]
285
293
  # @param patchednpm_npm_remote [PatchednpmNpmRemote]
286
294
  # @param [Hash] opts the optional parameters
287
295
  # @option opts [String] :name name
@@ -294,20 +302,20 @@ module PulpNpmClient
294
302
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
295
303
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
296
304
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
297
- def partial_update_with_http_info(npm_remote_href, patchednpm_npm_remote, opts = {})
305
+ def partial_update_with_http_info(npm_npm_remote_href, patchednpm_npm_remote, opts = {})
298
306
  if @api_client.config.debugging
299
307
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.partial_update ...'
300
308
  end
301
- # verify the required parameter 'npm_remote_href' is set
302
- if @api_client.config.client_side_validation && npm_remote_href.nil?
303
- fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.partial_update"
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"
304
312
  end
305
313
  # verify the required parameter 'patchednpm_npm_remote' is set
306
314
  if @api_client.config.client_side_validation && patchednpm_npm_remote.nil?
307
315
  fail ArgumentError, "Missing the required parameter 'patchednpm_npm_remote' when calling RemotesNpmApi.partial_update"
308
316
  end
309
317
  # resource path
310
- local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
318
+ local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
311
319
 
312
320
  # query parameters
313
321
  query_params = opts[:query_params] || {}
@@ -356,33 +364,35 @@ module PulpNpmClient
356
364
  return data, status_code, headers
357
365
  end
358
366
 
367
+ # Inspect a npm remote
359
368
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
360
- # @param npm_remote_href [String]
369
+ # @param npm_npm_remote_href [String]
361
370
  # @param [Hash] opts the optional parameters
362
371
  # @option opts [String] :fields A list of fields to include in the response.
363
372
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
364
373
  # @return [NpmNpmRemoteResponse]
365
- def read(npm_remote_href, opts = {})
366
- data, _status_code, _headers = read_with_http_info(npm_remote_href, opts)
374
+ def read(npm_npm_remote_href, opts = {})
375
+ data, _status_code, _headers = read_with_http_info(npm_npm_remote_href, opts)
367
376
  data
368
377
  end
369
378
 
379
+ # Inspect a npm remote
370
380
  # A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
371
- # @param npm_remote_href [String]
381
+ # @param npm_npm_remote_href [String]
372
382
  # @param [Hash] opts the optional parameters
373
383
  # @option opts [String] :fields A list of fields to include in the response.
374
384
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
375
385
  # @return [Array<(NpmNpmRemoteResponse, Integer, Hash)>] NpmNpmRemoteResponse data, response status code and response headers
376
- def read_with_http_info(npm_remote_href, opts = {})
386
+ def read_with_http_info(npm_npm_remote_href, opts = {})
377
387
  if @api_client.config.debugging
378
388
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.read ...'
379
389
  end
380
- # verify the required parameter 'npm_remote_href' is set
381
- if @api_client.config.client_side_validation && npm_remote_href.nil?
382
- fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.read"
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"
383
393
  end
384
394
  # resource path
385
- local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
395
+ local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
386
396
 
387
397
  # query parameters
388
398
  query_params = opts[:query_params] || {}
@@ -422,8 +432,9 @@ module PulpNpmClient
422
432
  return data, status_code, headers
423
433
  end
424
434
 
435
+ # Update a npm remote
425
436
  # Trigger an asynchronous update task
426
- # @param npm_remote_href [String]
437
+ # @param npm_npm_remote_href [String]
427
438
  # @param npm_npm_remote [NpmNpmRemote]
428
439
  # @param [Hash] opts the optional parameters
429
440
  # @option opts [String] :name name
@@ -436,13 +447,14 @@ module PulpNpmClient
436
447
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
437
448
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
438
449
  # @return [AsyncOperationResponse]
439
- def update(npm_remote_href, npm_npm_remote, opts = {})
440
- data, _status_code, _headers = update_with_http_info(npm_remote_href, npm_npm_remote, opts)
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)
441
452
  data
442
453
  end
443
454
 
455
+ # Update a npm remote
444
456
  # Trigger an asynchronous update task
445
- # @param npm_remote_href [String]
457
+ # @param npm_npm_remote_href [String]
446
458
  # @param npm_npm_remote [NpmNpmRemote]
447
459
  # @param [Hash] opts the optional parameters
448
460
  # @option opts [String] :name name
@@ -455,20 +467,20 @@ module PulpNpmClient
455
467
  # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
456
468
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
457
469
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
458
- def update_with_http_info(npm_remote_href, npm_npm_remote, opts = {})
470
+ def update_with_http_info(npm_npm_remote_href, npm_npm_remote, opts = {})
459
471
  if @api_client.config.debugging
460
472
  @api_client.config.logger.debug 'Calling API: RemotesNpmApi.update ...'
461
473
  end
462
- # verify the required parameter 'npm_remote_href' is set
463
- if @api_client.config.client_side_validation && npm_remote_href.nil?
464
- fail ArgumentError, "Missing the required parameter 'npm_remote_href' when calling RemotesNpmApi.update"
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"
465
477
  end
466
478
  # verify the required parameter 'npm_npm_remote' is set
467
479
  if @api_client.config.client_side_validation && npm_npm_remote.nil?
468
480
  fail ArgumentError, "Missing the required parameter 'npm_npm_remote' when calling RemotesNpmApi.update"
469
481
  end
470
482
  # resource path
471
- local_var_path = '{npm_remote_href}'.sub('{' + 'npm_remote_href' + '}', CGI.escape(npm_remote_href.to_s).gsub('%2F', '/'))
483
+ local_var_path = '{npm_npm_remote_href}'.sub('{' + 'npm_npm_remote_href' + '}', CGI.escape(npm_npm_remote_href.to_s).gsub('%2F', '/'))
472
484
 
473
485
  # query parameters
474
486
  query_params = opts[:query_params] || {}